
Package ca.uhn.fhir.interceptor.model
Interface IDefaultPartitionSettings
public interface IDefaultPartitionSettings
-
Method Summary
Modifier and TypeMethodDescriptiondefault Integer
This method returns the default partition ID.default RequestPartitionId
Returns a RequestPartitionId instance for the default partition.default boolean
hasDefaultPartitionId
(RequestPartitionId theRequestPartitionId) Test whethertheRequestPartitionId
has one of its targeted partitions matching the default partition where the ID of the default partition is provided bygetDefaultPartitionId()
.default boolean
isDefaultPartition
(RequestPartitionId theRequestPartitionId) Test whethertheRequestPartitionId
is 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 whethertheRequestPartitionId
is 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
theRequestPartitionId
is for the default partition only.
-
hasDefaultPartitionId
Test whethertheRequestPartitionId
has 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
theRequestPartitionId
is 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
-