Class UserDetailsStage
java.lang.Object
org.forgerock.selfservice.stages.user.UserDetailsStage
- All Implemented Interfaces:
ProgressStage<UserDetailsConfig>
Stage is responsible for request a new user json representation.
It expects the "mail" field to be populated in the context
which it uses to verify against the email address specified in the passed user object.
- Since:
- 0.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadvance(ProcessContext context, UserDetailsConfig config) Advance the progress stage.gatherInitialRequirements(ProcessContext context, UserDetailsConfig config) Response for defining any initial requirements the stage may have.
-
Constructor Details
-
UserDetailsStage
public UserDetailsStage()
-
-
Method Details
-
gatherInitialRequirements
public JsonValue gatherInitialRequirements(ProcessContext context, UserDetailsConfig config) throws ResourceException Description copied from interface:ProgressStageResponse for defining any initial requirements the stage may have.An empty json object implies no initial requirements.
- Specified by:
gatherInitialRequirementsin interfaceProgressStage<UserDetailsConfig>- Parameters:
context- the current process contextconfig- the stage configuration- Returns:
- json value representing the requirements or empty json object for no requirements
- Throws:
ResourceException- if some expected state is invalid
-
advance
public StageResponse advance(ProcessContext context, UserDetailsConfig config) throws ResourceException Description copied from interface:ProgressStageAdvance the progress stage.- Specified by:
advancein interfaceProgressStage<UserDetailsConfig>- Parameters:
context- the current process contextconfig- the stage configuration- Returns:
- the result of invoking this stage
- Throws:
ResourceException- if some expected state or input is invalid
-