Class AclEntity

java.lang.Object
org.alfresco.repo.domain.permissions.AclEntity
All Implemented Interfaces:
Serializable, Acl, AccessControlListProperties
Direct Known Subclasses:
AclUpdateEntity

public class AclEntity extends Object implements Acl, Serializable
Entity for alf_acess_control_list persistence.
Since:
3.4
Author:
janv
See Also:
  • Constructor Details

    • AclEntity

      public AclEntity()
      Default constructor
  • Method Details

    • getId

      public Long getId()
      Description copied from interface: Acl
      Get the long key
      Specified by:
      getId in interface AccessControlListProperties
      Specified by:
      getId in interface Acl
      Returns:
      Long
    • setId

      public void setId(Long id)
    • getVersion

      public Long getVersion()
    • setVersion

      public void setVersion(Long version)
    • incrementVersion

      public void incrementVersion()
    • getAclId

      public String getAclId()
      Description copied from interface: Acl
      Get the ACL ID
      Specified by:
      getAclId in interface AccessControlListProperties
      Specified by:
      getAclId in interface Acl
      Returns:
      String
    • setAclId

      public void setAclId(String aclId)
    • isLatest

      public Boolean isLatest()
      Description copied from interface: Acl
      Is this the latest version of the acl identified by the acl id string?
      Specified by:
      isLatest in interface AccessControlListProperties
      Specified by:
      isLatest in interface Acl
      Returns:
      Boolean
    • setLatest

      public void setLatest(boolean latest)
    • getAclVersion

      public Long getAclVersion()
      Description copied from interface: Acl
      Get the ACL version
      Specified by:
      getAclVersion in interface AccessControlListProperties
      Specified by:
      getAclVersion in interface Acl
      Returns:
      Long
    • setAclVersion

      public void setAclVersion(Long aclVersion)
    • getInherits

      public Boolean getInherits()
      Description copied from interface: Acl
      Get inheritance behaviour
      Specified by:
      getInherits in interface AccessControlListProperties
      Specified by:
      getInherits in interface Acl
      Returns:
      Returns the inheritance status of this list
    • setInherits

      public void setInherits(boolean inherits)
    • getInheritsFrom

      public Long getInheritsFrom()
      Description copied from interface: Acl
      Get the ACL from which this one inherits
      Specified by:
      getInheritsFrom in interface Acl
      Returns:
      Long
    • setInheritsFrom

      public void setInheritsFrom(Long inheritsFrom)
    • getType

      public Integer getType()
    • setType

      public void setType(Integer type)
    • getInheritedAcl

      public Long getInheritedAcl()
      Description copied from interface: Acl
      Get the ACL inherited from nodes which have this ACL
      Specified by:
      getInheritedAcl in interface Acl
      Returns:
      Long
    • setInheritedAcl

      public void setInheritedAcl(Long inheritedAcl)
    • isVersioned

      public Boolean isVersioned()
      Description copied from interface: Acl
      Is this ACL versioned - if not there will be no old versions of the ACL and the long id will remain unchanged. If an acl is versioned it can not be updated - a new copy has to be created,
      Specified by:
      isVersioned in interface AccessControlListProperties
      Specified by:
      isVersioned in interface Acl
      Returns:
      Boolean
    • setVersioned

      public void setVersioned(boolean isVersioned)
    • getRequiresVersion

      public Boolean getRequiresVersion()
      Specified by:
      getRequiresVersion in interface Acl
    • setRequiresVersion

      public void setRequiresVersion(boolean requiresVersion)
    • getAclChangeSetId

      public Long getAclChangeSetId()
      Description copied from interface: AccessControlListProperties
      Get the acl change set
      Specified by:
      getAclChangeSetId in interface AccessControlListProperties
      Specified by:
      getAclChangeSetId in interface Acl
      Returns:
      - the id of the change set
    • setAclChangeSetId

      public void setAclChangeSetId(Long aclChangeSet)
    • getAclType

      public ACLType getAclType()
      Description copied from interface: Acl
      Get the type for this ACL
      Specified by:
      getAclType in interface AccessControlListProperties
      Specified by:
      getAclType in interface Acl
      Returns:
      ACLType
    • setAclType

      public void setAclType(ACLType type)
    • 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