Groovy Documentation

utils.gate.cow
Class CowUtils

java.lang.Object
  utils.gate.cow.CowUtils

class CowUtils

Some utilities.

author:
Hamish Cunningham


Property Summary
static Logger log

Logger

 
Constructor Summary
CowUtils()

 
Method Summary
static String findPluginViewsPath(String controllerClassName)

Given a plugin controller class name, find the path to that controller's views.

static Map getConfig()

Access the Grails config object.

static List getGuestLayouts(String layoutDirPath)

Given a layout directory path, this method obtains all the available gsp files that follow the convention of the layout file name (i.e. cowguest-XXX.gsp)

static boolean resourceExists(String resName)

Check if a resource (eg a GSP) file exists in the app.

static void setGuestLayoutPath()

Set up the config that deals with guest layouts.

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

log

static Logger log
Logger


 
Constructor Detail

CowUtils

CowUtils()


 
Method Detail

findPluginViewsPath

public static String findPluginViewsPath(String controllerClassName)
Given a plugin controller class name, find the path to that controller's views.


getConfig

public static Map getConfig()
Access the Grails config object.


getGuestLayouts

public static List getGuestLayouts(String layoutDirPath)
Given a layout directory path, this method obtains all the available gsp files that follow the convention of the layout file name (i.e. cowguest-XXX.gsp)


resourceExists

public static boolean resourceExists(String resName)
Check if a resource (eg a GSP) file exists in the app. Requires the complete path (e.g. /WEB-INF/...).


setGuestLayoutPath

public static void setGuestLayoutPath()
Set up the config that deals with guest layouts. If a plugin is present that provides the cowguest.gsp layout, then store the path to the layout in the config.


 

Groovy Documentation