Package ca.uhn.fhir.interceptor.model
Class RequestPartitionId
java.lang.Object
ca.uhn.fhir.interceptor.model.RequestPartitionId
- All Implemented Interfaces:
IModelJson
- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestPartitionIdasJson()static RequestPartitionIdstatic RequestPartitionIddefaultPartition(LocalDate thePartitionDate)booleanstatic RequestPartitionIdforPartitionIdAndName(Integer thePartitionId, String thePartitionName, LocalDate thePartitionDate)static RequestPartitionIdforPartitionIdsAndNames(List<String> thePartitionNames, List<Integer> thePartitionIds, LocalDate thePartitionDate)static RequestPartitionIdstatic RequestPartitionIdfromPartitionId(Integer thePartitionId)static RequestPartitionIdfromPartitionId(Integer thePartitionId, LocalDate thePartitionDate)static RequestPartitionIdfromPartitionIdAndName(Integer thePartitionId, String thePartitionName)static RequestPartitionIdfromPartitionIds(Integer... thePartitionIds)static RequestPartitionIdfromPartitionIds(Collection<Integer> thePartitionIds)static RequestPartitionIdfromPartitionIds(Collection<Integer> thePartitionIds, LocalDate thePartitionDate)static RequestPartitionIdfromPartitionName(String thePartitionName)static RequestPartitionIdfromPartitionName(String thePartitionName, LocalDate thePartitionDate)static RequestPartitionIdfromPartitionNames(String... thePartitionNames)static RequestPartitionIdfromPartitionNames(List<String> thePartitionNames)booleaninthashCode()booleanhasPartitionId(Integer thePartitionId)booleanbooleanbooleanbooleanReturns true if this request partition contains only one partition ID and it is the DEFAULT partition ID (null)static StringstringifyForKey(RequestPartitionId theRequestPartitionId)Create a string representation suitable for use as a cache key.toJson()toString()
-
Method Details
-
fromJson
public static RequestPartitionId fromJson(String theJson) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
isAllPartitions
-
getPartitionDate
-
getPartitionNames
-
getPartitionIds
-
toString
-
equals
-
hashCode
-
toJson
-
getFirstPartitionIdOrNull
-
getFirstPartitionNameOrNull
-
isDefaultPartition
Returns true if this request partition contains only one partition ID and it is the DEFAULT partition ID (null) -
hasPartitionId
-
hasPartitionIds
-
hasPartitionNames
-
hasDefaultPartitionId
-
getPartitionIdsWithoutDefault
-
allPartitions
-
defaultPartition
-
defaultPartition
-
fromPartitionId
-
fromPartitionId
@Nonnull public static RequestPartitionId fromPartitionId(@Nullable Integer thePartitionId, @Nullable LocalDate thePartitionDate) -
fromPartitionIds
@Nonnull public static RequestPartitionId fromPartitionIds(@Nonnull Collection<Integer> thePartitionIds) -
fromPartitionIds
@Nonnull public static RequestPartitionId fromPartitionIds(@Nonnull Collection<Integer> thePartitionIds, @Nullable LocalDate thePartitionDate) -
fromPartitionIds
-
fromPartitionName
-
fromPartitionName
@Nonnull public static RequestPartitionId fromPartitionName(@Nullable String thePartitionName, @Nullable LocalDate thePartitionDate) -
fromPartitionNames
@Nonnull public static RequestPartitionId fromPartitionNames(@Nullable List<String> thePartitionNames) -
fromPartitionNames
-
fromPartitionIdAndName
@Nonnull public static RequestPartitionId fromPartitionIdAndName(@Nullable Integer thePartitionId, @Nullable String thePartitionName) -
forPartitionIdAndName
@Nonnull public static RequestPartitionId forPartitionIdAndName(@Nullable Integer thePartitionId, @Nullable String thePartitionName, @Nullable LocalDate thePartitionDate) -
forPartitionIdsAndNames
@Nonnull public static RequestPartitionId forPartitionIdsAndNames(List<String> thePartitionNames, List<Integer> thePartitionIds, LocalDate thePartitionDate) -
stringifyForKey
Create a string representation suitable for use as a cache key. Null aware.Returns the partition IDs (numeric) as a joined string with a space between, using the string "null" for any null values
-
asJson
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-