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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AclEntity()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LonggetAclChangeSetId()Get the acl change setStringgetAclId()Get the ACL IDACLTypegetAclType()Get the type for this ACLLonggetAclVersion()Get the ACL versionLonggetId()Get the long keyLonggetInheritedAcl()Get the ACL inherited from nodes which have this ACLBooleangetInherits()Get inheritance behaviourLonggetInheritsFrom()Get the ACL from which this one inheritsBooleangetRequiresVersion()IntegergetType()LonggetVersion()inthashCode()voidincrementVersion()BooleanisLatest()Is this the latest version of the acl identified by the acl id string?BooleanisVersioned()Is this ACL versioned - if not there will be no old versions of the ACL and the long id will remain unchanged.voidsetAclChangeSetId(Long aclChangeSet)voidsetAclId(String aclId)voidsetAclType(ACLType type)voidsetAclVersion(Long aclVersion)voidsetId(Long id)voidsetInheritedAcl(Long inheritedAcl)voidsetInherits(boolean inherits)voidsetInheritsFrom(Long inheritsFrom)voidsetLatest(boolean latest)voidsetRequiresVersion(boolean requiresVersion)voidsetType(Integer type)voidsetVersion(Long version)voidsetVersioned(boolean isVersioned)StringtoString()
-
-
-
Method Detail
-
getId
public Long getId()
Description copied from interface:AclGet the long key- Specified by:
getIdin interfaceAccessControlListProperties- Specified by:
getIdin interfaceAcl- 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:AclGet the ACL ID- Specified by:
getAclIdin interfaceAccessControlListProperties- Specified by:
getAclIdin interfaceAcl- Returns:
- String
-
setAclId
public void setAclId(String aclId)
-
isLatest
public 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 Long getAclVersion()
Description copied from interface:AclGet the ACL version- Specified by:
getAclVersionin interfaceAccessControlListProperties- Specified by:
getAclVersionin interfaceAcl- Returns:
- Long
-
setAclVersion
public void setAclVersion(Long aclVersion)
-
getInherits
public 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 Long getInheritsFrom()
Description copied from interface:AclGet the ACL from which this one inherits- Specified by:
getInheritsFromin interfaceAcl- 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:AclGet the ACL inherited from nodes which have this ACL- Specified by:
getInheritedAclin interfaceAcl- Returns:
- Long
-
setInheritedAcl
public void setInheritedAcl(Long inheritedAcl)
-
isVersioned
public 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 Boolean getRequiresVersion()
- Specified by:
getRequiresVersionin interfaceAcl
-
setRequiresVersion
public void setRequiresVersion(boolean requiresVersion)
-
getAclChangeSetId
public 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(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)
-
-