Package org.forgerock.am.trees.model
Class TreeResult
java.lang.Object
org.forgerock.am.trees.model.TreeResult
Immutable container for the result of processing an authentication tree.
- Since:
- AM 5.5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionCallbacks requested by a node when the Outcome isOutcome.NEED_INPUT
.final NodeProcessException
The cause of the exception if the outcome isOutcome.EXCEPTION
.final Outcome
The outcome of the tree processing.Properties to return to the client.final Duration
The optional duration for which the tree is suspended.final SuspensionHandler
The suspension handler to be called on the tree being suspended.final TreeState
The state of the tree after processing. -
Constructor Summary
ConstructorsConstructorDescriptionTreeResult
(TreeState treeState, Outcome outcome) Constructs a new TreeResult.TreeResult
(TreeState treeState, Outcome outcome, Map<String, Object> returnProperties, List<Callback> callbacks) Constructs a new TreeResult.TreeResult
(TreeState treeState, Outcome outcome, Map<String, Object> returnProperties, List<Callback> callbacks, SuspensionHandler suspensionHandler, Duration suspensionDuration, NodeProcessException cause) Constructs a new TreeResult. -
Method Summary
-
Field Details
-
treeState
The state of the tree after processing. -
outcome
The outcome of the tree processing. -
returnProperties
Properties to return to the client. -
callbacks
Callbacks requested by a node when the Outcome isOutcome.NEED_INPUT
. May be null. -
suspensionHandler
The suspension handler to be called on the tree being suspended. May be null. -
suspensionDuration
The optional duration for which the tree is suspended. May be null. -
cause
The cause of the exception if the outcome isOutcome.EXCEPTION
. May be null.
-
-
Constructor Details
-
TreeResult
Constructs a new TreeResult.- Parameters:
treeState
- The state of the tree after processing.outcome
- The outcome of the tree processing.
-
TreeResult
public TreeResult(TreeState treeState, Outcome outcome, Map<String, Object> returnProperties, List<Callback> callbacks) Constructs a new TreeResult.- Parameters:
treeState
- The state of the tree after processing.outcome
- The outcome of the tree processing.returnProperties
- Properties to return to the client.callbacks
- Callbacks requested by a node when the Outcome isOutcome.NEED_INPUT
. May be null.
-
TreeResult
public TreeResult(TreeState treeState, Outcome outcome, Map<String, Object> returnProperties, List<Callback> callbacks, SuspensionHandler suspensionHandler, Duration suspensionDuration, NodeProcessException cause) Constructs a new TreeResult.- Parameters:
treeState
- The state of the tree after processing.outcome
- The outcome of the tree processing.returnProperties
- Properties to return to the client.callbacks
- Callbacks requested by a node when the Outcome isOutcome.NEED_INPUT
. May be null.suspensionHandler
- handler to be invoked on suspended the treesuspensionDuration
- duration for which the tree is suspendedcause
- the cause of the exception if the outcome isOutcome.EXCEPTION
. May be null.
-
-
Method Details
-
getHeader
Return the header string attached to this TreeResult, if any.- Returns:
- the header string
-
getDescription
Return the description attached to this TreeResult, if any.- Returns:
- the description
-
getStage
Return the stage attached to this TreeResult, if any.- Returns:
- the stage
-