Class SelfRegistrationWorkflowWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.selfregistration.SelfRegistrationWorkflowWebServiceImpl
-
- All Implemented Interfaces:
SelfRegistrationWorkflowWebService
@Service("selfRegistrationWorkflowWS") public class SelfRegistrationWorkflowWebServiceImpl extends AbstractApiService implements SelfRegistrationWorkflowWebService
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description SelfRegistrationWorkflowWebServiceImpl(SelfRegistrationWorkflowQueue queue)
-
Method Summary
-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
SelfRegistrationWorkflowWebServiceImpl
public SelfRegistrationWorkflowWebServiceImpl(SelfRegistrationWorkflowQueue queue)
-
-
Method Detail
-
saveStep
public SelfRegistrationStepDtoResponse saveStep(SelfRegistrationStepDto dto)
Description copied from interface:SelfRegistrationWorkflowWebService
is used to saveSelfRegistrationStepDto
- Specified by:
saveStep
in interfaceSelfRegistrationWorkflowWebService
- Parameters:
dto
- - the bean to be saved- Returns:
- - return #dto after save. if this was new dto, it will be filled by ID
-
saveWorkflow
public SelfRegistrationWorkflowDtoResponse saveWorkflow(SelfRegistrationWorkflowDto dto)
Description copied from interface:SelfRegistrationWorkflowWebService
is used to saveSelfRegistrationWorkflowDto
- Specified by:
saveWorkflow
in interfaceSelfRegistrationWorkflowWebService
- Parameters:
dto
- - the bean to be saved- Returns:
- - return #dto after save. if this was new dto, it will be filled by ID
-
newStep
public SelfRegistrationStepDto newStep(NewStepBean dto)
Description copied from interface:SelfRegistrationWorkflowWebService
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.- Specified by:
newStep
in interfaceSelfRegistrationWorkflowWebService
- Parameters:
dto
- -NewStepBean
contains required data for creation a new Step.- Returns:
SelfRegistrationStepDto
with all related information
-
getCurrentStep
public IncompleteSelfRegistrationDto getCurrentStep(String sessionId)
Description copied from interface:SelfRegistrationWorkflowWebService
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.- Specified by:
getCurrentStep
in interfaceSelfRegistrationWorkflowWebService
- Parameters:
sessionId
- - id of current user session- Returns:
IncompleteSelfRegistrationDto
- response with data required for step render on UI.
-
applyStep
public IncompleteSelfRegistrationDto applyStep(SelfRegistrationDataRequest request)
Description copied from interface:SelfRegistrationWorkflowWebService
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.- Specified by:
applyStep
in interfaceSelfRegistrationWorkflowWebService
- Parameters:
request
- -SelfRegistrationDataRequest
- information filled by user on GUI- Returns:
SelfRegistrationDataRequest
- the information about next step of about the fact of flow completion.
-
deleteStep
public Response deleteStep(String id)
Description copied from interface:SelfRegistrationWorkflowWebService
is used to deleteSelfRegistrationStepDto
- Specified by:
deleteStep
in interfaceSelfRegistrationWorkflowWebService
- 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
-
getDashboard
public SelfRegistrationWorkflowTree getDashboard(String id)
Description copied from interface:SelfRegistrationWorkflowWebService
Service is used to get a Self Registration workflow chain. Chain is presented by NodesSelfRegistrationWorkflowTreeNode
- Specified by:
getDashboard
in interfaceSelfRegistrationWorkflowWebService
- 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
public List<KeyNameDTO> getLinkedWorkflows(String id)
Description copied from interface:SelfRegistrationWorkflowWebService
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
- Specified by:
getLinkedWorkflows
in interfaceSelfRegistrationWorkflowWebService
- 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.
-
deleteWorkflow
public Response deleteWorkflow(String id)
Description copied from interface:SelfRegistrationWorkflowWebService
is used to deleteSelfRegistrationWorkflowDto
- Specified by:
deleteWorkflow
in interfaceSelfRegistrationWorkflowWebService
- 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
public SelfRegistrationStepDto getStep(String id)
Description copied from interface:SelfRegistrationWorkflowWebService
is used to getSelfRegistrationWorkflowDto
- Specified by:
getStep
in interfaceSelfRegistrationWorkflowWebService
- Parameters:
id
- - the identification ofSelfRegistrationStepDto
to get- Returns:
- -
SelfRegistrationStepDtoResponse
withSelfRegistrationStepDtoResponse#getValue()
as aSelfRegistrationStepDto
in case the entity has been found and null otherwise
-
getWorkflow
public SelfRegistrationWorkflowDto getWorkflow(String id)
Description copied from interface:SelfRegistrationWorkflowWebService
is used to getSelfRegistrationWorkflowDto
- Specified by:
getWorkflow
in interfaceSelfRegistrationWorkflowWebService
- Parameters:
id
- - the identification ofSelfRegistrationWorkflowDto
to get- Returns:
- -
SelfRegistrationWorkflowDtoResponse
withSelfRegistrationWorkflowDtoResponse#getValue()
as aSelfRegistrationWorkflowDto
in case the entity has been found and null otherwise
-
findWorkflows
public SelfRegistrationWorkflowListResponse findWorkflows(SelfRegistrationWorkflowSearchBean searchBean, int from, int size)
Description copied from interface:SelfRegistrationWorkflowWebService
The general method to search forSelfRegistrationWorkflowDto
objects- Specified by:
findWorkflows
in interfaceSelfRegistrationWorkflowWebService
- 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
public SelfRegistrationStepListResponse findSteps(SelfRegistrationStepSearchBean searchBean, int from, int size)
Description copied from interface:SelfRegistrationWorkflowWebService
The general method to search forSelfRegistrationStepDto
objects- Specified by:
findSteps
in interfaceSelfRegistrationWorkflowWebService
- 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()
-
-