
Package ca.uhn.fhir.interceptor.model
Interface IDefaultPartitionSettings
public interface IDefaultPartitionSettings
-
Method Summary
Modifier and TypeMethodDescriptiondefault IntegerThis method returns the default partition ID.default RequestPartitionIdReturns a RequestPartitionId instance for the default partition.default booleanhasDefaultPartitionId(RequestPartitionId theRequestPartitionId) Test whethertheRequestPartitionIdhas one of its targeted partitions matching the default partition where the ID of the default partition is provided bygetDefaultPartitionId().default booleanisDefaultPartition(RequestPartitionId theRequestPartitionId) Test whethertheRequestPartitionIdis only targeting the default partition where the ID of the default partition is provided bygetDefaultPartitionId().
-
Method Details
-
getDefaultPartitionId
This method returns the default partition ID. Implementers of this interface should overwrite this method to provide a default partition ID that is different than the default value of null.- Returns:
- the default partition ID
-
isDefaultPartition
Test whethertheRequestPartitionIdis only targeting the default partition where the ID of the default partition is provided bygetDefaultPartitionId().- Parameters:
theRequestPartitionId- to perform the evaluation upon.- Returns:
- true if the
theRequestPartitionIdis for the default partition, or isnull
-
hasDefaultPartitionId
Test whethertheRequestPartitionIdhas one of its targeted partitions matching the default partition where the ID of the default partition is provided bygetDefaultPartitionId().- Parameters:
theRequestPartitionId- to perform the evaluation upon.- Returns:
- true if the
theRequestPartitionIdis targeting the default partition.
-
getDefaultRequestPartitionId
Returns a RequestPartitionId instance for the default partition. This is a convenience method that creates a RequestPartitionId using the default partition ID fromgetDefaultPartitionId().- Returns:
- a RequestPartitionId for the default partition
-