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 TypeMethodDescriptionaddCompartment(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
-