Class GoogleSearchTool.GoogleSearchCommand

java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.GoogleSearchTool.GoogleSearchCommand
All Implemented Interfaces:
Command
Enclosing class:
GoogleSearchTool

public static class GoogleSearchTool.GoogleSearchCommand extends Object implements Command
  • Constructor Details

    • GoogleSearchCommand

      public GoogleSearchCommand()
  • Method Details

    • execute

      public void execute(Collection<Object> args)
      Description copied from interface: Command
      Execute the command.
      Specified by:
      execute in interface Command
      Parameters:
      args - arguments for the command (contains all items for all actions inside of the context!)
    • canExecute

      public boolean canExecute(Collection<Object> args)
      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 interface Command
      Parameters:
      args - arguments for the command
      Returns:
      true - executable with these arguments,
      false - impossible to execute this command with these arguments