Class 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 Detail

      • SoapTaskService

        public SoapTaskService()
    • Method Detail

      • listTasks

        public WSTask[] listTasks​(String sid)
                           throws Exception
        Description copied from interface: TaskService
        Gets the list of available tasks
        Specified by:
        listTasks in interface TaskService
        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: TaskService
        Enables a task
        Specified by:
        enable in interface TaskService
        Parameters:
        sid - Session identifier
        name - 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: TaskService
        Disables a task
        Specified by:
        disable in interface TaskService
        Parameters:
        sid - Session identifier
        name - 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: TaskService
        Gets a specific task
        Specified by:
        getTask in interface TaskService
        Parameters:
        sid - identifier of the session
        name - 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: TaskService
        Starts the execution of a task
        Specified by:
        start in interface TaskService
        Parameters:
        sid - Session identifier
        name - 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: TaskService
        Stops the execution of a task
        Specified by:
        stop in interface TaskService
        Parameters:
        sid - Session identifier
        name - 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: TaskService
        Gets the log file of a given task
        Specified by:
        getLog in interface TaskService
        Parameters:
        sid - Session identifier
        name - The name of the task
        Returns:
        The requested logger file
        Throws:
        Exception - error trying to access the log file