Package com.avoka.tm.security
Class SecurityPermissionCheckAspect
java.lang.Object
com.avoka.tm.security.SecurityPermissionCheckAspect
The aspect which will check user permission for each class constructors or methods annotated with FluentSecurityPermission
- Since:
- 21.11.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
before
(org.aspectj.lang.JoinPoint joinPoint, FluentSecurityPermission fluentSecurityPermission) Check user access permissionvoid
beforeclass
(org.aspectj.lang.JoinPoint joinPoint, FluentSecurityPermission fluentSecurityPermission) create a point cut on class constructors which annotated with FluentSecurityPermissionvoid
beforemethod
(org.aspectj.lang.JoinPoint joinPoint, FluentSecurityPermission fluentSecurityPermission) create a point cut on methods which annotated with FluentSecurityPermissionvoid
beforemethod
(org.aspectj.lang.JoinPoint joinPoint, PortalSecurityPermission portalSecurityPermission) create a point cut on class constructors which annotated with PortalSecurityPermission
-
Constructor Details
-
SecurityPermissionCheckAspect
public SecurityPermissionCheckAspect()
-
-
Method Details
-
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 FluentSecurityPermissionfluentSecurityPermission
- 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 FluentSecurityPermissionfluentSecurityPermission
- 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 PortalSecurityPermissionportalSecurityPermission
- 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 FluentSecurityPermissionfluentSecurityPermission
- 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
-