|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.grails.plugin.platform.views.Grails13ViewFinder
class Grails13ViewFinder
Interface for grailsViewFinder bean used to see if GSP views and layouts exist. Implementations may vary based on Grails version
Field Summary | |
---|---|
private static java.lang.String |
APP_VIEW_PATH_PREFIX
|
private static java.lang.String |
GROOVY_PAGE_RESOURCE_LOADER
|
private static java.lang.String |
LAYOUTS_PATH
|
private static java.lang.String |
PLUGINS_PATH
|
private static java.lang.String |
VIEW_PATH_PREFIX
|
Property Summary | |
---|---|
org.springframework.context.ApplicationContext |
applicationContext
|
java.lang.Object |
grailsApplication
|
org.codehaus.groovy.grails.web.pages.GroovyPagesUriService |
groovyPagesUriService
|
java.lang.Object |
log
|
java.lang.Object |
pluginManager
|
java.util.Map |
precompiledGspMap
|
Constructor Summary | |
Grails13ViewFinder()
|
Method Summary | |
---|---|
private java.lang.Object
|
establishResourceLoader()
|
java.util.List
|
extractLastFolderNamesFromPaths(java.lang.Object paths, java.lang.Object filePartToRemove)
|
java.lang.String
|
getFullPathToAppViews()
|
java.lang.String
|
getFullPathToPluginViews(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)
|
java.lang.String
|
getPathToAppViews()
|
java.lang.String
|
getPathToPluginViews(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)
|
java.lang.String
|
getResourcesPrefix()
|
private boolean
|
hasNonCompiledGSP(java.lang.Object fullpath)
|
protected boolean
|
hasPrecompiledView(java.lang.String viewPath)
|
private boolean
|
isPrecompiledAvailable()
|
boolean
|
layoutExists(java.lang.String path)
@param path The path of the layout view relative to grails-views/layouts/ and excluding the .gsp part |
java.util.List
|
listAppViewFoldersAt(java.lang.String path, java.lang.String markerView)
|
java.util.List
|
listAppViewsAt(java.lang.String path)
|
java.util.List
|
listPluginViewFoldersAt(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin, java.lang.String path, java.lang.String markerView)
|
java.util.List
|
listPluginViewsAt(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin, java.lang.String path)
|
protected java.lang.Object
|
listPrecompiledViews(java.lang.String path)
|
protected java.util.List
|
listViewsInFolder(java.lang.String path, java.lang.String pattern = null, java.lang.String resourcePropertyToGet = 'filename')
|
boolean
|
templateExists(java.lang.String path)
@param name The path of the view relative to grails-views/ and excluding the .gsp part, but containing relevant underscores |
boolean
|
templateExists(java.lang.String path, org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)
See if a GSP template exists in a plugin If plugin is null, reverts to application views |
protected boolean
|
viewExists(java.lang.String path)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
private static final java.lang.String APP_VIEW_PATH_PREFIX
private static final java.lang.String GROOVY_PAGE_RESOURCE_LOADER
private static final java.lang.String LAYOUTS_PATH
private static final java.lang.String PLUGINS_PATH
private static final java.lang.String VIEW_PATH_PREFIX
Property Detail |
---|
org.springframework.context.ApplicationContext applicationContext
java.lang.Object grailsApplication
org.codehaus.groovy.grails.web.pages.GroovyPagesUriService groovyPagesUriService
final java.lang.Object log
java.lang.Object pluginManager
java.util.Map precompiledGspMap
Constructor Detail |
---|
Grails13ViewFinder()
Method Detail |
---|
private java.lang.Object establishResourceLoader()
java.util.List extractLastFolderNamesFromPaths(java.lang.Object paths, java.lang.Object filePartToRemove)
java.lang.String getFullPathToAppViews()
java.lang.String getFullPathToPluginViews(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)
java.lang.String getPathToAppViews()
java.lang.String getPathToPluginViews(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)
java.lang.String getResourcesPrefix()
private boolean hasNonCompiledGSP(java.lang.Object fullpath)
protected boolean hasPrecompiledView(java.lang.String viewPath)
private boolean isPrecompiledAvailable()
boolean layoutExists(java.lang.String path)
path
- The path of the layout view relative to grails-views/layouts/ and excluding the .gsp part
java.util.List listAppViewFoldersAt(java.lang.String path, java.lang.String markerView)
java.util.List listAppViewsAt(java.lang.String path)
java.util.List listPluginViewFoldersAt(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin, java.lang.String path, java.lang.String markerView)
java.util.List listPluginViewsAt(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin, java.lang.String path)
protected java.lang.Object listPrecompiledViews(java.lang.String path)
protected java.util.List listViewsInFolder(java.lang.String path, java.lang.String pattern = null, java.lang.String resourcePropertyToGet = 'filename')
boolean templateExists(java.lang.String path)
name
- The path of the view relative to grails-views/ and excluding the .gsp part, but containing relevant underscores
boolean templateExists(java.lang.String path, org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)
protected boolean viewExists(java.lang.String path)
Groovy Documentation