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 |
|---|---|
String |
getName()
Always returns the "friendly" JSP name.
|
Permission |
requiredPermission() |
Command |
targetedCommand(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(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 CommandIllegalArgumentException - if the target is not of the correct typeCommand.targetedCommand(Object)public String getName()
getName in interface CommandgetName in class AbstractCommandCommand.getName()public Permission requiredPermission()
Command.requiredPermission()Copyright © 2001-2020 The Apache Software Foundation. All rights reserved.