public final class WikiCommand extends AbstractCommand
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.
Engine.getApplicationName()| Modifier and Type | Field and Description |
|---|---|
static Command |
ADMIN |
static Command |
CREATE_GROUP |
static Command |
ERROR |
static Command |
FIND |
static Command |
INSTALL |
static Command |
LOGIN |
static Command |
LOGOUT |
static Command |
MESSAGE |
static Command |
PREFS |
static Command |
WORKFLOW |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Always returns the "friendly" JSP name.
|
java.security.Permission |
requiredPermission() |
Command |
targetedCommand(java.lang.Object target)
Creates and returns a targeted Command by combining a wiki (a String) with this Command.
|
getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toStringpublic static final Command CREATE_GROUP
public Command targetedCommand(java.lang.Object target)
target
object must be non-null and of type String.targetedCommand in interface CommandtargetedCommand in class AbstractCommandtarget - the name of the wiki to combine into the current Commandjava.lang.IllegalArgumentException - if the target is not of the correct typeCommand.targetedCommand(Object)public java.lang.String getName()
getName in interface CommandgetName in class AbstractCommandCommand.getName()public java.security.Permission requiredPermission()
Command.requiredPermission()Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.