Class AbstractCasWebflowEventResolver
- java.lang.Object
-
- org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver
-
- All Implemented Interfaces:
CasWebflowEventResolver
- Direct Known Subclasses:
DefaultCasDelegatingWebflowEventResolver,ServiceTicketRequestWebflowEventResolver
public abstract class AbstractCasWebflowEventResolver extends java.lang.Object implements CasWebflowEventResolver
This isAbstractCasWebflowEventResolverthat provides parent operations for all child event resolvers to handle core webflow changes.- Since:
- 5.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractCasWebflowEventResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.webflow.execution.EventgetAuthenticationFailureErrorEvent(org.springframework.webflow.execution.RequestContext context, java.lang.Exception exception)Gets authentication failure error event.protected org.apereo.cas.authentication.CredentialgetCredentialFromContext(org.springframework.webflow.execution.RequestContext context)Gets credential from context.protected org.springframework.webflow.execution.EventgrantTicketGrantingTicketToAuthenticationResult(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.AuthenticationResultBuilder authenticationResultBuilder, org.apereo.cas.authentication.principal.Service service)Grant ticket granting ticket.protected java.util.Set<org.springframework.webflow.execution.Event>handleAuthenticationTransactionAndGrantTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context)Handle authentication transaction and grant ticket granting ticket.protected org.springframework.webflow.execution.EventnewEvent(java.lang.String id)New event event.protected org.springframework.webflow.execution.EventnewEvent(java.lang.String id, java.lang.Throwable error)New event based on the id, which contains an error attribute referring to the exception occurred.protected org.springframework.webflow.execution.EventnewEvent(java.lang.String id, org.springframework.webflow.core.collection.AttributeMap attributes)New event based on the given id.java.util.Set<org.springframework.webflow.execution.Event>resolve(org.springframework.webflow.execution.RequestContext context)Resolve event.protected org.apereo.cas.authentication.principal.ServiceresolveServiceFromAuthenticationRequest(org.apereo.cas.authentication.principal.Service service)Resolve service from authentication request.protected org.apereo.cas.authentication.principal.ServiceresolveServiceFromAuthenticationRequest(org.springframework.webflow.execution.RequestContext context)Resolve service from authentication request service.org.springframework.webflow.execution.EventresolveSingle(org.springframework.webflow.execution.RequestContext context)Resolve single event.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apereo.cas.web.flow.resolver.CasWebflowEventResolver
getName, resolveInternal
-
-
-
-
Method Detail
-
newEvent
protected org.springframework.webflow.execution.Event newEvent(java.lang.String id, java.lang.Throwable error)New event based on the id, which contains an error attribute referring to the exception occurred.- Parameters:
id- the iderror- the error- Returns:
- the event
-
newEvent
protected org.springframework.webflow.execution.Event newEvent(java.lang.String id)
New event event.- Parameters:
id- the id- Returns:
- the event
-
newEvent
protected org.springframework.webflow.execution.Event newEvent(java.lang.String id, org.springframework.webflow.core.collection.AttributeMap attributes)New event based on the given id.- Parameters:
id- the idattributes- the attributes- Returns:
- the event
-
getCredentialFromContext
protected org.apereo.cas.authentication.Credential getCredentialFromContext(org.springframework.webflow.execution.RequestContext context)
Gets credential from context.- Parameters:
context- the context- Returns:
- the credential from context
-
grantTicketGrantingTicketToAuthenticationResult
protected org.springframework.webflow.execution.Event grantTicketGrantingTicketToAuthenticationResult(org.springframework.webflow.execution.RequestContext context, org.apereo.cas.authentication.AuthenticationResultBuilder authenticationResultBuilder, org.apereo.cas.authentication.principal.Service service)Grant ticket granting ticket.- Parameters:
context- the contextauthenticationResultBuilder- the authentication result builderservice- the service- Returns:
- the event
-
resolve
public java.util.Set<org.springframework.webflow.execution.Event> resolve(org.springframework.webflow.execution.RequestContext context)
Description copied from interface:CasWebflowEventResolverResolve event.- Specified by:
resolvein interfaceCasWebflowEventResolver- Parameters:
context- the context- Returns:
- the event
-
resolveSingle
public org.springframework.webflow.execution.Event resolveSingle(org.springframework.webflow.execution.RequestContext context)
Description copied from interface:CasWebflowEventResolverResolve single event.- Specified by:
resolveSinglein interfaceCasWebflowEventResolver- Parameters:
context- the context- Returns:
- the event
-
resolveServiceFromAuthenticationRequest
protected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest(org.apereo.cas.authentication.principal.Service service)
Resolve service from authentication request.- Parameters:
service- the service- Returns:
- the service
-
resolveServiceFromAuthenticationRequest
protected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest(org.springframework.webflow.execution.RequestContext context)
Resolve service from authentication request service.- Parameters:
context- the context- Returns:
- the service
-
handleAuthenticationTransactionAndGrantTicketGrantingTicket
protected java.util.Set<org.springframework.webflow.execution.Event> handleAuthenticationTransactionAndGrantTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context)
Handle authentication transaction and grant ticket granting ticket.- Parameters:
context- the context- Returns:
- the set
-
getAuthenticationFailureErrorEvent
protected org.springframework.webflow.execution.Event getAuthenticationFailureErrorEvent(org.springframework.webflow.execution.RequestContext context, java.lang.Exception exception)Gets authentication failure error event.- Parameters:
context- the contextexception- the exception- Returns:
- the authentication failure error event
-
-