Package com.sas.lsaf.security.acl
Class AbstractAcl
java.lang.Object
com.sas.lsaf.security.acl.AbstractAcl
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Acl,DefaultAcl
Represents an access control list for a specific object in the system. The
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.
- Since:
- 2.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractAcl(ObjectIdentity owningObjectIdentity) Constructs anAbstractAclwith the specified object type. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the ACL entries for this ACL.getOwner()Gets the user who is the owner of this ACL.Gets the object for which this ACL is defined.inthashCode()voidsetAce(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.voidsetEntries(Set<AclEntry> entries) Sets the ACL entries for this aclvoidsetOwner(UserDescriptor owner) Sets the user who will be the owner of this ACL.toString()
-
Constructor Details
-
AbstractAcl
Constructs anAbstractAclwith the specified object type.- Parameters:
owningObjectIdentity- object identity for which this ACL is defined.
-
-
Method Details
-
getEntries
Gets the ACL entries for this ACL.- Returns:
- Set set of ACL entries
-
setEntries
Sets the ACL entries for this acl- Parameters:
entries- the ACL entries to set.
-
getOwningObjectIdentity
Gets the object for which this ACL is defined.- Returns:
- ObjectIdentity object for which this ACL is defined.
-
getOwner
Gets the user who is the owner of this ACL.- Returns:
- User user to owns this ACL.
-
setOwner
Sets the user who will be the owner of this ACL.- Parameters:
owner- the user to own this ACL.
-
setAce
public 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. If the entry already exists for the principal, it is replaced with the specified permission values. Otherwise, a new entry is added.- Parameters:
principal-adminPermission-readPermission-writePropertiesPermission-writeContentPermission-deletePermission-
-
hashCode
public int hashCode() -
equals
-
toString
-