|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.ui.AbstractCommand org.apache.wiki.ui.GroupCommand
public final class GroupCommand
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.
Field Summary | |
---|---|
static Command |
DELETE_GROUP
GroupCommand for deleting a group. |
static Command |
EDIT_GROUP
GroupCommand for editing a group. |
static Command |
VIEW_GROUP
GroupCommand for viewing a group. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.wiki.ui.AbstractCommand |
---|
allCommands, getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Command DELETE_GROUP
public static final Command EDIT_GROUP
public static final Command VIEW_GROUP
Method Detail |
---|
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 Command
targetedCommand
in class AbstractCommand
target
- the GroupPrincipal to combine into the current Command
Command.targetedCommand(Object)
public String getName()
getName
in interface Command
getName
in class AbstractCommand
Command.getName()
public Permission requiredPermission()
Command.requiredPermission()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |