Package org.apereo.cas.web.flow
Class AbstractConsentAction
java.lang.Object
org.springframework.webflow.action.AbstractAction
org.apereo.cas.web.flow.actions.BaseCasWebflowAction
org.apereo.cas.web.flow.AbstractConsentAction
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.webflow.execution.Action
- Direct Known Subclasses:
CheckConsentRequiredAction,ConfirmConsentAction
public abstract class AbstractConsentAction
extends org.apereo.cas.web.flow.actions.BaseCasWebflowAction
This is
AbstractConsentAction.- Since:
- 5.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.springframework.context.ConfigurableApplicationContextThe application context.protected final org.apereo.cas.authentication.attribute.AttributeDefinitionStoreThe attribute definition store that might contain metadata about consentable attributes.protected final org.apereo.cas.authentication.AuthenticationServiceSelectionPlanService selection strategies.protected final org.apereo.cas.configuration.CasConfigurationPropertiesCAS Settings.protected final org.apereo.cas.consent.ConsentEngineThe consent engine that handles calculations.protected final org.apereo.cas.services.ServicesManagerThe services manager.Fields inherited from class org.springframework.webflow.action.AbstractAction
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apereo.cas.services.RegisteredServicegetRegisteredServiceForConsent(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Service service) Gets registered service for consent.protected voidprepareConsentableAttributes(Map<String, List<Object>> attributes, org.springframework.webflow.execution.RequestContext context) Prepare consentable attributes.protected voidprepareConsentForRequestContext(org.springframework.webflow.execution.RequestContext requestContext) Prepare consent for request context.Methods inherited from class org.apereo.cas.web.flow.actions.BaseCasWebflowAction
isLoginFlowActiveMethods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doExecute, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
-
Field Details
-
casProperties
protected final org.apereo.cas.configuration.CasConfigurationProperties casPropertiesCAS Settings. -
servicesManager
protected final org.apereo.cas.services.ServicesManager servicesManagerThe services manager. -
authenticationRequestServiceSelectionStrategies
protected final org.apereo.cas.authentication.AuthenticationServiceSelectionPlan authenticationRequestServiceSelectionStrategiesService selection strategies. -
consentEngine
protected final org.apereo.cas.consent.ConsentEngine consentEngineThe consent engine that handles calculations. -
attributeDefinitionStore
protected final org.apereo.cas.authentication.attribute.AttributeDefinitionStore attributeDefinitionStoreThe attribute definition store that might contain metadata about consentable attributes. -
applicationContext
protected final org.springframework.context.ConfigurableApplicationContext applicationContextThe application context.
-
-
Constructor Details
-
AbstractConsentAction
public AbstractConsentAction()
-
-
Method Details
-
getRegisteredServiceForConsent
protected org.apereo.cas.services.RegisteredService getRegisteredServiceForConsent(org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.authentication.principal.Service service) Gets registered service for consent.- Parameters:
requestContext- the request contextservice- the service- Returns:
- the registered service for consent
-
prepareConsentForRequestContext
protected void prepareConsentForRequestContext(org.springframework.webflow.execution.RequestContext requestContext) Prepare consent for request context. The original service is kept, and the resolved service is added to the flash-scope only to ensure consent works for all other callback services that deal with different protocols.- Parameters:
requestContext- the request context
-
prepareConsentableAttributes
protected void prepareConsentableAttributes(Map<String, List<Object>> attributes, org.springframework.webflow.execution.RequestContext context) Prepare consentable attributes.- Parameters:
attributes- the attributescontext- the context
-