Class AclMemberEntity

  • All Implemented Interfaces:
    AclMember

    public class AclMemberEntity
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      AclMemberEntity()
      Default constructor
      AclMemberEntity​(long aclId, long aceId, int pos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.Long getAceId()
      Get the ACE included in the ACL
      java.lang.Long getAclId()
      Get the ACL to which the ACE belongs
      java.lang.Long getId()
      Get the ID for this ACL member
      java.lang.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.
      java.lang.Long getVersion()
      Get the version for this ACL member - for optimistic locking
      int hashCode()  
      void incrementVersion()  
      void setAceId​(java.lang.Long aceId)  
      void setAclId​(java.lang.Long aclId)  
      void setId​(java.lang.Long id)  
      void setPos​(java.lang.Integer pos)
      Set the position for the ACL-ACE relationship
      void setVersion​(java.lang.Long version)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AclMemberEntity

        public AclMemberEntity()
        Default constructor
      • AclMemberEntity

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

      • getId

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

        public void setId​(java.lang.Long id)
      • getVersion

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

        public void setVersion​(java.lang.Long version)
      • incrementVersion

        public void incrementVersion()
      • getAclId

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

        public void setAclId​(java.lang.Long aclId)
      • getAceId

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

        public void setAceId​(java.lang.Long aceId)
      • getPos

        public java.lang.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​(java.lang.Integer pos)
        Set the position for the ACL-ACE relationship
        Parameters:
        pos - Integer
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object