Package org.superbiz.cdi

Examples of org.superbiz.cdi.AccessDeniedException


    @AroundInvoke
    public Object restrictAccessBasedOnTime(InvocationContext ctx) throws Exception {
        InterceptionOrderTracker.getMethodsInterceptedList().add(ctx.getMethod().getName());
        InterceptionOrderTracker.getInterceptedByList().add(this.getClass().getSimpleName());
        if (!isWorkingHours()) {
            throw new AccessDeniedException("You are not allowed to access the method at this time");
        }
        return ctx.proceed();
    }
View Full Code Here


    @AroundInvoke
    public Object restrictAccessBasedOnTime(InvocationContext ctx) throws Exception {
        InterceptionOrderTracker.getMethodsInterceptedList().add(ctx.getMethod().getName());
        InterceptionOrderTracker.getInterceptedByList().add(this.getClass().getSimpleName());
        if (!isWorkingHours()) {
            throw new AccessDeniedException("You are not allowed to access the method at this time");
        }
        return ctx.proceed();
    }
View Full Code Here

    @AroundInvoke
    public Object restrictAccessBasedOnTime(InvocationContext ctx) throws Exception {
        InterceptionOrderTracker.getMethodsInterceptedList().add(ctx.getMethod().getName());
        InterceptionOrderTracker.getInterceptedByList().add(this.getClass().getSimpleName());
        if (!isWorkingHours()) {
            throw new AccessDeniedException("You are not allowed to access the method at this time");
        }
        return ctx.proceed();
    }
View Full Code Here

TOP

Related Classes of org.superbiz.cdi.AccessDeniedException

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.