Package org.apache.wiki.ui
Class GroupCommand
java.lang.Object
org.apache.wiki.ui.AbstractCommand
org.apache.wiki.ui.GroupCommand
- All Implemented Interfaces:
Command
Defines Commands for viewing, editing and deleting wiki groups. GroupCommands can be combined with GroupPrincipals to produce targeted Commands.
This class is not final
; it may be extended in the future.
- Since:
- 2.4.22
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the command, which will either be the target (if specified), or the "friendly name" for the JSP.Returns the permission required to execute this GroupCommand.targetedCommand
(Object target) Creates and returns a targeted Command by combining a GroupPrincipal with this Command.Methods inherited from class org.apache.wiki.ui.AbstractCommand
getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toString
-
Field Details
-
DELETE_GROUP
GroupCommand for deleting a group. -
EDIT_GROUP
GroupCommand for editing a group. -
VIEW_GROUP
GroupCommand for viewing a group.
-
-
Method Details
-
targetedCommand
Creates and returns a targeted Command by combining a GroupPrincipal with this Command. The suppliedtarget
object must be non-null
and of type GroupPrincipal. If the target is not of the correct type, this method throws anIllegalArgumentException
.- Specified by:
targetedCommand
in interfaceCommand
- Specified by:
targetedCommand
in classAbstractCommand
- Parameters:
target
- the GroupPrincipal to combine into the current Command- Returns:
- the new, targeted command
- See Also:
-
getName
Returns the name of the command, which will either be the target (if specified), or the "friendly name" for the JSP.- Specified by:
getName
in interfaceCommand
- Specified by:
getName
in classAbstractCommand
- Returns:
- the name
- See Also:
-
requiredPermission
Returns the permission required to execute this GroupCommand.- Returns:
- the permission
- See Also:
-