All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.icthh.xm.commons.permission.aop.SecurityAspect Maven / Gradle / Ivy

There is a newer version: 4.0.17
Show newest version
package com.icthh.xm.commons.permission.aop;

import org.aspectj.lang.annotation.Aspect;

@Aspect
public class SecurityAspect {

//    @Pointcut("@annotation(org.springframework.security.access.prepost.PreAuthorize) " +
//        "|| @annotation(org.springframework.security.access.prepost.PostAuthorize) "
//        + "|| within(@org.springframework.security.access.prepost.PreAuthorize *) " +
//        " || within(@org.springframework.security.access.prepost.PostAuthorize *)")
//    public void excluded() {
//    }
//
//    @Pointcut("execution(* com.icthh.xm..web.rest..*(..))")
//    public void restPointcut() {
//    }
//
//    @Before("restPointcut() && !excluded()")
//    public Object beforeRest(JoinPoint joinPoint) {
//
//        throw new AccessDeniedException("Pre- or PostAuthorize not specified");
//
//    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy