Class UserRequestServiceImpl
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.UserRequestServiceImpl
- All Implemented Interfaces:
JAXRSService
,UserRequestService
-
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
cancelRequest
(String executionId, String reason) Cancel a running user request.Requests to manage the form for the given task id.Returns a user request form matching the given task id.listForms
(UserRequestQuery query) Returns a list of user request forms matching the given query.listRequests
(UserRequestQuery query) Returns a list of running user requests matching the given query.startRequest
(String bpmnProcess, String user, WorkflowTaskExecInput inputVariables) Starts a new request for the given BPMN Process and user (if provided) or requesting user (if not provided).submitForm
(UserRequestForm form) Submits a user request form.unclaimForm
(String taskId) Cancels request to manage the form for the given task id.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
-
Field Details
-
logic
-
userDAO
-
-
Constructor Details
-
UserRequestServiceImpl
-
-
Method Details
-
listRequests
Description copied from interface:UserRequestService
Returns a list of running user requests matching the given query.- Specified by:
listRequests
in interfaceUserRequestService
- Parameters:
query
- query conditions- Returns:
- list of all running user requests
-
startRequest
public UserRequest startRequest(String bpmnProcess, String user, WorkflowTaskExecInput inputVariables) Description copied from interface:UserRequestService
Starts a new request for the given BPMN Process and user (if provided) or requesting user (if not provided).- Specified by:
startRequest
in interfaceUserRequestService
- Parameters:
bpmnProcess
- BPMN processuser
- if value looks like a UUID then it is interpreted as key otherwise as a usernameinputVariables
- initial request variables- Returns:
- data about the started request service, including execution id
-
cancelRequest
Description copied from interface:UserRequestService
Cancel a running user request.- Specified by:
cancelRequest
in interfaceUserRequestService
- Parameters:
executionId
- execution idreason
- reason to cancel the user request
-
claimForm
Description copied from interface:UserRequestService
Requests to manage the form for the given task id.- Specified by:
claimForm
in interfaceUserRequestService
- Parameters:
taskId
- workflow task id- Returns:
- the form for the given task id
-
unclaimForm
Description copied from interface:UserRequestService
Cancels request to manage the form for the given task id.- Specified by:
unclaimForm
in interfaceUserRequestService
- Parameters:
taskId
- workflow task id- Returns:
- the workflow form for the given task id
-
getForm
Description copied from interface:UserRequestService
Returns a user request form matching the given task id.- Specified by:
getForm
in interfaceUserRequestService
- Parameters:
username
- username of the logged usertaskId
- workflow task id- Returns:
- the form for the given task id
-
listForms
Description copied from interface:UserRequestService
Returns a list of user request forms matching the given query.- Specified by:
listForms
in interfaceUserRequestService
- Parameters:
query
- query conditions- Returns:
- list of all available user request forms
-
submitForm
Description copied from interface:UserRequestService
Submits a user request form.- Specified by:
submitForm
in interfaceUserRequestService
- Parameters:
form
- user request form.- Returns:
- Response object featuring the updated user enriched with propagation status information
-