Class AclEntity
- java.lang.Object
-
- org.alfresco.repo.domain.permissions.AclEntity
-
- All Implemented Interfaces:
java.io.Serializable,Acl,AccessControlListProperties
- Direct Known Subclasses:
AclUpdateEntity
public class AclEntity extends java.lang.Object implements Acl, java.io.Serializable
Entity for alf_acess_control_list persistence.- Since:
- 3.4
- Author:
- janv
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AclEntity()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.LonggetAclChangeSetId()Get the acl change setjava.lang.StringgetAclId()Get the ACL IDACLTypegetAclType()Get the type for this ACLjava.lang.LonggetAclVersion()Get the ACL versionjava.lang.LonggetId()Get the long keyjava.lang.LonggetInheritedAcl()Get the ACL inherited from nodes which have this ACLjava.lang.BooleangetInherits()Get inheritance behaviourjava.lang.LonggetInheritsFrom()Get the ACL from which this one inheritsjava.lang.BooleangetRequiresVersion()java.lang.IntegergetType()java.lang.LonggetVersion()inthashCode()voidincrementVersion()java.lang.BooleanisLatest()Is this the latest version of the acl identified by the acl id string?java.lang.BooleanisVersioned()Is this ACL versioned - if not there will be no old versions of the ACL and the long id will remain unchanged.voidsetAclChangeSetId(java.lang.Long aclChangeSet)voidsetAclId(java.lang.String aclId)voidsetAclType(ACLType type)voidsetAclVersion(java.lang.Long aclVersion)voidsetId(java.lang.Long id)voidsetInheritedAcl(java.lang.Long inheritedAcl)voidsetInherits(boolean inherits)voidsetInheritsFrom(java.lang.Long inheritsFrom)voidsetLatest(boolean latest)voidsetRequiresVersion(boolean requiresVersion)voidsetType(java.lang.Integer type)voidsetVersion(java.lang.Long version)voidsetVersioned(boolean isVersioned)java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.lang.Long getId()
Description copied from interface:AclGet the long key- Specified by:
getIdin interfaceAccessControlListProperties- Specified by:
getIdin interfaceAcl- Returns:
- Long
-
setId
public void setId(java.lang.Long id)
-
getVersion
public java.lang.Long getVersion()
-
setVersion
public void setVersion(java.lang.Long version)
-
incrementVersion
public void incrementVersion()
-
getAclId
public java.lang.String getAclId()
Description copied from interface:AclGet the ACL ID- Specified by:
getAclIdin interfaceAccessControlListProperties- Specified by:
getAclIdin interfaceAcl- Returns:
- String
-
setAclId
public void setAclId(java.lang.String aclId)
-
isLatest
public java.lang.Boolean isLatest()
Description copied from interface:AclIs this the latest version of the acl identified by the acl id string?- Specified by:
isLatestin interfaceAccessControlListProperties- Specified by:
isLatestin interfaceAcl- Returns:
- Boolean
-
setLatest
public void setLatest(boolean latest)
-
getAclVersion
public java.lang.Long getAclVersion()
Description copied from interface:AclGet the ACL version- Specified by:
getAclVersionin interfaceAccessControlListProperties- Specified by:
getAclVersionin interfaceAcl- Returns:
- Long
-
setAclVersion
public void setAclVersion(java.lang.Long aclVersion)
-
getInherits
public java.lang.Boolean getInherits()
Description copied from interface:AclGet inheritance behaviour- Specified by:
getInheritsin interfaceAccessControlListProperties- Specified by:
getInheritsin interfaceAcl- Returns:
- Returns the inheritance status of this list
-
setInherits
public void setInherits(boolean inherits)
-
getInheritsFrom
public java.lang.Long getInheritsFrom()
Description copied from interface:AclGet the ACL from which this one inherits- Specified by:
getInheritsFromin interfaceAcl- Returns:
- Long
-
setInheritsFrom
public void setInheritsFrom(java.lang.Long inheritsFrom)
-
getType
public java.lang.Integer getType()
-
setType
public void setType(java.lang.Integer type)
-
getInheritedAcl
public java.lang.Long getInheritedAcl()
Description copied from interface:AclGet the ACL inherited from nodes which have this ACL- Specified by:
getInheritedAclin interfaceAcl- Returns:
- Long
-
setInheritedAcl
public void setInheritedAcl(java.lang.Long inheritedAcl)
-
isVersioned
public java.lang.Boolean isVersioned()
Description copied from interface:AclIs 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:
isVersionedin interfaceAccessControlListProperties- Specified by:
isVersionedin interfaceAcl- Returns:
- Boolean
-
setVersioned
public void setVersioned(boolean isVersioned)
-
getRequiresVersion
public java.lang.Boolean getRequiresVersion()
- Specified by:
getRequiresVersionin interfaceAcl
-
setRequiresVersion
public void setRequiresVersion(boolean requiresVersion)
-
getAclChangeSetId
public java.lang.Long getAclChangeSetId()
Description copied from interface:AccessControlListPropertiesGet the acl change set- Specified by:
getAclChangeSetIdin interfaceAccessControlListProperties- Specified by:
getAclChangeSetIdin interfaceAcl- Returns:
- - the id of the change set
-
setAclChangeSetId
public void setAclChangeSetId(java.lang.Long aclChangeSet)
-
getAclType
public ACLType getAclType()
Description copied from interface:AclGet the type for this ACL- Specified by:
getAclTypein interfaceAccessControlListProperties- Specified by:
getAclTypein interfaceAcl- Returns:
- ACLType
-
setAclType
public void setAclType(ACLType type)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-