public class Acl extends Object implements Serializable
AclSecurable
interface. Each acl has an owner which is a User. The acl also
contains a set of AclEntry
objects. When a securable object is added to the repository, it will, by default,
have an acl with 2 entries defined. One is the AclOwner entry which defines permissions the owner can have. Note that
read and admin permissions can not be removed from the AclOwner entry The other entry added by default is the
AclMembers entry. This entry defines which permissions members of the parent context will have. Additional entries
may be defined to set permissions for other Users and Groups.Constructor and Description |
---|
Acl()
Zero-arg Acl constructor
|
Modifier and Type | Method and Description |
---|---|
Set<AclEntry> |
getEntries()
Get the acl entries for this acl
|
UserDescriptor |
getOwner()
Get the user who is the owner of this acl
|
ObjectIdentity |
getOwningObjectIdentity()
Get the object for which this acl is defined
|
void |
setAce(AclPrincipal p,
AclEntry.PermissionValue admin,
AclEntry.PermissionValue read,
AclEntry.PermissionValue writeProperties,
AclEntry.PermissionValue writeContent,
AclEntry.PermissionValue delete)
Convenience method in which to add an acl entry to the set of entries defined for this acl.
|
void |
setEntries(Set<AclEntry> entries)
Set the acl entries for this acl
|
void |
setOwner(UserDescriptor owner)
Sets the user who will be the owner of this acl
|
void |
setOwningObjectIdentity(ObjectIdentity owningObjectIdentity)
Set the object for which this acl is defined
|
String |
toString()
Return a string representation of the object.
|
public Set<AclEntry> getEntries()
public void setEntries(Set<AclEntry> entries)
entries
- acl entries in which to setpublic ObjectIdentity getOwningObjectIdentity()
public void setOwningObjectIdentity(ObjectIdentity owningObjectIdentity)
owningObjectIdentity
- object for which to associate with this aclpublic UserDescriptor getOwner()
public void setOwner(UserDescriptor owner)
owner
- user to own this aclpublic void setAce(AclPrincipal p, AclEntry.PermissionValue admin, AclEntry.PermissionValue read, AclEntry.PermissionValue writeProperties, AclEntry.PermissionValue writeContent, AclEntry.PermissionValue delete)
p
- admin
- read
- writeProperties
- writeContent
- delete
- public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA