Interface RobotService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService

@RemoteServiceRelativePath("robot") public interface RobotService extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Robot Service. This service gives all needed methods to handle robots.
Since:
9.2
Author:
Marco Meschieri - LogicalDOC
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ask(long robotId, String question)
    Asks a question to the robot
    clone(long robotId, String newName)
    Clones a robot
    void
    delete(List<Long> robotIds)
    Deletes some robots
    void
    enable(long robotId, boolean enable)
    Enables/Disabled a robot
    get(long robotId)
    Retrieves a robot from the data layer
    void
    resetAvatar(long robotId)
    Resets the avatar to the default one
    save(GUIRobot robot)
    Creates or updates a robot
    void
    saveAvatar(long robotId)
    Saves an uploaded image as the robot's avatar
  • Method Details

    • delete

      void delete(List<Long> robotIds) throws ServerException
      Deletes some robots
      Parameters:
      robotIds - identifiers of the robots
      Throws:
      ServerException - an error happened in the server application
    • save

      GUIRobot save(GUIRobot robot) throws ServerException
      Creates or updates a robot
      Parameters:
      robot - the robot to save
      Returns:
      the saved sampler
      Throws:
      ServerException - an error happened in the server application
    • get

      GUIRobot get(long robotId) throws ServerException
      Retrieves a robot from the data layer
      Parameters:
      robotId - identifier of the robot
      Returns:
      the sampler
      Throws:
      ServerException - an error happened in the server application
    • clone

      GUIRobot clone(long robotId, String newName) throws ServerException
      Clones a robot
      Parameters:
      robotId - Identifier of the robot to clone
      newName - The name to give to the clone
      Returns:
      The clone
      Throws:
      ServerException - an error happened in the server application
    • enable

      void enable(long robotId, boolean enable) throws ServerException
      Enables/Disabled a robot
      Parameters:
      robotId - Identifier of the robot to change
      enable - The new enabled status
      Throws:
      ServerException - an error happened in the server application
    • ask

      String ask(long robotId, String question) throws ServerException
      Asks a question to the robot
      Parameters:
      robotId - Identifier of the robot to ask
      question - The question to ask
      Throws:
      ServerException - an error happened in the server application
    • saveAvatar

      void saveAvatar(long robotId) throws ServerException
      Saves an uploaded image as the robot's avatar
      Parameters:
      robotId - Identifier of the robot
      Throws:
      ServerException - error generated in the server application
    • resetAvatar

      void resetAvatar(long robotId) throws ServerException
      Resets the avatar to the default one
      Parameters:
      robotId - Identifier of the robot
      Throws:
      ServerException - error generated in the server application