
Package ca.uhn.fhir.interceptor.auth
Class CompartmentSearchParameterModifications
java.lang.Object
ca.uhn.fhir.interceptor.auth.CompartmentSearchParameterModifications
This class is used in RuleBuilder, as a way to allow adding or removing certain Search Parameters
to the compartment.
For example, if you were to add as additional SPs
[device -> ["patient", "subject"]
and apply it to compartment Patient/123, then any device with Patient/123 as its patient would be considered "in"
the compartment, despite the fact that device is technically not part of the compartment definition for patient.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSPToIncludeInCompartment
(String theResourceType, String theSPName) Add an SP, not in the compartment, that will now be included hereaftervoid
addSPToOmitFromCompartment
(String theResourceType, String theSPName) Add an SP, normally included in the compartment, that will be omitted hereafter.fromAdditionalAndOmittedSPNames
(String theResourceType, Set<String> theAdditionalSPs, Set<String> theOmittedSps) Construct compartment modifications from resource type and sets of SP names to add or omit respectively.fromAdditionalCompartmentParamNames
(String theResourceType, Set<String> theAdditionalCompartmentParamNames) getAdditionalSearchParamNamesForResourceType
(String theResourceType) getOmittedSPNamesForResourceType
(String theResourceType)
-
Constructor Details
-
CompartmentSearchParameterModifications
-
-
Method Details
-
fromAdditionalAndOmittedSPNames
public static CompartmentSearchParameterModifications fromAdditionalAndOmittedSPNames(@Nonnull String theResourceType, @Nonnull Set<String> theAdditionalSPs, @Nonnull Set<String> theOmittedSps) Construct compartment modifications from resource type and sets of SP names to add or omit respectively.- Parameters:
theResourceType
- the resource type the SPs are based ontheAdditionalSPs
- the additional SP namestheOmittedSps
- the omitted SP names- Returns:
-
fromAdditionalCompartmentParamNames
public static CompartmentSearchParameterModifications fromAdditionalCompartmentParamNames(String theResourceType, @Nonnull Set<String> theAdditionalCompartmentParamNames) -
addSPToOmitFromCompartment
Add an SP, normally included in the compartment, that will be omitted hereafter.- Parameters:
theResourceType
- the resource type on which the SP existstheSPName
- the name of the search parameter
-
addSPToIncludeInCompartment
Add an SP, not in the compartment, that will now be included hereafter- Parameters:
theResourceType
- the resource type on which the SP existstheSPName
- the name of the search parameter
-
getAdditionalSearchParamNamesForResourceType
-
getOmittedSPNamesForResourceType
-