public abstract class AbstractAcl extends Object implements Serializable
Acl
maintains the association with
its owning object instance, the user that currently owns the object as well as the collection of individual
AclEntry
objects which maintain fine-grained permissions.
Abstract because this should not be constructed directly, rather, a more detailed subclass should be used.
Constructor and Description |
---|
AbstractAcl(ObjectIdentity owningObjectIdentity)
Constructs an
AbstractAcl with the specified object type. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<AclEntry> |
getEntries()
Gets the ACL entries for this ACL.
|
UserDescriptor |
getOwner()
Gets the user who is the owner of this ACL.
|
ObjectIdentity |
getOwningObjectIdentity()
Gets the object for which this ACL is defined.
|
int |
hashCode() |
void |
setAce(Principal principal,
AclEntry.PermissionValue adminPermission,
AclEntry.PermissionValue readPermission,
AclEntry.PermissionValue writePropertiesPermission,
AclEntry.PermissionValue writeContentPermission,
AclEntry.PermissionValue deletePermission)
Convenience method in which to add an ACL entry to the set of entries defined for this ACL.
|
void |
setEntries(Set<AclEntry> entries)
Sets the ACL entries for this acl
|
void |
setOwner(UserDescriptor owner)
Sets the user who will be the owner of this ACL.
|
String |
toString() |
public AbstractAcl(ObjectIdentity owningObjectIdentity)
AbstractAcl
with the specified object type.owningObjectIdentity
- object identity for which this ACL is defined.public Set<AclEntry> getEntries()
public void setEntries(Set<AclEntry> entries)
entries
- the ACL entries to set.public ObjectIdentity getOwningObjectIdentity()
public UserDescriptor getOwner()
public void setOwner(UserDescriptor owner)
owner
- the user to own this ACL.public void setAce(Principal principal, AclEntry.PermissionValue adminPermission, AclEntry.PermissionValue readPermission, AclEntry.PermissionValue writePropertiesPermission, AclEntry.PermissionValue writeContentPermission, AclEntry.PermissionValue deletePermission)
principal
- adminPermission
- readPermission
- writePropertiesPermission
- writeContentPermission
- deletePermission
- <i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>