Package ca.uhn.fhir.jpa.partition
Class BaseRequestPartitionHelperSvc
java.lang.Object
ca.uhn.fhir.jpa.partition.BaseRequestPartitionHelperSvc
- All Implemented Interfaces:
IRequestPartitionHelperSvc
public abstract class BaseRequestPartitionHelperSvc
extends Object
implements IRequestPartitionHelperSvc
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetermineCreatePartitionForRequest
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceType) Invoke thePointcut.STORAGE_PARTITION_IDENTIFY_CREATE
interceptor pointcut to determine the tenant for a create request.determineGenericPartitionForRequest
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) determineReadPartitionForRequest
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ReadPartitionIdRequestDetails theDetails) Invoke thePointcut.STORAGE_PARTITION_IDENTIFY_READ
interceptor pointcut to determine the tenant for a read request.boolean
isResourcePartitionable
(String theResourceType) toReadPartitions
(RequestPartitionId theRequestPartitionId) void
validateHasPartitionPermissions
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, String theResourceType, RequestPartitionId theRequestPartitionId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.jpa.partition.IRequestPartitionHelperSvc
determineReadPartitionForRequestForHistory, determineReadPartitionForRequestForRead, determineReadPartitionForRequestForRead, determineReadPartitionForRequestForSearchType, determineReadPartitionForRequestForSearchType, determineReadPartitionForRequestForSearchType, determineReadPartitionForRequestForServerOperation, validateAndNormalizePartitionIds, validateAndNormalizePartitionNames
-
Field Details
-
myFhirContext
-
-
Constructor Details
-
BaseRequestPartitionHelperSvc
public BaseRequestPartitionHelperSvc()
-
-
Method Details
-
determineReadPartitionForRequest
@Nonnull public RequestPartitionId determineReadPartitionForRequest(@Nullable ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nonnull ReadPartitionIdRequestDetails theDetails) Invoke thePointcut.STORAGE_PARTITION_IDENTIFY_READ
interceptor pointcut to determine the tenant for a read request.If no interceptors are registered with a hook for
Pointcut.STORAGE_PARTITION_IDENTIFY_READ
, returnRequestPartitionId.allPartitions()
instead.- Specified by:
determineReadPartitionForRequest
in interfaceIRequestPartitionHelperSvc
-
determineGenericPartitionForRequest
public RequestPartitionId determineGenericPartitionForRequest(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
determineGenericPartitionForRequest
in interfaceIRequestPartitionHelperSvc
-
determineCreatePartitionForRequest
@Nonnull public RequestPartitionId determineCreatePartitionForRequest(@Nullable ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nonnull org.hl7.fhir.instance.model.api.IBaseResource theResource, @Nonnull String theResourceType) Invoke thePointcut.STORAGE_PARTITION_IDENTIFY_CREATE
interceptor pointcut to determine the tenant for a create request.- Specified by:
determineCreatePartitionForRequest
in interfaceIRequestPartitionHelperSvc
-
toReadPartitions
- Specified by:
toReadPartitions
in interfaceIRequestPartitionHelperSvc
-
validateHasPartitionPermissions
public void validateHasPartitionPermissions(@Nonnull ca.uhn.fhir.rest.api.server.RequestDetails theRequest, String theResourceType, RequestPartitionId theRequestPartitionId) - Specified by:
validateHasPartitionPermissions
in interfaceIRequestPartitionHelperSvc
-
isResourcePartitionable
- Specified by:
isResourcePartitionable
in interfaceIRequestPartitionHelperSvc
-