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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disables a taskvoid
Enables a taskjavax.activation.DataHandler
Gets the log file of a given taskGets a specific taskGets the list of available tasksvoid
Starts the execution of a taskvoid
Stops the execution of a taskMethods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
-
Constructor Details
-
SoapTaskService
public SoapTaskService()
-
-
Method Details
-
listTasks
public List<WSTask> listTasks(String sid) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskService
Gets the list of available tasks- Specified by:
listTasks
in interfaceTaskService
- Parameters:
sid
- Session identifier- Returns:
- The list of tasks
- Throws:
com.logicaldoc.webservice.WebserviceException
- Error in the webserviceAuthenticationException
- the user has not been authenticatedcom.logicaldoc.core.PersistenceException
- error in the data layer
-
enable
public void enable(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskService
Enables a task- Specified by:
enable
in interfaceTaskService
- Parameters:
sid
- Session identifiername
- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException
- Error in the webserviceAuthenticationException
- The user has not been authenticatedcom.logicaldoc.core.PersistenceException
- Error in the data layer
-
disable
public void disable(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskService
Disables a task- Specified by:
disable
in interfaceTaskService
- Parameters:
sid
- Session identifiername
- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException
- error in the scheduling systemAuthenticationException
- the user has not been authenticatedcom.logicaldoc.core.PersistenceException
- error in the data layer
-
getTask
public WSTask getTask(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskService
Gets a specific task- Specified by:
getTask
in interfaceTaskService
- Parameters:
sid
- identifier of the sessionname
- unique name of the task- Returns:
- All task's metadata
- Throws:
com.logicaldoc.webservice.WebserviceException
- error in the serverAuthenticationException
- the user has not been authenticatedcom.logicaldoc.core.PersistenceException
- error in the data layer
-
start
public void start(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskService
Starts the execution of a task- Specified by:
start
in interfaceTaskService
- Parameters:
sid
- Session identifiername
- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException
- error in the scheduling systemAuthenticationException
- the user has not been authenticatedcom.logicaldoc.core.PersistenceException
- error in the data layer
-
stop
public void stop(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskService
Stops the execution of a task- Specified by:
stop
in interfaceTaskService
- Parameters:
sid
- Session identifiername
- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException
- error in the scheduling systemAuthenticationException
- the user has not been authenticatedcom.logicaldoc.core.PersistenceException
- error in the data layer
-
getLog
public javax.activation.DataHandler getLog(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Description copied from interface:TaskService
Gets the log file of a given task- Specified by:
getLog
in interfaceTaskService
- Parameters:
sid
- Session identifiername
- The name of the task- Returns:
- The requested logger file
- Throws:
com.logicaldoc.webservice.WebserviceException
- error trying to access the log fileAuthenticationException
- the user has not been authenticatedcom.logicaldoc.core.PersistenceException
- error in the data layer
-