Interface AutomationService
- 
- All Superinterfaces:
 com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("automation") public interface AutomationService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the Automation Service.- Since:
 - 8.1
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAutomationService.Instance 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyTriggersToTree(long rootId)Applies the triggers on a root folder to all the subtreevoiddeleteRoutines(long[] ids)voiddeleteTriggers(long[] ids)voidexecute(Long routineId, String script, Long[] docIds, Long folderId)Executes a routine or a given scriptGUIAutomationRoutinegetRoutine(long id)Loads a given routine from the databaseGUIAutomationTriggergetTrigger(long id)Loads a given trigger from the databaseGUIAutomationRoutinesaveRoutine(GUIAutomationRoutine routine)Creates or updates a routineGUIAutomationTriggersaveTrigger(GUIAutomationTrigger trigger)Creates or updates a trigger 
 - 
 
- 
- 
Method Detail
- 
saveRoutine
GUIAutomationRoutine saveRoutine(GUIAutomationRoutine routine) throws ServerException
Creates or updates a routine- Parameters:
 routine- the routine to save- Returns:
 - the saved routine
 - Throws:
 ServerException- an error happened in the server application
 
- 
getRoutine
GUIAutomationRoutine getRoutine(long id) throws ServerException
Loads 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
void deleteRoutines(long[] ids) throws ServerException- Throws:
 ServerException
 
- 
deleteTriggers
void deleteTriggers(long[] ids) throws ServerException- Throws:
 ServerException
 
- 
saveTrigger
GUIAutomationTrigger saveTrigger(GUIAutomationTrigger trigger) throws ServerException
Creates or updates a trigger- Parameters:
 trigger- the automation trigger to save- Returns:
 - the saved trigger
 - Throws:
 ServerException- an error happened in the server application
 
- 
getTrigger
GUIAutomationTrigger getTrigger(long id) throws ServerException
Loads 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
 
- 
applyTriggersToTree
void applyTriggersToTree(long rootId) throws ServerExceptionApplies 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
 
- 
execute
void execute(Long routineId, String script, Long[] docIds, Long folderId) throws ServerException
Executes a routine or a given script- Parameters:
 routineId- identifier of the routine to executescript- automation script to executedocIds- selected documents (optional)folderId- selected folders (optional)- Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -