Interface AutomationService
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("automation")
public interface AutomationService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Automation Service.
- Since:
- 8.1
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyTriggersToTree(long rootId) Applies the triggers on a root folder to all the subtreevoiddeleteRoutines(List<Long> ids) voiddeleteTriggers(List<Long> ids) voidExecutes a routine or a given scriptgetRoutine(long id) Loads a given routine from the databasegetTrigger(long id) Loads a given trigger from the databasesaveRoutine(GUIAutomationRoutine routine) Creates or updates a routinesaveTrigger(GUIAutomationTrigger trigger) Creates or updates a trigger
- 
Method Details- 
saveRoutineCreates or updates a routine- Parameters:
- routine- the routine to save
- Returns:
- the saved routine
- Throws:
- ServerException- an error happened in the server application
 
- 
getRoutineLoads a given routine from the database- Parameters:
- id- identifier of the routine
- Returns:
- the routine retrieved by the server application
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteRoutines- Throws:
- ServerException
 
- 
deleteTriggers- Throws:
- ServerException
 
- 
saveTriggerCreates or updates a trigger- Parameters:
- trigger- the automation trigger to save
- Returns:
- the saved trigger
- Throws:
- ServerException- an error happened in the server application
 
- 
getTriggerLoads a given trigger from the database- Parameters:
- id- identifier of the trigger
- Returns:
- the automation trigger retrieved by the server application
- Throws:
- ServerException- an error happened in the server application
 
- 
applyTriggersToTreeApplies the triggers on a root folder to all the subtree- Parameters:
- rootId- identifier of the root folder
- Throws:
- ServerException- an error happened in the server application
 
- 
executevoid execute(GUIAutomationRoutine routine, List<Long> docIds, List<Long> folderIds) throws ServerException Executes a routine or a given script- Parameters:
- routine- The automation routine to execute, if the- routine.id=0then the- routine.scriptis executed, otherwise the referenced routine is picked from the database and the extended attributes of- routineare used as input parameters.
- docIds- selected documents (optional)
- folderIds- selected folders
- Throws:
- ServerException- an error happened in the server application
 
 
-