Class SecurityPermissionCheckAspect


  • public class SecurityPermissionCheckAspect
    extends Object
    The aspect which will check user permission for each class constructors or methods annotated with FluentSecurityPermission
    Since:
    21.11.0
    • Constructor Detail

      • SecurityPermissionCheckAspect

        public SecurityPermissionCheckAspect()
    • Method Detail

      • beforeclass

        public void beforeclass​(org.aspectj.lang.JoinPoint joinPoint,
                                FluentSecurityPermission fluentSecurityPermission)
                         throws IllegalAccessException
        create a point cut on class constructors which annotated with FluentSecurityPermission
        Parameters:
        joinPoint - The joinPoint which refer to class constructor annotated with FluentSecurityPermission
        fluentSecurityPermission - the fluentSecurityPermission annotation to get permissions which should check
        Throws:
        IllegalAccessException - The exception which will throw if user doesn't have access to the resource
      • beforemethod

        public void beforemethod​(org.aspectj.lang.JoinPoint joinPoint,
                                 FluentSecurityPermission fluentSecurityPermission)
                          throws IllegalAccessException
        create a point cut on methods which annotated with FluentSecurityPermission
        Parameters:
        joinPoint - The joinPoint which refer to methods annotated with FluentSecurityPermission
        fluentSecurityPermission - the fluentSecurityPermission annotation to get permissions which should check
        Throws:
        IllegalAccessException - The exception which will throw if user doesn't have access to the resource
      • beforemethod

        public void beforemethod​(org.aspectj.lang.JoinPoint joinPoint,
                                 PortalSecurityPermission portalSecurityPermission)
                          throws IllegalAccessException
        create a point cut on class constructors which annotated with PortalSecurityPermission
        Parameters:
        joinPoint - The joinPoint which refer to methods annotated with PortalSecurityPermission
        portalSecurityPermission - the portalSecurityPermission annotation to get permissions which should check
        Throws:
        IllegalAccessException - The exception which will throw if user doesn't have access to the resource
        Since:
        21.11.1
      • before

        public void before​(org.aspectj.lang.JoinPoint joinPoint,
                           FluentSecurityPermission fluentSecurityPermission)
                    throws IllegalAccessException
        Check user access permission
        Parameters:
        joinPoint - The joinPoint which refer to class or methods annotated with FluentSecurityPermission
        fluentSecurityPermission - the fluentSecurityPermission annotation to get permissions which should check
        Throws:
        IllegalAccessException - The exception which will throw if user doesn't have access to the resource