Package org.apache.myfaces.extensions.cdi.core.api.security

Examples of org.apache.myfaces.extensions.cdi.core.api.security.SecurityViolationHandler


                                                            Class<? extends ViewConfig> errorPage,
                                                            boolean allowNavigation)
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();

        SecurityViolationHandler securityViolationHandler =
                CodiUtils.getContextualReferenceByClass(SecurityViolationHandler.class, true);

        if(securityViolationHandler != null)
        {
            //optional (custom handler) - allows to handle custom implementations of SecurityViolation
            securityViolationHandler.processSecurityViolations(exception.getViolations());
        }
        else
        {
            addViolationsAsMessage(exception.getViolations());
        }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.core.api.security.SecurityViolationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.