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_APPROVALby default to trigger an approval process for new user. Could be changed after step creation.- Parameters:
dto- -NewStepBeancontains required data for creation a new Step.- Returns:
SelfRegistrationStepDtowith all related information
-
deleteStep
Response deleteStep(String id)
is used to deleteSelfRegistrationStepDto- Parameters:
id- - the identification ofSelfRegistrationStepDtoto be deleted- Returns:
- -
ResponsewithResponse#getStatus()as aResponseStatus.SUCCESSin case the entity has been deleted andResponseStatus.FAILUREotherwise
-
deleteWorkflow
Response deleteWorkflow(String id)
is used to deleteSelfRegistrationWorkflowDto- Parameters:
id- - the identification ofSelfRegistrationWorkflowDtoto be deleted- Returns:
- -
ResponsewithResponse#getStatus()as aResponseStatus.SUCCESSin case the entity has been deleted andResponseStatus.FAILUREotherwise
-
getStep
SelfRegistrationStepDto getStep(String id)
is used to getSelfRegistrationWorkflowDto- Parameters:
id- - the identification ofSelfRegistrationStepDtoto get- Returns:
- -
SelfRegistrationStepDtoResponsewithSelfRegistrationStepDtoResponse#getValue()as aSelfRegistrationStepDtoin case the entity has been found and null otherwise
-
getWorkflow
SelfRegistrationWorkflowDto getWorkflow(String id)
is used to getSelfRegistrationWorkflowDto- Parameters:
id- - the identification ofSelfRegistrationWorkflowDtoto get- Returns:
- -
SelfRegistrationWorkflowDtoResponsewithSelfRegistrationWorkflowDtoResponse#getValue()as aSelfRegistrationWorkflowDtoin case the entity has been found and null otherwise
-
findWorkflows
SelfRegistrationWorkflowListResponse findWorkflows(SelfRegistrationWorkflowSearchBean searchBean, int from, int size)
The general method to search forSelfRegistrationWorkflowDtoobjects- Parameters:
searchBean- -SelfRegistrationWorkflowSearchBeanwith filter datafrom- - very 1st result numbersize- - number of results to be listed- Returns:
- -
SelfRegistrationWorkflowListResponsethat contains a list ofSelfRegistrationWorkflowDtoinSelfRegistrationWorkflowListResponse#getList()
-
findSteps
SelfRegistrationStepListResponse findSteps(SelfRegistrationStepSearchBean searchBean, int from, int size)
The general method to search forSelfRegistrationStepDtoobjects- Parameters:
searchBean- -SelfRegistrationStepSearchBeanwith filter datafrom- - very 1st result numbersize- - number of results to be listed- Returns:
- -
SelfRegistrationStepListResponsethat contains a list ofSelfRegistrationStepDtoinSelfRegistrationStepListResponse#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:
SelfRegistrationWorkflowTreewith 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:
KeyNameDTOlist 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.
-
-