
Class RequestTenantPartitionInterceptor
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.partition.RequestTenantPartitionInterceptor
This interceptor uses the request tenant ID (as supplied to the server using
RestfulServer.setTenantIdentificationStrategy(ITenantIdentificationStrategy))
to indicate the partition ID. With this interceptor registered, The server treats the tenant name
supplied by the tenant identification strategy as a partition name.
Partition names (aka tenant IDs) must be registered in advance using the partition management operations.
- Since:
- 5.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ca.uhn.fhir.interceptor.model.RequestPartitionIdextractPartitionIdFromRequest(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.interceptor.model.RequestPartitionIdpartitionIdentifyCreate(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.interceptor.model.RequestPartitionIdpartitionIdentifyRead(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ReadPartitionIdRequestDetails theReadDetails) voidsetPartitionSettings(PartitionSettings thePartitionSettings)
-
Constructor Details
-
RequestTenantPartitionInterceptor
public RequestTenantPartitionInterceptor()
-
-
Method Details
-
setPartitionSettings
-
partitionIdentifyRead
public ca.uhn.fhir.interceptor.model.RequestPartitionId partitionIdentifyRead(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ReadPartitionIdRequestDetails theReadDetails) -
partitionIdentifyCreate
public ca.uhn.fhir.interceptor.model.RequestPartitionId partitionIdentifyCreate(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
extractPartitionIdFromRequest
@Nonnull protected ca.uhn.fhir.interceptor.model.RequestPartitionId extractPartitionIdFromRequest(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
-