Class AclEntry

java.lang.Object
com.sas.lsaf.security.acl.AclEntry
All Implemented Interfaces:
Serializable

public class AclEntry extends Object implements Serializable
A data object that represents access permissions for an ACL principal.
See Also:
  • Constructor Details

    • AclEntry

      public AclEntry()
      Zero-argument AclEntry constructor.
    • AclEntry

      public AclEntry(Principal principal)
      AclEntry constructor
      Parameters:
      principal -
    • AclEntry

      public AclEntry(Principal principal, AclEntry.PermissionValue adminPermission, AclEntry.PermissionValue readPermission, AclEntry.PermissionValue writePropertiesPermission, AclEntry.PermissionValue writeContentPermission, AclEntry.PermissionValue deletePermission)
      AclEntry constructor
      Parameters:
      principal - the principal in which to set the access permissions.
      adminPermission - the admin permission to assign to the principal.
      readPermission - Read permission to assign to the principal.
      writePropertiesPermission - the Properties Write permission to assign to the principal.
      writeContentPermission - the Content Write permission to assign to the principal.
      deletePermission - the Delete permission to assign to the principal.
  • Method Details

    • getPrincipal

      public Principal getPrincipal()
      Gets the principal for this ACL.
      Returns:
      The Principal.
    • setPrincipal

      public void setPrincipal(Principal principal)
      Sets the principal for this ACL.
      Parameters:
      principal -
    • getReadPermission

      public AclEntry.PermissionValue getReadPermission()
      Gets the Read permission for this ACL.
      Returns:
      The PermissionValue value that represents whether this permission will be honored.
    • setReadPermission

      public void setReadPermission(AclEntry.PermissionValue read)
      Sets the Read permission for this ACL.
      Parameters:
      read - PermissionValue that contains the value of how to set the permission.
    • getWritePropertiesPermission

      public AclEntry.PermissionValue getWritePropertiesPermission()
      Gets the Properties Write permission for this ACL.
      Returns:
      The PermissionValue value that represents whether this permission will be honored.
    • setWritePropertiesPermission

      public void setWritePropertiesPermission(AclEntry.PermissionValue writePropertiesPermission)
      Sets the Properties Write permission for this ACL.
      Parameters:
      writePropertiesPermission - The PermissionValue that contains the value of how to set the permission.
    • getDeletePermission

      public AclEntry.PermissionValue getDeletePermission()
      Gets the Delete permission for this ACL.
      Returns:
      The PermissionValue value that represents whether this permission will be honored.
    • setDeletePermission

      public void setDeletePermission(AclEntry.PermissionValue delete)
      Sets the Delete permission for this ACL
      Parameters:
      delete - The PermissionValue that contains the value of how to set the permission.
    • getAdminPermission

      public AclEntry.PermissionValue getAdminPermission()
      Gets the Admin permission for this ACL.
      Returns:
      The PermissionValue value that represents whether this permission will be honored.
    • setAdminPermission

      public void setAdminPermission(AclEntry.PermissionValue admin)
      Sets the Admin permission for this ACL.
      Parameters:
      admin - The PermissionValue that contains the value of how to set the permission.
    • getWriteContentPermission

      public AclEntry.PermissionValue getWriteContentPermission()
      Gets the Content Write permission for this ACL
      Returns:
      The PermissionValue value that represents whether this permission will be honored.
    • setWriteContentPermission

      public void setWriteContentPermission(AclEntry.PermissionValue writeContent)
      Sets the Content Write permission for this ACL.
      Parameters:
      writeContent - The PermissionValue that contains the value of how to set the permission.
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      See Also:
    • equals

      public boolean equals(Object obj)
      Indicates whether another object is equal to this one.
      Overrides:
      equals in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object