Package org.forgerock.selfservice.json
Class JsonAnonymousProcessServiceBuilder
java.lang.Object
org.forgerock.selfservice.json.JsonAnonymousProcessServiceBuilder
Builder for
AnonymousProcessService from JSON config and AnonymousProcessService requirements.- Since:
- 20.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build anAnonymousProcessServicefrom the JSON config and the other elements.Construct a new JsonAnonymousProcessServiceBuilder.withClassLoader(ClassLoader classLoader) Set the ClassLoader.withJsonConfig(JsonValue jsonConfig) Set the JSON config from which to build theProcessInstanceConfig.withProcessStore(ProcessStore processStore) Sets theProcessStore.withProgressStageProvider(ProgressStageProvider progressStageProvider) Sets theProgressStageProvider.withStageConfigMapping(String name, Class<? extends StageConfig> type) Provide additional named type-mapping, if desired.withTokenHandlerFactory(SnapshotTokenHandlerFactory tokenHandlerFactory) Sets theSnapshotTokenHandlerFactory.
-
Method Details
-
newBuilder
Construct a new JsonAnonymousProcessServiceBuilder.- Returns:
- the JsonAnonymousProcesssServiceBuilder.
-
withClassLoader
Set the ClassLoader.- Parameters:
classLoader- the ClassLoader- Returns:
- this builder instance
-
withStageConfigMapping
public JsonAnonymousProcessServiceBuilder withStageConfigMapping(String name, Class<? extends StageConfig> type) Provide additional named type-mapping, if desired.- Parameters:
name- thenameattribute value to associate with the new stage config typetype- theStageConfigtype to associate- Returns:
- this builder instance
-
withJsonConfig
Set the JSON config from which to build theProcessInstanceConfig.- Parameters:
jsonConfig- the JSON config for aProcessInstanceConfig.- Returns:
- this builder instance
-
withProgressStageProvider
public JsonAnonymousProcessServiceBuilder withProgressStageProvider(ProgressStageProvider progressStageProvider) Sets theProgressStageProvider.- Parameters:
progressStageProvider- theProgressStageProvider.- Returns:
- this builder instance
-
withTokenHandlerFactory
public JsonAnonymousProcessServiceBuilder withTokenHandlerFactory(SnapshotTokenHandlerFactory tokenHandlerFactory) Sets theSnapshotTokenHandlerFactory.- Parameters:
tokenHandlerFactory- theSnapshotTokenHandlerFactory.- Returns:
- this builder instance
-
withProcessStore
Sets theProcessStore.- Parameters:
processStore- theProcessStore.- Returns:
- this builder instance
-
build
Build anAnonymousProcessServicefrom the JSON config and the other elements.- Returns:
- the
AnonymousProcessService
-