Package org.apache.wiki.ui
Class WikiCommand
java.lang.Object
org.apache.wiki.ui.AbstractCommand
org.apache.wiki.ui.WikiCommand
- All Implemented Interfaces:
Command
Defines Commands for wiki-wide operations such as creating groups, editing preferences and profiles, and logging in/out. WikiCommands can be combined with Strings (representing the name of a wiki instance) to produce targeted Commands.
- Since:
- 2.4.22
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()Always returns the "friendly" JSP name.targetedCommand(Object target) Creates and returns a targeted Command by combining a wiki (a String) with this Command.Methods inherited from class org.apache.wiki.ui.AbstractCommand
getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toString
-
Field Details
-
ADMIN
-
CREATE_GROUP
-
ERROR
-
FIND
-
INSTALL
-
LOGIN
-
LOGOUT
-
MESSAGE
-
PREFS
-
WORKFLOW
-
-
Method Details
-
targetedCommand
Creates and returns a targeted Command by combining a wiki (a String) with this Command. The suppliedtargetobject must be non-nulland of type String.- Specified by:
targetedCommandin interfaceCommand- Specified by:
targetedCommandin classAbstractCommand- Parameters:
target- the name of the wiki to combine into the current Command- Returns:
- the new targeted command
- Throws:
IllegalArgumentException- if the target is not of the correct type- See Also:
-
getName
Always returns the "friendly" JSP name.- Specified by:
getNamein interfaceCommand- Specified by:
getNamein classAbstractCommand- See Also:
-
requiredPermission
- See Also:
-