Class SoapTaskService
- java.lang.Object
-
- com.logicaldoc.webservice.AbstractService
-
- com.logicaldoc.enterprise.webservice.soap.endpoint.SoapTaskService
-
- All Implemented Interfaces:
TaskService
public class SoapTaskService extends com.logicaldoc.webservice.AbstractService implements TaskService
Task Web Service Implementation- Since:
- 7.1.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapTaskService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable(String sid, String name)Disables a taskvoidenable(String sid, String name)Enables a taskjavax.activation.DataHandlergetLog(String sid, String name)Gets the log file of a given taskWSTaskgetTask(String sid, String name)Gets a specific taskWSTask[]listTasks(String sid)Gets the list of available tasksvoidstart(String sid, String name)Starts the execution of a taskvoidstop(String sid, String name)Stops the execution of a task
-
-
-
Method Detail
-
listTasks
public WSTask[] listTasks(String sid) throws Exception
Description copied from interface:TaskServiceGets the list of available tasks- Specified by:
listTasksin interfaceTaskService- Parameters:
sid- Session identifier- Returns:
- The list of tasks
- Throws:
Exception- error in the server
-
enable
public void enable(String sid, String name) throws Exception
Description copied from interface:TaskServiceEnables a task- Specified by:
enablein interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
Exception- error in the scheduling system
-
disable
public void disable(String sid, String name) throws Exception
Description copied from interface:TaskServiceDisables a task- Specified by:
disablein interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
Exception- error in the scheduling system
-
getTask
public WSTask getTask(String sid, String name) throws Exception
Description copied from interface:TaskServiceGets a specific task- Specified by:
getTaskin interfaceTaskService- Parameters:
sid- identifier of the sessionname- unique name of the task- Returns:
- All task's metadata
- Throws:
Exception- error in the server
-
start
public void start(String sid, String name) throws Exception
Description copied from interface:TaskServiceStarts the execution of a task- Specified by:
startin interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
Exception- error in the scheduling system
-
stop
public void stop(String sid, String name) throws Exception
Description copied from interface:TaskServiceStops the execution of a task- Specified by:
stopin interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
Exception- error in the scheduling system
-
getLog
public javax.activation.DataHandler getLog(String sid, String name) throws Exception
Description copied from interface:TaskServiceGets the log file of a given task- Specified by:
getLogin interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Returns:
- The requested logger file
- Throws:
Exception- error trying to access the log file
-
-