Package org.ehrbase.tenant
Class TenantAspect
- java.lang.Object
-
- org.ehrbase.tenant.TenantAspect
-
- All Implemented Interfaces:
ExtractionStrategyAware
public class TenantAspect extends Object implements ExtractionStrategyAware
-
-
Constructor Summary
Constructors Constructor Description TenantAspect()TenantAspect(List<TenantIdExtractionStrategy<?>> extractionStrategies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidaddExtractionStrategy(TenantIdExtractionStrategy<T> strategy)voidmatchTenantAnnotation(TenantAware tenantAnnotation)ObjectsecuredCall(org.aspectj.lang.ProceedingJoinPoint pjp, TenantAware tenantAnnotation)
-
-
-
Constructor Detail
-
TenantAspect
public TenantAspect()
-
TenantAspect
public TenantAspect(List<TenantIdExtractionStrategy<?>> extractionStrategies)
-
-
Method Detail
-
addExtractionStrategy
public <T> void addExtractionStrategy(TenantIdExtractionStrategy<T> strategy)
- Specified by:
addExtractionStrategyin interfaceExtractionStrategyAware
-
matchTenantAnnotation
public void matchTenantAnnotation(TenantAware tenantAnnotation)
-
securedCall
public Object securedCall(org.aspectj.lang.ProceedingJoinPoint pjp, TenantAware tenantAnnotation) throws Throwable
- Throws:
Throwable
-
-