Class RemovePagesCommand
java.lang.Object
com.levigo.jadice.web.demo.common.client.commands.RemovePagesCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(Collection<Object> args) Permission checking for a command works as follows:void
execute
(Collection<Object> args) Execute the command.getID()
The ID of the command.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.levigo.jadice.web.client.util.command.Command
isAvailable, isAvailable, isSelected
-
Constructor Details
-
RemovePagesCommand
-
-
Method Details
-
getID
Description copied from interface:Command
The ID of the command. This is typically the command class name. If the Command is parameterized the ID should comprise the class name + parameter information. -
execute
Description copied from interface:Command
Execute the command. -
canExecute
Description copied from interface:Command
Permission checking for a command works as follows:1. Check user privileges if the command is executable.
2. Ask if the command is executable with the given objects.- Specified by:
canExecute
in interfaceCommand
- Parameters:
args
- arguments for the command- Returns:
true
- executable with these arguments,
false
- impossible to execute this command with these arguments
-