org.apache.myfaces.extensions.cdi.jsf.impl.security
Class SecurityViewListener

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViewListener

public class SecurityViewListener
extends Object

If you don't need it or there is any issue, deactivate it via a CDI extension via ProcessAnnotatedType.veto() .

Author:
Gerhard Petracek

Constructor Summary
SecurityViewListener()
           
 
Method Summary
 void checkPermission(javax.faces.event.PhaseEvent event, javax.enterprise.inject.spi.BeanManager beanManager)
          Checks the permission based on the AccessDecisionVoters which are configured for the current view.
 void checkPermissionBeforeRendering(javax.faces.event.PhaseEvent event, javax.enterprise.inject.spi.BeanManager beanManager)
          Checks the permission based on the AccessDecisionVoters which are configured for the current view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityViewListener

public SecurityViewListener()
Method Detail

checkPermission

public void checkPermission(@Observes@AfterPhase(value=RESTORE_VIEW)
                            javax.faces.event.PhaseEvent event,
                            javax.enterprise.inject.spi.BeanManager beanManager)
Checks the permission based on the AccessDecisionVoters which are configured for the current view.

Parameters:
event - current phase-event
beanManager - current bean-manager

checkPermissionBeforeRendering

public void checkPermissionBeforeRendering(@Observes@BeforePhase(value=RENDER_RESPONSE)
                                           javax.faces.event.PhaseEvent event,
                                           javax.enterprise.inject.spi.BeanManager beanManager)
Checks the permission based on the AccessDecisionVoters which are configured for the current view.

Parameters:
event - current phase-event
beanManager - current bean-manager


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.