Interface UserWorkflowAdapter
- All Superinterfaces:
WorkflowAdapter
- All Known Implementing Classes:
AbstractUserWorkflowAdapter,DefaultUserWorkflowAdapter,FlowableUserWorkflowAdapter
Interface for calling underlying workflow implementations.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionActivate an user.Confirm password reset for an user.create(UserCR userCR, boolean disablePwdPolicyCheck, Boolean enabled, String creator, String context) Create an user, optionally disabling password policy check.Create an user.voidDelete an user.internalSuspend(String key, String updater, String context) Suspend an user (used by internal authentication process)reactivate(String userKey, String updater, String context) Reactivate an user.voidrequestPasswordReset(String userKey, String updater, String context) Request password reset for an user.Suspend an user.Update an user.Methods inherited from interface org.apache.syncope.core.workflow.api.WorkflowAdapter
getPrefix
-
Field Details
-
REQUEST_PASSWORD_RESET
- See Also:
-
CONFIRM_PASSWORD_RESET
- See Also:
-
-
Method Details
-
create
Create an user.- Parameters:
userCR- user to be created and whether to propagate it as activecreator- username that requested this operationcontext- context information- Returns:
- user just created
-
create
UserWorkflowResult<Pair<String,Boolean>> create(UserCR userCR, boolean disablePwdPolicyCheck, Boolean enabled, String creator, String context) Create an user, optionally disabling password policy check.- Parameters:
userCR- user to be created and whether to propagate it as activedisablePwdPolicyCheck- disable password policy check?enabled- specify true/false to force active/supended statuscreator- username that requested this operationcontext- context information- Returns:
- user just created
-
activate
Activate an user.- Parameters:
userKey- user to be activatedtoken- to be verified for activationupdater- username that requested this operationcontext- context information- Returns:
- user just updated
-
update
UserWorkflowResult<Pair<UserUR,Boolean>> update(UserUR userUR, Boolean enabled, String updater, String context) Update an user.- Parameters:
userUR- modification set to be performedenabled- whether status shall be changed or notupdater- username that requested this operationcontext- context information- Returns:
- user just updated and propagations to be performed
-
suspend
Suspend an user.- Parameters:
key- to be suspendedupdater- username that requested this operationcontext- context information- Returns:
- user just suspended
-
internalSuspend
Pair<UserWorkflowResult<String>,Boolean> internalSuspend(String key, String updater, String context) Suspend an user (used by internal authentication process)- Parameters:
key- to be suspendedupdater- username that requested this operationcontext- context information- Returns:
- user just suspended and information whether to propagate suspension
-
reactivate
Reactivate an user.- Parameters:
userKey- user to be reactivatedupdater- username that requested this operationcontext- context information- Returns:
- user just reactivated
-
requestPasswordReset
Request password reset for an user.- Parameters:
userKey- user requesting password resetupdater- username that requested this operationcontext- context information
-
confirmPasswordReset
UserWorkflowResult<Pair<UserUR,Boolean>> confirmPasswordReset(String userKey, String token, String password, String updater, String context) Confirm password reset for an user.- Parameters:
userKey- user confirming password resettoken- security tokenpassword- new password valueupdater- username that requested this operationcontext- context information- Returns:
- user just updated and propagations to be performed
-
delete
Delete an user.- Parameters:
userKey- user to be deletederaser- username that requested this operationcontext- context information
-