Class AuthorizedList
- java.lang.Object
-
- ca.uhn.fhir.rest.server.interceptor.auth.AuthorizedList
-
public class AuthorizedList extends Object
Return type forSearchNarrowingInterceptor.buildAuthorizedList(RequestDetails)
-
-
Constructor Summary
Constructors Constructor Description AuthorizedList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizedListaddCompartment(String theCompartment)Adds a compartment that the user should be allowed to accessAuthorizedListaddCompartments(String... theCompartments)Adds a compartment that the user should be allowed to accessAuthorizedListaddResource(String theResource)Adds a resource that the user should be allowed to accessAuthorizedListaddResources(String... theResources)Adds a resource that the user should be allowed to access
-
-
-
Constructor Detail
-
AuthorizedList
public AuthorizedList()
-
-
Method Detail
-
addCompartment
public AuthorizedList addCompartment(String theCompartment)
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
public AuthorizedList addCompartments(String... theCompartments)
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
public AuthorizedList addResource(String theResource)
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
public AuthorizedList addResources(String... theResources)
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
-
-