public interface AclService
Acl
. An acl can only be defined for an object that is
AclSecurable
. An acl contains a set of AclEntry
objects which define permissions for a specific
AclPrincipal
. By default, an acl has an AclEntry for the AclOwner
and one for AclMembers
.
Each acl is required to have these two entries. The AclMembers entry represents the members of the parent context of
the AclSecurable object. AclEntries for specific users and groups may also be added to an acl. Each AclEntry consists
of a principal and five permissions: ADMIN, READ, WRITE_PROPERTIES, WRITE_CONTENT, and DELETE. Note that read and
admin permissions can not be taken away from the AclOwner. - owner
- individual
- group
- member of the organization, a project or an analysis
Modifier and Type | Method and Description |
---|---|
Acl |
getAcl(AclSecurable aclSecurable)
Gets the acl for the object.
|
AclContainer |
getAclContainer(AclContainerSecurable aclContainerSecurable)
Gets the AclContainer for the specified container
|
Acl |
updateAcl(AclSecurable aclSecurable,
Acl acl)
Updates the specified object with the acl
|
AclContainer |
updateAclContainer(AclContainerSecurable aclContainerSecurable,
AclContainer aclContainer)
Updates the specified container with the aclContainer
|
Acl getAcl(AclSecurable aclSecurable) throws ObjectNotFoundException, PrincipalNotFoundException
aclSecurable
- securable object in which to get the aclObjectNotFoundException
- Thrown if the specified object no longer existsPrincipalNotFoundException
- Thrown if a user or group associated with the acl no longer existsAclContainer getAclContainer(AclContainerSecurable aclContainerSecurable) throws ObjectNotFoundException, PrincipalNotFoundException
aclContainerSecurable
- securable container in which to get the aclObjectNotFoundException
- Thrown if the specified object no longer existsPrincipalNotFoundException
- Thrown if a user or group associated with the acl no longer existsAcl updateAcl(AclSecurable aclSecurable, Acl acl) throws AclUpdateException
aclSecurable
- the object whose acl will be updatedacl
- acl to set on the specified objectAclUpdateException
- Thrown if the specified acl can not be updated for the given objectAclContainer updateAclContainer(AclContainerSecurable aclContainerSecurable, AclContainer aclContainer) throws AclUpdateException
aclContainerSecurable
- the container whose acl will be updatedaclContainer
- aclContainer to set on the specified containerAclUpdateException
- Thrown if the specified acl can not be updated for the given containerCopyright (c) 2017, SAS Institute Inc., Cary, NC, USA