org.apache.myfaces.extensions.cdi.core.api.security.event
Class InvalidBeanCreationEvent

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.core.api.security.event.InvalidBeanCreationEvent

public class InvalidBeanCreationEvent
extends Object

Author:
Gerhard Petracek

Constructor Summary
InvalidBeanCreationEvent(SecurityViolation securityViolation)
          Constructor which is required to create the event for the given SecurityViolation
 
Method Summary
 SecurityViolation getSecurityViolation()
          Exposes the current SecurityViolation
 boolean isThrowSecurityViolation()
          Exposes if the SecurityViolation wrapped by the current event should be thrown as exception
 void setThrowSecurityViolation(boolean throwSecurityViolation)
          Allows e.g. to filter the current violation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvalidBeanCreationEvent

public InvalidBeanCreationEvent(SecurityViolation securityViolation)
Constructor which is required to create the event for the given SecurityViolation

Parameters:
securityViolation - current security-violation
Method Detail

getSecurityViolation

public SecurityViolation getSecurityViolation()
Exposes the current SecurityViolation

Returns:
the current security-violation

setThrowSecurityViolation

public void setThrowSecurityViolation(boolean throwSecurityViolation)
Allows e.g. to filter the current violation

Parameters:
throwSecurityViolation - new value for the flag

isThrowSecurityViolation

public boolean isThrowSecurityViolation()
Exposes if the SecurityViolation wrapped by the current event should be thrown as exception

Returns:
true if the violation should be thrown, false otherwise


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