Package com.avoka.tm.security
Class SecurityPermissionCheckAspect
- java.lang.Object
-
- com.avoka.tm.security.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 Summary
Constructors Constructor Description SecurityPermissionCheckAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
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 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
-
-