Class SoapTaskClient
java.lang.Object
com.logicaldoc.webservice.soap.client.SoapClient<TaskService>
com.logicaldoc.enterprise.webservice.soap.client.SoapTaskClient
- All Implemented Interfaces:
TaskService
public class SoapTaskClient
extends com.logicaldoc.webservice.soap.client.SoapClient<TaskService>
implements TaskService
Task Web Service client.
- Since:
- 7.1.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDisables a taskvoidEnables a taskjavax.activation.DataHandlerGets the log file of a given taskGets a specific taskGets the list of available tasksvoidvoidStarts the execution of a taskvoidStops the execution of a task
-
Constructor Details
-
SoapTaskClient
-
-
Method Details
-
listTasks
public List<WSTask> listTasks(String sid) throws AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskServiceGets the list of available tasks- Specified by:
listTasksin interfaceTaskService- Parameters:
sid- Session identifier- Returns:
- The list of tasks
- Throws:
AuthenticationException- the user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- error in the data layer
-
enable
public void enable(String sid, String name) throws AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskServiceEnables a task- Specified by:
enablein interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
AuthenticationException- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- Error in the data layer
-
disable
public void disable(String sid, String name) throws AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskServiceDisables a task- Specified by:
disablein interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
AuthenticationException- the user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- error in the scheduling systemcom.logicaldoc.core.PersistenceException- error in the data layer
-
getTask
public WSTask getTask(String sid, String name) throws AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException 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:
AuthenticationException- the user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- error in the servercom.logicaldoc.core.PersistenceException- error in the data layer
-
start
public void start(String sid, String name) throws AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskServiceStarts the execution of a task- Specified by:
startin interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
AuthenticationException- the user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- error in the scheduling systemcom.logicaldoc.core.PersistenceException- error in the data layer
-
stop
public void stop(String sid, String name) throws AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskServiceStops the execution of a task- Specified by:
stopin interfaceTaskService- Parameters:
sid- Session identifiername- The name of the task- Throws:
AuthenticationException- the user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- error in the scheduling systemcom.logicaldoc.core.PersistenceException- error in the data layer
-
getLog
public javax.activation.DataHandler getLog(String sid, String name) throws AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException 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:
AuthenticationException- the user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- error trying to access the log filecom.logicaldoc.core.PersistenceException- error in the data layer
-
saveLog
public void saveLog(String sid, String name, File target) throws IOException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException - Throws:
IOExceptioncom.logicaldoc.webservice.WebserviceExceptioncom.logicaldoc.core.PersistenceException
-