Package ca.cdr.api.security.permission
Class CompartmentsWithExportResourceTypes
java.lang.Object
ca.cdr.api.security.permission.PermissionArgumentValue
ca.cdr.api.security.permission.CompartmentsWithExportResourceTypes
- All Implemented Interfaces:
PermissionArgumentFormat.ICompartmentsRestriction
,PermissionArgumentFormat.ICompartmentsWithExportResourceTypesRestriction
,PermissionArgumentFormat.IExportResourceTypesRestriction
,PermissionArgumentFormat.IPermissionComponent
public final class CompartmentsWithExportResourceTypes
extends PermissionArgumentValue
implements PermissionArgumentFormat.ICompartmentsWithExportResourceTypesRestriction
types within compartments.
E.g.
Patient/123 Patient Observation
E.g. Patient/123 *
E.g. Patient/123,Patient/456 Patient Encounter
E.g. Patient/123,Patient/456 *
NOTE: A types list consisting of a single '*' means all types.
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(Collection<IIdType> theOwners, boolean theCanExportAllResourceTypes, Collection<String> theResourceTypes) boolean
indicates that the user has permission to export all typesGet compartment ownersthe names of the types that the user has permission to exportwithTypes
(Collection<IIdType> theOwners, Iterable<String> theResourceTypes) Methods inherited from class ca.cdr.api.security.permission.PermissionArgumentValue
toString
-
Method Details
-
build
public static CompartmentsWithExportResourceTypes build(Collection<IIdType> theOwners, boolean theCanExportAllResourceTypes, Collection<String> theResourceTypes) -
withTypes
public static CompartmentsWithExportResourceTypes withTypes(Collection<IIdType> theOwners, Iterable<String> theResourceTypes) -
getOwners
Description copied from interface:PermissionArgumentFormat.ICompartmentsRestriction
Get compartment owners- Specified by:
getOwners
in interfacePermissionArgumentFormat.ICompartmentsRestriction
-
canExportAllResourceTypes
Description copied from interface:PermissionArgumentFormat.IExportResourceTypesRestriction
indicates that the user has permission to export all types- Specified by:
canExportAllResourceTypes
in interfacePermissionArgumentFormat.IExportResourceTypesRestriction
-
getResourceTypes
Description copied from interface:PermissionArgumentFormat.IExportResourceTypesRestriction
the names of the types that the user has permission to export- Specified by:
getResourceTypes
in interfacePermissionArgumentFormat.IExportResourceTypesRestriction
-