net.sf.jguard.jsf
Class AccessListener
java.lang.Object
net.sf.jguard.jsf.AccessListener
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener
public class AccessListener
- extends java.lang.Object
- implements javax.faces.event.PhaseListener
JSF PhaseListener implementation to control in one unique point all access.
this class do a bridge between JSF and jGuard and its PolicyEnforcementPoint.
- Author:
- Charles Gay
- See Also:
- Serialized Form
|
Method Summary |
void |
afterPhase(javax.faces.event.PhaseEvent event)
|
void |
beforePhase(javax.faces.event.PhaseEvent event)
|
javax.faces.event.PhaseId |
getPhaseId()
we can select only one phase or all phases
and we want to be called after the RESTORE_VIEW
and the INVOKE_APPLICATION phases. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LISTENER_CONFIGURATION_LOCATION
public static final java.lang.String LISTENER_CONFIGURATION_LOCATION
- See Also:
- Constant Field Values
FACES_CONTEXT
public static final java.lang.String FACES_CONTEXT
- See Also:
- Constant Field Values
AccessListener
public AccessListener()
afterPhase
public void afterPhase(javax.faces.event.PhaseEvent event)
- Specified by:
afterPhase in interface javax.faces.event.PhaseListener
beforePhase
public void beforePhase(javax.faces.event.PhaseEvent event)
- Specified by:
beforePhase in interface javax.faces.event.PhaseListener
getPhaseId
public javax.faces.event.PhaseId getPhaseId()
- we can select only one phase or all phases
and we want to be called after the RESTORE_VIEW
and the INVOKE_APPLICATION phases.
so we return ANY_PHASE and the selection will be done
in the afterPhase method.
- Specified by:
getPhaseId in interface javax.faces.event.PhaseListener
Copyright © 2004-2009. All Rights Reserved.