Class AuthorizedList
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.auth.AuthorizedList
Return type for
SearchNarrowingInterceptor.buildAuthorizedList(RequestDetails)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCodeInValueSet
(String theResourceName, String theSearchParameterName, String theValueSetUrl) If specified, any search fortheResourceName
will automatically include a parameter indicating that the token search parametertheSearchParameterName
must have a value in the ValueSet with URLtheValueSetUrl
.addCodeNotInValueSet
(String theResourceName, String theSearchParameterName, String theValueSetUrl) If specified, any search fortheResourceName
will automatically include a parameter indicating that the token search parametertheSearchParameterName
must 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
this
for 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
this
for 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
this
for 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
this
for easy method chaining
-
addCodeInValueSet
public AuthorizedList addCodeInValueSet(@Nonnull String theResourceName, @Nonnull String theSearchParameterName, @Nonnull String theValueSetUrl) If specified, any search fortheResourceName
will automatically include a parameter indicating that the token search parametertheSearchParameterName
must have a value in the ValueSet with URLtheValueSetUrl
.- Parameters:
theResourceName
- The resource name, e.g.Observation
theSearchParameterName
- The search parameter name, e.g.code
theValueSetUrl
- The valueset URL, e.g.http://my-value-set
- Returns:
- Returns a reference to
this
for 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 fortheResourceName
will automatically include a parameter indicating that the token search parametertheSearchParameterName
must have a value not in the ValueSet with URLtheValueSetUrl
.- Parameters:
theResourceName
- The resource name, e.g.Observation
theSearchParameterName
- The search parameter name, e.g.code
theValueSetUrl
- The valueset URL, e.g.http://my-value-set
- Returns:
- Returns a reference to
this
for easy chaining - Since:
- 6.0.0
- See Also:
-