Interface TaskService
- All Known Implementing Classes:
SoapTaskClient,SoapTaskService
public interface TaskService
This webservice allows the administrators of the default tenant to interact
with the tasks.
- Since:
- 7.1.1
- Author:
- Marco Meschieri - LogicalDOC
-
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 tasksvoidStarts the execution of a taskvoidStops the execution of a task
-
Method Details
-
listTasks
List<WSTask> listTasks(String sid) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Gets the list of available tasks- Parameters:
sid- Session identifier- Returns:
- The list of tasks
- Throws:
com.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- error in the data layerAuthenticationException- the user has not been authenticated
-
getTask
WSTask getTask(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Gets a specific task- Parameters:
sid- identifier of the sessionname- unique name of the task- Returns:
- All task's metadata
- Throws:
com.logicaldoc.webservice.WebserviceException- error in the servercom.logicaldoc.core.PersistenceException- error in the data layerAuthenticationException- the user has not been authenticated
-
enable
void enable(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Enables a task- Parameters:
sid- Session identifiername- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- Error in the data layerAuthenticationException- The user has not been authenticated
-
disable
void disable(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Disables a task- Parameters:
sid- Session identifiername- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException- error in the scheduling systemcom.logicaldoc.core.PersistenceException- error in the data layerAuthenticationException- the user has not been authenticated
-
start
void start(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Starts the execution of a task- Parameters:
sid- Session identifiername- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException- error in the scheduling systemcom.logicaldoc.core.PersistenceException- error in the data layerAuthenticationException- the user has not been authenticated
-
stop
void stop(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Stops the execution of a task- Parameters:
sid- Session identifiername- The name of the task- Throws:
com.logicaldoc.webservice.WebserviceException- error in the scheduling systemcom.logicaldoc.core.PersistenceException- error in the data layerAuthenticationException- the user has not been authenticated
-
getLog
javax.activation.DataHandler getLog(String sid, String name) throws com.logicaldoc.webservice.WebserviceException, AuthenticationException, com.logicaldoc.core.PersistenceException Gets the log file of a given task- 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 filecom.logicaldoc.core.PersistenceException- error in the data layerAuthenticationException- the user has not been authenticated
-