InboundMessageType
- type of in-bound messageOutboundMessageType
- type of out-bound messagepublic abstract class AbstractConditionalProfileAction<InboundMessageType,OutboundMessageType> extends AbstractProfileAction<InboundMessageType,OutboundMessageType>
A condition does not represent a situation in which an error should be raised, but that normal processing should continue and the action simply doesn't apply, so a false condition does not raise a non-proceed event.
Modifier and Type | Field and Description |
---|---|
private com.google.common.base.Predicate<ProfileRequestContext> |
activationCondition
Condition dictating whether to run or not.
|
Constructor and Description |
---|
AbstractConditionalProfileAction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
doPreExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
com.google.common.base.Predicate<ProfileRequestContext> |
getActivationCondition()
Get activation condition indicating whether action should execute.
|
void |
setActivationCondition(com.google.common.base.Predicate<ProfileRequestContext> condition)
Set activation condition indicating whether action should execute.
|
doExecute, doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
@Nonnull private com.google.common.base.Predicate<ProfileRequestContext> activationCondition
public AbstractConditionalProfileAction()
@Nonnull public com.google.common.base.Predicate<ProfileRequestContext> getActivationCondition()
public void setActivationCondition(@Nonnull com.google.common.base.Predicate<ProfileRequestContext> condition)
condition
- predicate to applyprotected boolean doPreExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext
to the context tree to signal how to continue with overall
workflow processing.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreExecute
in class AbstractProfileAction<InboundMessageType,OutboundMessageType>
profileRequestContext
- the current IdP profile request contextCopyright © 1999–2015 JBoss by Red Hat. All rights reserved.