Class 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 Detail

      • AclMemberEntity

        public AclMemberEntity()
        Default constructor
      • AclMemberEntity

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

      • 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