Package org.apache.wiki.ui
Class PageCommand
java.lang.Object
org.apache.wiki.ui.AbstractCommand
org.apache.wiki.ui.PageCommand
- All Implemented Interfaces:
org.apache.wiki.api.core.Command
Defines Commands for editing, renaming, and viewing wiki pages. PageCommands can be combined with WikiPages to produce targeted Commands.
- Since:
- 2.4.22
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Commandstatic final org.apache.wiki.api.core.Command -
Method Summary
Modifier and TypeMethodDescriptiongetName()org.apache.wiki.api.core.CommandtargetedCommand(Object target) Creates and returns a targeted Command by combining a WikiPage with this Command.Methods inherited from class org.apache.wiki.ui.AbstractCommand
getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toString
-
Field Details
-
ATTACH
-
COMMENT
-
CONFLICT
-
DELETE
-
DIFF
-
EDIT
-
INFO
-
PREVIEW
-
RENAME
-
RSS
-
UPLOAD
-
VIEW
-
NONE
-
OTHER
-
-
Method Details
-
targetedCommand
Creates and returns a targeted Command by combining a WikiPage with this Command. The suppliedtargetobject must be non-nulland of type WikiPage.- Specified by:
targetedCommandin interfaceorg.apache.wiki.api.core.Command- Specified by:
targetedCommandin classAbstractCommand- Parameters:
target- the WikiPage to combine into the current Command- Returns:
- the new targeted command
- Throws:
IllegalArgumentException- if the target is not of the correct type- See Also:
-
Command.targetedCommand(Object)
-
getName
- Specified by:
getNamein interfaceorg.apache.wiki.api.core.Command- Specified by:
getNamein classAbstractCommand- See Also:
-
Command.getName()
-
requiredPermission
- See Also:
-
Command.requiredPermission()
-