Class AbstractExecutableService

java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.AbstractExecutableService
All Implemented Interfaces:
ExecutableService, JAXRSService
Direct Known Subclasses:
ReportServiceImpl, TaskServiceImpl

public abstract class AbstractExecutableService extends AbstractService implements ExecutableService
  • Constructor Details

    • AbstractExecutableService

      public AbstractExecutableService()
  • Method Details

    • getExecutableLogic

      protected abstract AbstractExecutableLogic<?> getExecutableLogic()
    • listExecutions

      public PagedResult<ExecTO> listExecutions(ExecQuery query)
      Description copied from interface: ExecutableService
      Returns a paged list of executions matching the given query.
      Specified by:
      listExecutions in interface ExecutableService
      Parameters:
      query - query conditions
      Returns:
      paged list of executions the given query
    • listRecentExecutions

      public List<ExecTO> listRecentExecutions(int max)
      Description copied from interface: ExecutableService
      Returns the list of recently completed executions, ordered by end date descendent.
      Specified by:
      listRecentExecutions in interface ExecutableService
      Parameters:
      max - the maximum number of executions to return
      Returns:
      list of recently completed executions, ordered by end date descendent
    • deleteExecution

      public void deleteExecution(String executionKey)
      Description copied from interface: ExecutableService
      Deletes the executable execution matching the provided key.
      Specified by:
      deleteExecution in interface ExecutableService
      Parameters:
      executionKey - key of executable execution to be deleted
    • deleteExecutions

      public Response deleteExecutions(ExecQuery query)
      Description copied from interface: ExecutableService
      Deletes the executions matching the given query.
      Specified by:
      deleteExecutions in interface ExecutableService
      Parameters:
      query - query conditions
      Returns:
      batch results as Response entity
    • execute

      public ExecTO execute(ExecSpecs execSpecs)
      Description copied from interface: ExecutableService
      Executes the executable matching the given specs.
      Specified by:
      execute in interface ExecutableService
      Parameters:
      execSpecs - conditions to exec
      Returns:
      execution report for the executable matching the given specs
    • getJob

      public JobTO getJob(String key)
      Description copied from interface: ExecutableService
      Returns job (running or scheduled) for the executable matching the given key.
      Specified by:
      getJob in interface ExecutableService
      Parameters:
      key - executable key
      Returns:
      job (running or scheduled) for the given key
    • listJobs

      public List<JobTO> listJobs()
      Description copied from interface: ExecutableService
      List jobs (running and / or scheduled).
      Specified by:
      listJobs in interface ExecutableService
      Returns:
      jobs (running and / or scheduled)
    • actionJob

      public void actionJob(String key, JobAction action)
      Description copied from interface: ExecutableService
      Executes an action on an existing executable's job.
      Specified by:
      actionJob in interface ExecutableService
      Parameters:
      key - executable key
      action - action to execute