public final class GroupCommand extends AbstractCommand
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.
| Modifier and Type | Field and Description | 
|---|---|
| static Command | DELETE_GROUPGroupCommand for deleting a group. | 
| static Command | EDIT_GROUPGroupCommand for editing a group. | 
| static Command | VIEW_GROUPGroupCommand for viewing a group. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getName()Returns the name of the command, which will either be
 the target (if specified), or the "friendly name" for the JSP. | 
| Permission | requiredPermission()Returns the permission required to execute this GroupCommand. | 
| Command | targetedCommand(Object target)Creates and returns a targeted Command by combining a GroupPrincipal 
 with this Command. | 
allCommands, getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toStringpublic static final Command DELETE_GROUP
public static final Command EDIT_GROUP
public static final Command VIEW_GROUP
public Command targetedCommand(Object target)
target object 
 must be non-null and of type GroupPrincipal.
 If the target is not of the correct type, this method throws an
 IllegalArgumentException.targetedCommand in interface CommandtargetedCommand in class AbstractCommandtarget - the GroupPrincipal to combine into the current CommandCommand.targetedCommand(Object)public String getName()
getName in interface CommandgetName in class AbstractCommandCommand.getName()public Permission requiredPermission()
Command.requiredPermission()Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.