Class SimpleAccessControlListProperties
- java.lang.Object
-
- org.alfresco.repo.security.permissions.SimpleAccessControlListProperties
-
- All Implemented Interfaces:
AccessControlListProperties
public class SimpleAccessControlListProperties extends java.lang.Object implements AccessControlListProperties
Basic implementation of access control list properties- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description SimpleAccessControlListProperties()SimpleAccessControlListProperties(AccessControlListProperties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()The ACL DB idjava.lang.BooleangetInherits()Get inheritance behaviourjava.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 aclChangeSetId)voidsetAclId(java.lang.String aclId)Set the acl idvoidsetAclType(ACLType aclType)Set the acl typevoidsetAclVersion(java.lang.Long aclVersion)Set the acl versionvoidsetId(java.lang.Long id)Set the idvoidsetInherits(boolean inherits)Set inheritancevoidsetLatest(boolean latest)Set latestvoidsetVersioned(boolean versioned)Set versionedjava.lang.StringtoString()
-
-
-
Constructor Detail
-
SimpleAccessControlListProperties
public SimpleAccessControlListProperties()
-
SimpleAccessControlListProperties
public SimpleAccessControlListProperties(AccessControlListProperties props)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAclId
public java.lang.String getAclId()
Description copied from interface:AccessControlListPropertiesGet the ACL ID- Specified by:
getAclIdin interfaceAccessControlListProperties- Returns:
- the acl id
-
getAclType
public ACLType getAclType()
Description copied from interface:AccessControlListPropertiesGet the type for this ACL- Specified by:
getAclTypein interfaceAccessControlListProperties- Returns:
- the acl type
-
getAclVersion
public java.lang.Long getAclVersion()
Description copied from interface:AccessControlListPropertiesGet the ACL version- Specified by:
getAclVersionin interfaceAccessControlListProperties- Returns:
- the acl version
-
getInherits
public java.lang.Boolean getInherits()
Description copied from interface:AccessControlListPropertiesGet inheritance behaviour- Specified by:
getInheritsin interfaceAccessControlListProperties- Returns:
- Returns the inheritance status of this list
-
isLatest
public java.lang.Boolean isLatest()
Description copied from interface:AccessControlListPropertiesIs this the latest version of the acl identified by the acl id string?- Specified by:
isLatestin interfaceAccessControlListProperties- Returns:
- - true if the acl is the latest version
-
isVersioned
public java.lang.Boolean isVersioned()
Description copied from interface:AccessControlListPropertiesIs 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- Returns:
- if the acl is verioned
-
setAclId
public void setAclId(java.lang.String aclId)
Set the acl id- Parameters:
aclId- String
-
setAclType
public void setAclType(ACLType aclType)
Set the acl type- Parameters:
aclType- ACLType
-
setAclVersion
public void setAclVersion(java.lang.Long aclVersion)
Set the acl version- Parameters:
aclVersion- Long
-
setInherits
public void setInherits(boolean inherits)
Set inheritance- Parameters:
inherits- boolean
-
setLatest
public void setLatest(boolean latest)
Set latest- Parameters:
latest- boolean
-
setVersioned
public void setVersioned(boolean versioned)
Set versioned- Parameters:
versioned- boolean
-
getId
public java.lang.Long getId()
Description copied from interface:AccessControlListPropertiesThe ACL DB id- Specified by:
getIdin interfaceAccessControlListProperties- Returns:
- the id
-
setId
public void setId(java.lang.Long id)
Set the id- Parameters:
id- Long
-
getAclChangeSetId
public java.lang.Long getAclChangeSetId()
Description copied from interface:AccessControlListPropertiesGet the acl change set- Specified by:
getAclChangeSetIdin interfaceAccessControlListProperties- Returns:
- - the id of the change set
-
setAclChangeSetId
public void setAclChangeSetId(java.lang.Long aclChangeSetId)
-
-