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
-
Field Summary
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfoFields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes an action on an existing executable's job.voiddeleteExecution(String executionKey) Deletes the executable execution matching the provided key.deleteExecutions(ExecQuery query) Deletes the executions matching the given query.Executes the executable matching the given specs.protected abstract AbstractExecutableLogic<?> Returns job (running or scheduled) for the executable matching the given key.listExecutions(ExecQuery query) Returns a paged list of executions matching the given query.listJobs()List jobs (running and / or scheduled).listRecentExecutions(int max) Returns the list of recently completed executions, ordered by end date descendent.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
-
Constructor Details
-
AbstractExecutableService
public AbstractExecutableService()
-
-
Method Details
-
getExecutableLogic
-
listExecutions
Description copied from interface:ExecutableServiceReturns a paged list of executions matching the given query.- Specified by:
listExecutionsin interfaceExecutableService- Parameters:
query- query conditions- Returns:
- paged list of executions the given query
-
listRecentExecutions
Description copied from interface:ExecutableServiceReturns the list of recently completed executions, ordered by end date descendent.- Specified by:
listRecentExecutionsin interfaceExecutableService- Parameters:
max- the maximum number of executions to return- Returns:
- list of recently completed executions, ordered by end date descendent
-
deleteExecution
Description copied from interface:ExecutableServiceDeletes the executable execution matching the provided key.- Specified by:
deleteExecutionin interfaceExecutableService- Parameters:
executionKey- key of executable execution to be deleted
-
deleteExecutions
Description copied from interface:ExecutableServiceDeletes the executions matching the given query.- Specified by:
deleteExecutionsin interfaceExecutableService- Parameters:
query- query conditions- Returns:
- batch results as Response entity
-
execute
Description copied from interface:ExecutableServiceExecutes the executable matching the given specs.- Specified by:
executein interfaceExecutableService- Parameters:
execSpecs- conditions to exec- Returns:
- execution report for the executable matching the given specs
-
getJob
Description copied from interface:ExecutableServiceReturns job (running or scheduled) for the executable matching the given key.- Specified by:
getJobin interfaceExecutableService- Parameters:
key- executable key- Returns:
- job (running or scheduled) for the given key
-
listJobs
Description copied from interface:ExecutableServiceList jobs (running and / or scheduled).- Specified by:
listJobsin interfaceExecutableService- Returns:
- jobs (running and / or scheduled)
-
actionJob
Description copied from interface:ExecutableServiceExecutes an action on an existing executable's job.- Specified by:
actionJobin interfaceExecutableService- Parameters:
key- executable keyaction- action to execute
-