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, uriInfo
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Executes an action on an existing executable's job.void
deleteExecution
(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:ExecutableService
Returns a paged list of executions matching the given query.- Specified by:
listExecutions
in interfaceExecutableService
- Parameters:
query
- query conditions- Returns:
- paged list of executions the given query
-
listRecentExecutions
Description copied from interface:ExecutableService
Returns the list of recently completed executions, ordered by end date descendent.- Specified by:
listRecentExecutions
in 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:ExecutableService
Deletes the executable execution matching the provided key.- Specified by:
deleteExecution
in interfaceExecutableService
- Parameters:
executionKey
- key of executable execution to be deleted
-
deleteExecutions
Description copied from interface:ExecutableService
Deletes the executions matching the given query.- Specified by:
deleteExecutions
in interfaceExecutableService
- Parameters:
query
- query conditions- Returns:
- batch results as Response entity
-
execute
Description copied from interface:ExecutableService
Executes the executable matching the given specs.- Specified by:
execute
in interfaceExecutableService
- Parameters:
execSpecs
- conditions to exec- Returns:
- execution report for the executable matching the given specs
-
getJob
Description copied from interface:ExecutableService
Returns job (running or scheduled) for the executable matching the given key.- Specified by:
getJob
in interfaceExecutableService
- Parameters:
key
- executable key- Returns:
- job (running or scheduled) for the given key
-
listJobs
Description copied from interface:ExecutableService
List jobs (running and / or scheduled).- Specified by:
listJobs
in interfaceExecutableService
- Returns:
- jobs (running and / or scheduled)
-
actionJob
Description copied from interface:ExecutableService
Executes an action on an existing executable's job.- Specified by:
actionJob
in interfaceExecutableService
- Parameters:
key
- executable keyaction
- action to execute
-