public interface AclService
Acl
). An ACL can be defined only for an object that is a
RepositoryItem
. An ACL contains a set of AclEntry
objects that
define permissions for a specific Principal
. 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 repository item. AclEntries for specific
users and groups can 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 context
Modifier and Type | Method and Description |
---|---|
Acl |
getAcl(String id)
Gets the ACL for the repository item with the specified id.
|
DefaultAcl |
getDefaultAcl(String id)
Gets the default ACL for the repository container with the specified id.
|
Acl |
updateAcl(Acl acl)
Updates the ACL of the repository item with the specified identifier.
|
DefaultAcl |
updateDefaultAcl(DefaultAcl defaultAcl)
Updates the default ACL of the repository container with the specified identifier.
|
Acl getAcl(String id) throws AclNotFoundException
id
- Identifier of the repository item.AclNotFoundException
- thrown if the specified object no longer exists.DefaultAcl getDefaultAcl(String id) throws AclNotFoundException
id
- Identifier of the repository container.AclNotFoundException
- thrown if the specified object no longer exists.Acl updateAcl(Acl acl) throws AclUpdateException, AclNotFoundException
acl
- ACL to set on the specified object.AclUpdateException
- thrown if the specified ACL can not be updated for the given object.AclNotFoundException
- thrown if the specified object no longer exists.DefaultAcl updateDefaultAcl(DefaultAcl defaultAcl) throws AclUpdateException, AclNotFoundException
defaultAcl
- default ACL to set on the specified object.AclUpdateException
- thrown if the specified ACL can not be updated for the given object.AclNotFoundException
- thrown if the specified object no longer exists.Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA