Package ca.uhn.fhir.rest.server.util
Class FhirContextSearchParamRegistry
java.lang.Object
ca.uhn.fhir.rest.server.util.FhirContextSearchParamRegistry
- All Implemented Interfaces:
ISearchParamRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionFhirContextSearchParamRegistry(ca.uhn.fhir.context.FhirContext theCtx) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchParam(ca.uhn.fhir.context.RuntimeSearchParam theSearchParam) voidRequest that the cache be refreshed now, in the current threadList<ca.uhn.fhir.context.RuntimeSearchParam>getActiveComboSearchParams(String theResourceName) List<ca.uhn.fhir.context.RuntimeSearchParam>getActiveComboSearchParams(String theResourceName, Set<String> theParamNames) ca.uhn.fhir.context.RuntimeSearchParamgetActiveSearchParam(String theResourceName, String theParamName) ca.uhn.fhir.context.RuntimeSearchParamgetActiveSearchParamByUrl(String theUrl) Fetch a SearchParameter by URLgetActiveSearchParams(String theResourceName) voidRequest that the cache be refreshed at the next convenient time (in a different thread)voidsetPhoneticEncoder(ca.uhn.fhir.context.phonetic.IPhoneticEncoder thePhoneticEncoder) When indexing a HumanName, if a StringEncoder is set in the context, then the "phonetic" search parameter will normalize the String using this encoder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.server.util.ISearchParamRegistry
getRuntimeSearchParam, getValidSearchParameterNamesIncludingMeta
-
Constructor Details
-
FhirContextSearchParamRegistry
Constructor
-
-
Method Details
-
forceRefresh
Description copied from interface:ISearchParamRegistryRequest that the cache be refreshed now, in the current thread- Specified by:
forceRefreshin interfaceISearchParamRegistry
-
getActiveSearchParam
public ca.uhn.fhir.context.RuntimeSearchParam getActiveSearchParam(String theResourceName, String theParamName) - Specified by:
getActiveSearchParamin interfaceISearchParamRegistry- Returns:
- Returns null if no match
-
getActiveSearchParams
- Specified by:
getActiveSearchParamsin interfaceISearchParamRegistry- Returns:
- Returns all active search params for the given resource
-
addSearchParam
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName, Set<String> theParamNames) - Specified by:
getActiveComboSearchParamsin interfaceISearchParamRegistry
-
getActiveSearchParamByUrl
Description copied from interface:ISearchParamRegistryFetch a SearchParameter by URL- Specified by:
getActiveSearchParamByUrlin interfaceISearchParamRegistry- Returns:
- Returns
nullif it can't be found
-
getActiveComboSearchParams
public List<ca.uhn.fhir.context.RuntimeSearchParam> getActiveComboSearchParams(String theResourceName) - Specified by:
getActiveComboSearchParamsin interfaceISearchParamRegistry
-
requestRefresh
Description copied from interface:ISearchParamRegistryRequest that the cache be refreshed at the next convenient time (in a different thread)- Specified by:
requestRefreshin interfaceISearchParamRegistry
-
setPhoneticEncoder
Description copied from interface:ISearchParamRegistryWhen indexing a HumanName, if a StringEncoder is set in the context, then the "phonetic" search parameter will normalize the String using this encoder.- Specified by:
setPhoneticEncoderin interfaceISearchParamRegistry
-