Class WikipediaSearchTool.WikipediaSearchCommand
java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.WikipediaSearchTool.WikipediaSearchCommand
- All Implemented Interfaces:
Command
- Enclosing class:
WikipediaSearchTool
-
Constructor Summary
Constructors -
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.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
getID, isAvailable, isAvailable, isSelected
-
Constructor Details
-
WikipediaSearchCommand
public WikipediaSearchCommand()
-
-
Method Details
-
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
-