@Requires(value="org.jboss.seam.security.SecurityExtension") public class SecurityPhaseListener extends Object
| Constructor and Description |
|---|
SecurityPhaseListener() |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.seam.faces.event.PhaseIdType[] |
getDefaultPhases(String viewId)
Get the default phases at which restrictions should be applied, by looking for a @RestrictAtPhase on a matching
|
Method |
getRestrictAtViewMethod(Annotation annotation)
Utility method to extract the "restrictAtPhase" method from an annotation
|
org.jboss.seam.faces.event.PhaseIdType[] |
getRestrictedPhaseIds(Method restrictAtViewMethod,
Annotation annotation)
Retrieve the default PhaseIdTypes defined by the restrictAtViewMethod in the annotation
|
List<? extends Annotation> |
getRestrictionsForPhase(org.jboss.seam.faces.event.PhaseIdType currentPhase,
String viewId)
Retrieve all annotations from the ViewConfigStore for a given a JSF phase, and a view id,
and where the annotation is qualified by @SecurityBindingType
|
boolean |
isAnnotationApplicableToPhase(Annotation annotation,
org.jboss.seam.faces.event.PhaseIdType currentPhase,
org.jboss.seam.faces.event.PhaseIdType[] defaultPhases)
Inspect an annotation to see if it specifies a view in which it should be.
|
void |
observeApplyRequestValues(javax.faces.event.PhaseEvent event)
Enforce any security annotations applicable to the ApplyRequestValues phase
|
void |
observeInvokeApplication(javax.faces.event.PhaseEvent event)
Enforce any security annotations applicable to the InvokeApplication phase
|
void |
observePreNavigateEvent(org.jboss.seam.faces.event.PreNavigateEvent event)
Monitor PreNavigationEvents, looking for a successful navigation from the Seam Security login button.
|
void |
observeProcessValidations(javax.faces.event.PhaseEvent event)
Enforce any security annotations applicable to the ProcessValidations phase
|
void |
observeRenderResponse(javax.faces.event.PhaseEvent event)
Enforce any security annotations applicable to the RenderResponse phase
|
void |
observeRestoreView(javax.faces.event.PhaseEvent event)
Enforce any security annotations applicable to the RestoreView phase
|
void |
observeUpdateModelValues(javax.faces.event.PhaseEvent event)
Enforce any security annotations applicable to the UpdateModelValues phase
|
public void observeRestoreView(@Observes
javax.faces.event.PhaseEvent event)
event - public void observeApplyRequestValues(@Observes
javax.faces.event.PhaseEvent event)
event - public void observeProcessValidations(@Observes
javax.faces.event.PhaseEvent event)
event - public void observeUpdateModelValues(@Observes
javax.faces.event.PhaseEvent event)
event - public void observeInvokeApplication(@Observes
javax.faces.event.PhaseEvent event)
event - public void observeRenderResponse(@Observes
javax.faces.event.PhaseEvent event)
event - public List<? extends Annotation> getRestrictionsForPhase(org.jboss.seam.faces.event.PhaseIdType currentPhase, String viewId)
currentPhase - viewId - public boolean isAnnotationApplicableToPhase(Annotation annotation, org.jboss.seam.faces.event.PhaseIdType currentPhase, org.jboss.seam.faces.event.PhaseIdType[] defaultPhases)
annotation - currentPhase - defaultPhases - public org.jboss.seam.faces.event.PhaseIdType[] getDefaultPhases(String viewId)
viewId - public Method getRestrictAtViewMethod(Annotation annotation)
annotation - public org.jboss.seam.faces.event.PhaseIdType[] getRestrictedPhaseIds(Method restrictAtViewMethod, Annotation annotation)
restrictAtViewMethod - annotation - public void observePreNavigateEvent(@Observes
org.jboss.seam.faces.event.PreNavigateEvent event)
event - Copyright © 2009-2013 Seam Framework. All Rights Reserved.