org.riotfamily.pages.riot.command
Class UnpublishPageCommand
java.lang.Object
org.riotfamily.riot.list.command.core.AbstractCommand
org.riotfamily.pages.riot.command.UnpublishPageCommand
- All Implemented Interfaces:
- BatchCommand, Command, RiotRuntimeAware, BeanNameAware
public class UnpublishPageCommand
- extends AbstractCommand
- implements BatchCommand
- Since:
- 7.0
- Author:
- Felix Gnass [fgnass at neteye dot de]
| Methods inherited from class org.riotfamily.riot.list.command.core.AbstractCommand |
getConfirmationMessage, getDefaultMessageArgs, getId, getItemStyleClass, getLabel, getRuntime, getStyleClass, isShowOnForm, setBeanName, setId, setRiotRuntime, setShowOnForm, setStyleClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTION_UNPUBLISH
public static final String ACTION_UNPUBLISH
- See Also:
- Constant Field Values
UnpublishPageCommand
public UnpublishPageCommand(PageDao pageDao)
getAction
public String getAction()
- Description copied from class:
AbstractCommand
- Returns the command's id.
- Specified by:
getAction in interface Command- Overrides:
getAction in class AbstractCommand
isEnabled
public boolean isEnabled(CommandContext context)
- Description copied from class:
AbstractCommand
- Implementors may inspect the given context to decide whether the
command should be enabled. Commands don't need to check the
policy since
commands will be automatically disabled if the action returned by
Command.getAction() is denied.
The default implementation always returns true.
- Specified by:
isEnabled in interface Command- Overrides:
isEnabled in class AbstractCommand
execute
public CommandResult execute(CommandContext context)
- Description copied from interface:
Command
- Executes the command.
- Specified by:
execute in interface Command
getBatchConfirmationMessage
public String getBatchConfirmationMessage(CommandContext context)
- Specified by:
getBatchConfirmationMessage in interface BatchCommand