Package ca.cdr.api.security.permission
Class CompartmentWithExportResourceTypes
java.lang.Object
ca.cdr.api.security.permission.PermissionArgumentValue
ca.cdr.api.security.permission.CompartmentWithExportResourceTypes
- All Implemented Interfaces:
PermissionArgumentFormat.ICompartmentRestriction
,PermissionArgumentFormat.ICompartmentWithExportResourceTypesRestriction
,PermissionArgumentFormat.IPermissionComponent
public final class CompartmentWithExportResourceTypes
extends PermissionArgumentValue
implements PermissionArgumentFormat.ICompartmentWithExportResourceTypesRestriction
types within compartment.
E.g.
Patient/123 Patient Observation
NOTE: An empty types list means all types.
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(IIdType theOwner, Collection<String> theResourceTypes) getOwner()
Get compartment ownerthe names of the types that the user has permission to exportMethods inherited from class ca.cdr.api.security.permission.PermissionArgumentValue
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ca.cdr.api.security.permission.PermissionArgumentFormat.ICompartmentRestriction
getCompartmentType
-
Method Details
-
build
public static CompartmentWithExportResourceTypes build(IIdType theOwner, Collection<String> theResourceTypes) -
getOwner
Description copied from interface:PermissionArgumentFormat.ICompartmentRestriction
Get compartment owner- Specified by:
getOwner
in interfacePermissionArgumentFormat.ICompartmentRestriction
-
getResourceTypes
Description copied from interface:PermissionArgumentFormat.ICompartmentWithExportResourceTypesRestriction
the names of the types that the user has permission to export- Specified by:
getResourceTypes
in interfacePermissionArgumentFormat.ICompartmentWithExportResourceTypesRestriction
-