Interface SelfRegistrationWorkflowWebService
-
- All Known Implementing Classes:
SelfRegistrationWorkflowWebServiceImpl
public interface SelfRegistrationWorkflowWebService
- Author:
- zaporozhec The web service provides and API to manage Self Registration flow entities.
-
-
Method Summary
-
-
-
Method Detail
-
saveStep
SelfRegistrationStepDtoResponse saveStep(SelfRegistrationStepDto dto)
is used to saveSelfRegistrationStepDto
- Parameters:
dto
- - the bean to be saved- Returns:
- - return #dto after save. if this was new dto, it will be filled by ID
-
saveWorkflow
SelfRegistrationWorkflowDtoResponse saveWorkflow(SelfRegistrationWorkflowDto dto)
is used to saveSelfRegistrationWorkflowDto
- Parameters:
dto
- - the bean to be saved- Returns:
- - return #dto after save. if this was new dto, it will be filled by ID
-
newStep
SelfRegistrationStepDto newStep(NewStepBean dto)
Method is used to create a new Self Registration StepSelfRegistrationStepDto
. during creation new Page Template will be created or will be used one that is defined inNewStepBean#getTemplateId()
New Target will be created with Action
BusinessRuleActionTypeEnum.TRIGGER_CREATE_WITH_APPROVAL
by default to trigger an approval process for new user. Could be changed after step creation.- Parameters:
dto
- -NewStepBean
contains required data for creation a new Step.- Returns:
SelfRegistrationStepDto
with all related information
-
deleteStep
Response deleteStep(String id)
is used to deleteSelfRegistrationStepDto
- Parameters:
id
- - the identification ofSelfRegistrationStepDto
to be deleted- Returns:
- -
Response
withResponse#getStatus()
as aResponseStatus.SUCCESS
in case the entity has been deleted andResponseStatus.FAILURE
otherwise
-
deleteWorkflow
Response deleteWorkflow(String id)
is used to deleteSelfRegistrationWorkflowDto
- Parameters:
id
- - the identification ofSelfRegistrationWorkflowDto
to be deleted- Returns:
- -
Response
withResponse#getStatus()
as aResponseStatus.SUCCESS
in case the entity has been deleted andResponseStatus.FAILURE
otherwise
-
getStep
SelfRegistrationStepDto getStep(String id)
is used to getSelfRegistrationWorkflowDto
- Parameters:
id
- - the identification ofSelfRegistrationStepDto
to get- Returns:
- -
SelfRegistrationStepDtoResponse
withSelfRegistrationStepDtoResponse#getValue()
as aSelfRegistrationStepDto
in case the entity has been found and null otherwise
-
getWorkflow
SelfRegistrationWorkflowDto getWorkflow(String id)
is used to getSelfRegistrationWorkflowDto
- Parameters:
id
- - the identification ofSelfRegistrationWorkflowDto
to get- Returns:
- -
SelfRegistrationWorkflowDtoResponse
withSelfRegistrationWorkflowDtoResponse#getValue()
as aSelfRegistrationWorkflowDto
in case the entity has been found and null otherwise
-
findWorkflows
SelfRegistrationWorkflowListResponse findWorkflows(SelfRegistrationWorkflowSearchBean searchBean, int from, int size)
The general method to search forSelfRegistrationWorkflowDto
objects- Parameters:
searchBean
- -SelfRegistrationWorkflowSearchBean
with filter datafrom
- - very 1st result numbersize
- - number of results to be listed- Returns:
- -
SelfRegistrationWorkflowListResponse
that contains a list ofSelfRegistrationWorkflowDto
inSelfRegistrationWorkflowListResponse#getList()
-
findSteps
SelfRegistrationStepListResponse findSteps(SelfRegistrationStepSearchBean searchBean, int from, int size)
The general method to search forSelfRegistrationStepDto
objects- Parameters:
searchBean
- -SelfRegistrationStepSearchBean
with filter datafrom
- - very 1st result numbersize
- - number of results to be listed- Returns:
- -
SelfRegistrationStepListResponse
that contains a list ofSelfRegistrationStepDto
inSelfRegistrationStepListResponse#getList()
-
getDashboard
SelfRegistrationWorkflowTree getDashboard(String id)
Service is used to get a Self Registration workflow chain. Chain is presented by NodesSelfRegistrationWorkflowTreeNode
- Parameters:
id
- - id of the Self Registration workflow that required to be displayed- Returns:
SelfRegistrationWorkflowTree
with data. The value might be null in case - no any steps are in the workflow.
-
getLinkedWorkflows
List<KeyNameDTO> getLinkedWorkflows(String id)
Service is used to get a Self Registration workflow chains that contains given Workflow step (by Id) . Chain is presented by Nodesorg.openiam.idm.srvc.selfregistration.dto.KeyNameDTO
- Parameters:
id
- - id of the Self Registration Step that required to be checked- Returns:
KeyNameDTO
list with data. The value might be null in case - no any steps are in the workflow.
-
getCurrentStep
IncompleteSelfRegistrationDto getCurrentStep(String sessionId)
Get current step for selfregistration flow by user sessionId. SessionId must not be null, if this is new flow, create a session and get id from UI.- Parameters:
sessionId
- - id of current user session- Returns:
IncompleteSelfRegistrationDto
- response with data required for step render on UI.
-
applyStep
IncompleteSelfRegistrationDto applyStep(SelfRegistrationDataRequest request)
After user save information on UI we MUST send this information to background to validate and manage next actions. ifIncompleteSelfRegistrationDto#isCompleted()
is TRUE than selfregistartion is finished and you must checkIncompleteSelfRegistrationDto#isWithApproval()
, otherwise you will receiveIncompleteSelfRegistrationDto#getStepId()
andIncompleteSelfRegistrationDto#getStep()
.IncompleteSelfRegistrationDto#isWithApproval()
is TRUE than the request was created to approve by configred approver, otherwise we save and provision user as a new User.- Parameters:
request
- -SelfRegistrationDataRequest
- information filled by user on GUI- Returns:
SelfRegistrationDataRequest
- the information about next step of about the fact of flow completion.
-
-