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
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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.ICompartmentRestrictionGet compartment owner- Specified by:
getOwnerin interfacePermissionArgumentFormat.ICompartmentRestriction
-
getResourceTypes
Description copied from interface:PermissionArgumentFormat.ICompartmentWithExportResourceTypesRestrictionthe names of the types that the user has permission to export- Specified by:
getResourceTypesin interfacePermissionArgumentFormat.ICompartmentWithExportResourceTypesRestriction
-