|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.grails.plugin.platform.navigation.NavigationImpl
class NavigationImpl
Bean that encapsulates the navigation structure of the entire application
Property Summary | |
---|---|
static java.lang.Object |
LINK_TAG_ATTRIBUTES
|
java.lang.Object |
grailsApplication
|
java.lang.Object |
grailsConventions
|
java.lang.Object |
log
|
java.util.Map |
nodesByControllerAction
|
java.util.Map |
nodesById
|
java.util.Map |
rootScopes
|
Constructor Summary | |
NavigationImpl()
|
Method Summary | |
---|---|
NavigationItem
|
addItem(NavigationScope parent, NavigationItem item)
|
NavigationItem
|
addItemFromArgs(java.lang.String name, java.util.Map arguments, NavigationScope parent, java.lang.String definingPlugin)
|
void
|
clearCaches()
|
void
|
clearScopes()
|
NavigationItem
|
declareControllerNode(java.util.Map args)
|
NavigationScope
|
getActiveNode(java.lang.Object request)
|
java.lang.String
|
getActivePath(java.lang.Object request)
|
java.lang.String
|
getActivePathWasAuto(java.lang.Object request)
|
java.lang.String
|
getDefaultControllerAction(java.lang.String controllerName)
|
java.lang.String
|
getDefaultScope(java.lang.Object request, java.lang.Object defaultValue = 'app')
|
NavigationScope
|
getFirstActiveNode(java.lang.Object request)
|
NavigationScope
|
getFirstAncestor(java.lang.String path)
|
NavigationScope
|
getFirstNodeOfPath(java.lang.String path)
|
NavigationScope
|
getOrCreateScope(java.lang.String name)
|
NavigationScope
|
getPrimaryScopeFor(java.lang.Object path)
|
java.util.List
|
getScopes()
|
boolean
|
hasNonControllerLinkArgs(java.util.Map args)
|
void
|
loadControllers()
Load the available controller actions and if no declaration exists already, auto-register them in the navigation system. |
void
|
loadDSL(java.lang.Class dslClass)
|
void
|
loadDSL()
|
java.lang.String
|
makePath(java.util.List elements, java.lang.String definingPluginName = null)
|
NavigationScope
|
nodeForControllerAction(java.lang.String controller, java.lang.String action)
|
NavigationScope
|
nodeForId(java.lang.String path)
|
java.util.List
|
nodesForPath(java.lang.String path)
|
protected void
|
parseDSL(java.util.List commands, NavigationScope parent, java.lang.String definingPlugin)
Receives a graph of DSL commend objects and creates the necessary scopes and items |
void
|
realizeLinkArguments(java.lang.String itemName, java.util.Map linkArgs, NavigationScope parent)
|
NavigationItem
|
registerControllerActions(java.lang.String controllerName, java.lang.Class controllerClass, java.lang.String scope)
Auto-register controller actions, returning the parent (default/primary) item |
void
|
registerNavigation(groovy.lang.Closure dsl)
|
void
|
reload(java.lang.Class navigationClass)
|
void
|
reloadAll()
|
NavigationScope
|
scopeByName(java.lang.String name)
|
void
|
setActivePath(java.lang.Object request, java.lang.String path)
|
void
|
setActivePathFromRequest(java.lang.Object request, java.lang.Object controllerName, java.lang.Object action)
Attempt to location the current request's controller and action in the nav graph, looking in "app" scope first, then other scopes If found, the id of that node becomes our active path |
void
|
setActivePathWasAuto(java.lang.Object request, boolean value)
|
void
|
setDefaultScope(java.lang.Object request, java.lang.String scope)
|
java.lang.Object
|
splitPath(java.lang.String path)
|
void
|
updateCaches()
|
void
|
updateCachesForItem(NavigationItem node)
|
void
|
updateSortOrder()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
Property Detail |
---|
static java.lang.Object LINK_TAG_ATTRIBUTES
java.lang.Object grailsApplication
java.lang.Object grailsConventions
final java.lang.Object log
java.util.Map nodesByControllerAction
java.util.Map nodesById
java.util.Map rootScopes
Constructor Detail |
---|
NavigationImpl()
Method Detail |
---|
NavigationItem addItem(NavigationScope parent, NavigationItem item)
NavigationItem addItemFromArgs(java.lang.String name, java.util.Map arguments, NavigationScope parent, java.lang.String definingPlugin)
void clearCaches()
void clearScopes()
NavigationItem declareControllerNode(java.util.Map args)
NavigationScope getActiveNode(java.lang.Object request)
java.lang.String getActivePath(java.lang.Object request)
java.lang.String getActivePathWasAuto(java.lang.Object request)
java.lang.String getDefaultControllerAction(java.lang.String controllerName)
java.lang.String getDefaultScope(java.lang.Object request, java.lang.Object defaultValue = 'app')
NavigationScope getFirstActiveNode(java.lang.Object request)
NavigationScope getFirstAncestor(java.lang.String path)
NavigationScope getFirstNodeOfPath(java.lang.String path)
NavigationScope getOrCreateScope(java.lang.String name)
NavigationScope getPrimaryScopeFor(java.lang.Object path)
java.util.List getScopes()
boolean hasNonControllerLinkArgs(java.util.Map args)
void loadControllers()
void loadDSL(java.lang.Class dslClass)
void loadDSL()
java.lang.String makePath(java.util.List elements, java.lang.String definingPluginName = null)
NavigationScope nodeForControllerAction(java.lang.String controller, java.lang.String action)
NavigationScope nodeForId(java.lang.String path)
java.util.List nodesForPath(java.lang.String path)
protected void parseDSL(java.util.List commands, NavigationScope parent, java.lang.String definingPlugin)
void realizeLinkArguments(java.lang.String itemName, java.util.Map linkArgs, NavigationScope parent)
NavigationItem registerControllerActions(java.lang.String controllerName, java.lang.Class controllerClass, java.lang.String scope)
void registerNavigation(groovy.lang.Closure dsl)
void reload(java.lang.Class navigationClass)
void reloadAll()
NavigationScope scopeByName(java.lang.String name)
void setActivePath(java.lang.Object request, java.lang.String path)
void setActivePathFromRequest(java.lang.Object request, java.lang.Object controllerName, java.lang.Object action)
void setActivePathWasAuto(java.lang.Object request, boolean value)
void setDefaultScope(java.lang.Object request, java.lang.String scope)
java.lang.Object splitPath(java.lang.String path)
void updateCaches()
void updateCachesForItem(NavigationItem node)
void updateSortOrder()
Groovy Documentation