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 -
Method Summary
Modifier and TypeMethodDescriptionAsks a question to the robotClones a robotvoid
Deletes some robotsvoid
enable
(long robotId, boolean enable) Enables/Disabled a robotget
(long robotId) Retrieves a robot from the data layervoid
resetAvatar
(long robotId) Resets the avatar to the default oneCreates or updates a robotvoid
saveAvatar
(long robotId) Saves an uploaded image as the robot's avatar
-
Method Details
-
delete
Deletes some robots- Parameters:
robotIds
- identifiers of the robots- Throws:
ServerException
- an error happened in the server application
-
save
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
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
Clones a robot- Parameters:
robotId
- Identifier of the robot to clonenewName
- The name to give to the clone- Returns:
- The clone
- Throws:
ServerException
- an error happened in the server application
-
enable
Enables/Disabled a robot- Parameters:
robotId
- Identifier of the robot to changeenable
- The new enabled status- Throws:
ServerException
- an error happened in the server application
-
ask
Asks a question to the robot- Parameters:
robotId
- Identifier of the robot to askquestion
- The question to ask- Throws:
ServerException
- an error happened in the server application
-
saveAvatar
Saves an uploaded image as the robot's avatar- Parameters:
robotId
- Identifier of the robot- Throws:
ServerException
- error generated in the server application
-
resetAvatar
Resets the avatar to the default one- Parameters:
robotId
- Identifier of the robot- Throws:
ServerException
- error generated in the server application
-