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
FieldsFields 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 TypeMethodDescriptionvoidcancelRequest(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:UserRequestServiceReturns a list of running user requests matching the given query.- Specified by:
listRequestsin 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:UserRequestServiceStarts a new request for the given BPMN Process and user (if provided) or requesting user (if not provided).- Specified by:
startRequestin 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:UserRequestServiceCancel a running user request.- Specified by:
cancelRequestin interfaceUserRequestService- Parameters:
executionId- execution idreason- reason to cancel the user request
-
claimForm
Description copied from interface:UserRequestServiceRequests to manage the form for the given task id.- Specified by:
claimFormin interfaceUserRequestService- Parameters:
taskId- workflow task id- Returns:
- the form for the given task id
-
unclaimForm
Description copied from interface:UserRequestServiceCancels request to manage the form for the given task id.- Specified by:
unclaimFormin interfaceUserRequestService- Parameters:
taskId- workflow task id- Returns:
- the workflow form for the given task id
-
getForm
Description copied from interface:UserRequestServiceReturns a user request form matching the given task id.- Specified by:
getFormin interfaceUserRequestService- Parameters:
username- username of the logged usertaskId- workflow task id- Returns:
- the form for the given task id
-
listForms
Description copied from interface:UserRequestServiceReturns a list of user request forms matching the given query.- Specified by:
listFormsin interfaceUserRequestService- Parameters:
query- query conditions- Returns:
- list of all available user request forms
-
submitForm
Description copied from interface:UserRequestServiceSubmits a user request form.- Specified by:
submitFormin interfaceUserRequestService- Parameters:
form- user request form.- Returns:
- Response object featuring the updated user enriched with propagation status information
-