Class AuthorizedList
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.auth.AuthorizedList
Return type for
SearchNarrowingInterceptor.buildAuthorizedList(RequestDetails)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCodeInValueSet(String theResourceName, String theSearchParameterName, String theValueSetUrl) If specified, any search fortheResourceNamewill automatically include a parameter indicating that the token search parametertheSearchParameterNamemust have a value in the ValueSet with URLtheValueSetUrl.addCodeNotInValueSet(String theResourceName, String theSearchParameterName, String theValueSetUrl) If specified, any search fortheResourceNamewill automatically include a parameter indicating that the token search parametertheSearchParameterNamemust have a value not in the ValueSet with URLtheValueSetUrl.addCompartment(String theCompartment) Adds a compartment that the user should be allowed to accessaddCompartments(String... theCompartments) Adds a compartment that the user should be allowed to accessaddResource(String theResource) Adds a resource that the user should be allowed to accessaddResources(String... theResources) Adds a resource that the user should be allowed to access
-
Constructor Details
-
AuthorizedList
public AuthorizedList()
-
-
Method Details
-
addCompartment
Adds a compartment that the user should be allowed to access- Parameters:
theCompartment- The compartment name, e.g. "Patient/123" (in this example the user would be allowed to access Patient/123 as well as Observations where Observation.subject="Patient/123"m, etc.- Returns:
- Returns
thisfor easy method chaining
-
addCompartments
Adds a compartment that the user should be allowed to access- Parameters:
theCompartments- The compartment names, e.g. "Patient/123" (in this example the user would be allowed to access Patient/123 as well as Observations where Observation.subject="Patient/123"m, etc.- Returns:
- Returns
thisfor easy method chaining
-
addResource
Adds a resource that the user should be allowed to access- Parameters:
theResource- The resource name, e.g. "Patient/123" (in this example the user would be allowed to access Patient/123 but not Observations where Observation.subject="Patient/123"m, etc.- Returns:
- Returns
thisfor easy method chaining
-
addResources
Adds a resource that the user should be allowed to access- Parameters:
theResources- The resource names, e.g. "Patient/123" (in this example the user would be allowed to access Patient/123 but not Observations where Observation.subject="Patient/123"m, etc.- Returns:
- Returns
thisfor easy method chaining
-
addCodeInValueSet
public AuthorizedList addCodeInValueSet(@Nonnull String theResourceName, @Nonnull String theSearchParameterName, @Nonnull String theValueSetUrl) If specified, any search fortheResourceNamewill automatically include a parameter indicating that the token search parametertheSearchParameterNamemust have a value in the ValueSet with URLtheValueSetUrl.- Parameters:
theResourceName- The resource name, e.g.ObservationtheSearchParameterName- The search parameter name, e.g.codetheValueSetUrl- The valueset URL, e.g.http://my-value-set- Returns:
- Returns a reference to
thisfor easy chaining - Since:
- 6.0.0
- See Also:
-
addCodeNotInValueSet
public AuthorizedList addCodeNotInValueSet(@Nonnull String theResourceName, @Nonnull String theSearchParameterName, @Nonnull String theValueSetUrl) If specified, any search fortheResourceNamewill automatically include a parameter indicating that the token search parametertheSearchParameterNamemust have a value not in the ValueSet with URLtheValueSetUrl.- Parameters:
theResourceName- The resource name, e.g.ObservationtheSearchParameterName- The search parameter name, e.g.codetheValueSetUrl- The valueset URL, e.g.http://my-value-set- Returns:
- Returns a reference to
thisfor easy chaining - Since:
- 6.0.0
- See Also:
-