Groovy Documentation

org.grails.plugin.platform.views
[Groovy] Class Grails13ViewFinder

java.lang.Object
  org.grails.plugin.platform.views.Grails13ViewFinder
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, ViewFinder

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

APP_VIEW_PATH_PREFIX

private static final java.lang.String APP_VIEW_PATH_PREFIX


GROOVY_PAGE_RESOURCE_LOADER

private static final java.lang.String GROOVY_PAGE_RESOURCE_LOADER


LAYOUTS_PATH

private static final java.lang.String LAYOUTS_PATH


PLUGINS_PATH

private static final java.lang.String PLUGINS_PATH


VIEW_PATH_PREFIX

private static final java.lang.String VIEW_PATH_PREFIX


 
Property Detail

applicationContext

org.springframework.context.ApplicationContext applicationContext


grailsApplication

java.lang.Object grailsApplication


groovyPagesUriService

org.codehaus.groovy.grails.web.pages.GroovyPagesUriService groovyPagesUriService


log

final java.lang.Object log


pluginManager

java.lang.Object pluginManager


precompiledGspMap

java.util.Map precompiledGspMap


 
Constructor Detail

Grails13ViewFinder

Grails13ViewFinder()


 
Method Detail

establishResourceLoader

private java.lang.Object establishResourceLoader()


extractLastFolderNamesFromPaths

java.util.List extractLastFolderNamesFromPaths(java.lang.Object paths, java.lang.Object filePartToRemove)


getFullPathToAppViews

java.lang.String getFullPathToAppViews()


getFullPathToPluginViews

java.lang.String getFullPathToPluginViews(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)


getPathToAppViews

java.lang.String getPathToAppViews()


getPathToPluginViews

java.lang.String getPathToPluginViews(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin)


getResourcesPrefix

java.lang.String getResourcesPrefix()


hasNonCompiledGSP

private boolean hasNonCompiledGSP(java.lang.Object fullpath)


hasPrecompiledView

protected boolean hasPrecompiledView(java.lang.String viewPath)


isPrecompiledAvailable

private boolean isPrecompiledAvailable()


layoutExists

boolean layoutExists(java.lang.String path)
Parameters:
path - The path of the layout view relative to grails-views/layouts/ and excluding the .gsp part


listAppViewFoldersAt

java.util.List listAppViewFoldersAt(java.lang.String path, java.lang.String markerView)


listAppViewsAt

java.util.List listAppViewsAt(java.lang.String path)


listPluginViewFoldersAt

java.util.List listPluginViewFoldersAt(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin, java.lang.String path, java.lang.String markerView)


listPluginViewsAt

java.util.List listPluginViewsAt(org.codehaus.groovy.grails.plugins.GrailsPlugin plugin, java.lang.String path)


listPrecompiledViews

protected java.lang.Object listPrecompiledViews(java.lang.String path)


listViewsInFolder

protected java.util.List listViewsInFolder(java.lang.String path, java.lang.String pattern = null, java.lang.String resourcePropertyToGet = 'filename')


templateExists

boolean templateExists(java.lang.String path)
Parameters:
name - The path of the view relative to grails-views/ and excluding the .gsp part, but containing relevant underscores


templateExists

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


viewExists

protected boolean viewExists(java.lang.String path)


 

Groovy Documentation