Class AclMemberEntity

java.lang.Object
org.alfresco.repo.domain.permissions.AclMemberEntity
All Implemented Interfaces:
AclMember

public class AclMemberEntity extends Object implements AclMember
Entity for alf_access_control_member persistence. Relates an ACE to an ACL with a position
Since:
3.4
Author:
janv
  • Constructor Details

    • AclMemberEntity

      public AclMemberEntity()
      Default constructor
    • AclMemberEntity

      public AclMemberEntity(long aclId, long aceId, int pos)
  • Method Details

    • getId

      public Long getId()
      Get the ID for this ACL member
      Specified by:
      getId in interface AclMember
      Returns:
      - the id
    • setId

      public void setId(Long id)
    • getVersion

      public Long getVersion()
      Get the version for this ACL member - for optimistic locking
      Returns:
      - the version
    • setVersion

      public void setVersion(Long version)
    • incrementVersion

      public void incrementVersion()
    • getAclId

      public Long getAclId()
      Get the ACL to which the ACE belongs
      Specified by:
      getAclId in interface AclMember
      Returns:
      - the acl id
    • setAclId

      public void setAclId(Long aclId)
    • getAceId

      public Long getAceId()
      Get the ACE included in the ACL
      Specified by:
      getAceId in interface AclMember
      Returns:
      - the ace id
    • setAceId

      public void setAceId(Long aceId)
    • getPos

      public Integer getPos()
      Get the position group for this member in the ACL 0 - implies the ACE is on the object >0 - that it is inherited in some way The lower values are checked first so take precedence.
      Specified by:
      getPos in interface AclMember
      Returns:
      - the position of the ace in the acl
    • setPos

      public void setPos(Integer pos)
      Set the position for the ACL-ACE relationship
      Parameters:
      pos - Integer
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object