public final class EmailUsernameStage extends Object implements ProgressStage<EmailUsernameConfig>
Constructor and Description |
---|
EmailUsernameStage(ConnectionFactory connectionFactory,
ExecutorService executorService)
Constructs a new stage.
|
Modifier and Type | Method and Description |
---|---|
StageResponse |
advance(ProcessContext context,
EmailUsernameConfig config)
Advance the progress stage.
|
JsonValue |
gatherInitialRequirements(ProcessContext context,
EmailUsernameConfig config)
Response for defining any initial requirements the stage may have.
|
@Inject public EmailUsernameStage(ConnectionFactory connectionFactory, ExecutorService executorService)
connectionFactory
- the CREST connection factoryexecutorService
- an executor for asynchronous email sendingpublic JsonValue gatherInitialRequirements(ProcessContext context, EmailUsernameConfig config) throws ResourceException
ProgressStage
An empty json object implies no initial requirements.
gatherInitialRequirements
in interface ProgressStage<EmailUsernameConfig>
context
- the current process contextconfig
- the stage configurationResourceException
- if some expected state is invalidpublic StageResponse advance(ProcessContext context, EmailUsernameConfig config) throws ResourceException
ProgressStage
advance
in interface ProgressStage<EmailUsernameConfig>
context
- the current process contextconfig
- the stage configurationResourceException
- if some expected state or input is invalidCopyright © 2010-2018, ForgeRock All Rights Reserved.