Package org.ehrbase.application.abac
Class CustomMethodSecurityExpressionHandler
java.lang.Object
org.springframework.security.access.expression.AbstractSecurityExpressionHandler<org.aopalliance.intercept.MethodInvocation>
org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
org.ehrbase.application.abac.CustomMethodSecurityExpressionHandler
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.security.access.expression.method.MethodSecurityExpressionHandler,org.springframework.security.access.expression.SecurityExpressionHandler<org.aopalliance.intercept.MethodInvocation>
@ConditionalOnProperty(name="abac.enabled")
@Component
public class CustomMethodSecurityExpressionHandler
extends org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
-
Field Summary
Fields inherited from class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
logger -
Constructor Summary
ConstructorsConstructorDescriptionCustomMethodSecurityExpressionHandler(AbacConfig abacConfig, CompositionService compositionService, ContributionService contributionService, EhrService ehrService, AbacConfig.AbacCheck abacCheck) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.access.expression.method.MethodSecurityExpressionOperationscreateSecurityExpressionRoot(org.springframework.security.core.Authentication authentication, org.aopalliance.intercept.MethodInvocation invocation) Methods inherited from class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
createEvaluationContextInternal, filter, getDefaultRolePrefix, getParameterNameDiscoverer, getTrustResolver, setDefaultRolePrefix, setParameterNameDiscoverer, setPermissionCacheOptimizer, setReturnObject, setTrustResolverMethods inherited from class org.springframework.security.access.expression.AbstractSecurityExpressionHandler
createEvaluationContext, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.access.expression.SecurityExpressionHandler
createEvaluationContext, getExpressionParser
-
Constructor Details
-
CustomMethodSecurityExpressionHandler
@Lazy public CustomMethodSecurityExpressionHandler(AbacConfig abacConfig, CompositionService compositionService, ContributionService contributionService, EhrService ehrService, AbacConfig.AbacCheck abacCheck)
-
-
Method Details
-
createSecurityExpressionRoot
protected org.springframework.security.access.expression.method.MethodSecurityExpressionOperations createSecurityExpressionRoot(org.springframework.security.core.Authentication authentication, org.aopalliance.intercept.MethodInvocation invocation) - Overrides:
createSecurityExpressionRootin classorg.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
-