public final class PageCommand extends AbstractCommand
Defines Commands for editing, renaming, and viewing wiki pages. PageCommands can be combined with WikiPages to produce targeted Commands.
| Modifier and Type | Field and Description |
|---|---|
static Command |
ATTACH |
static Command |
COMMENT |
static Command |
CONFLICT |
static Command |
DELETE |
static Command |
DIFF |
static Command |
EDIT |
static Command |
INFO |
static Command |
NONE |
static Command |
OTHER |
static Command |
PREVIEW |
static Command |
RENAME |
static Command |
RSS |
static Command |
UPLOAD |
static Command |
VIEW |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.security.Permission |
requiredPermission() |
Command |
targetedCommand(java.lang.Object target)
Creates and returns a targeted Command by combining a WikiPage with this Command.
|
getContentTemplate, getJSP, getJSPFriendlyName, getRequestContext, getTarget, getURLPattern, toStringpublic Command targetedCommand(java.lang.Object target)
target object
must be non-null and of type WikiPage.targetedCommand in interface CommandtargetedCommand in class AbstractCommandtarget - the WikiPage 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.