Package org.ametys.runtime.workspace
Class WorkspaceMatcher
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.matching.AbstractWildcardMatcher
org.apache.cocoon.matching.WildcardURIMatcher
org.ametys.runtime.workspace.WorkspaceMatcher
- All Implemented Interfaces:
Component
,LogEnabled
,ThreadSafe
,Matcher
- Direct Known Subclasses:
FrontAwareWorkspaceMatcher
Workspace aware Cocoon matcher.
Retrieve workspaces URI from names through the WorkspaceManager.
Retrieve workspaces URI from names through the WorkspaceManager.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The request attribute name where the current url inside the workspace is savedstatic final String
The request attribute name where the current workspace is savedstatic final String
The request attribute name where the current workspace theme name is savedstatic final String
The request attribute name where the current workspace theme url is savedstatic final String
The request attribute name where the current workspace uri is saved -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
In the wildcard expression where to find the first relevant informationprotected Workspace
getWorkspace
(String workspaceName) Get the selected workspacematch
(String pattern, Map objectModel, Parameters parameters) Methods inherited from class org.apache.cocoon.matching.WildcardURIMatcher
getMatchString
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
WORKSPACE_NAME
The request attribute name where the current workspace is saved- See Also:
-
WORKSPACE_URI
The request attribute name where the current workspace uri is saved- See Also:
-
IN_WORKSPACE_URL
The request attribute name where the current url inside the workspace is saved- See Also:
-
WORKSPACE_THEME
The request attribute name where the current workspace theme name is saved- See Also:
-
WORKSPACE_THEME_URL
The request attribute name where the current workspace theme url is saved- See Also:
-
-
Constructor Details
-
WorkspaceMatcher
public WorkspaceMatcher()
-
-
Method Details
-
getWildcardStartIndex
In the wildcard expression where to find the first relevant information- Returns:
- An integer > 0
-
getWorkspace
Get the selected workspace- Parameters:
workspaceName
- The workspace name to get- Returns:
- The workspace if it exists and is supported
-
match
- Specified by:
match
in interfaceMatcher
- Overrides:
match
in classAbstractWildcardMatcher
- Throws:
PatternException
-