org.alfresco.repo.domain.permissions
Class AclEntity

java.lang.Object
  extended by 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
See Also:
Serialized Form

Constructor Summary
AclEntity()
          Default constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getAclChangeSetId()
          Get the acl change set
 java.lang.String getAclId()
          Get the ACL ID
 ACLType getAclType()
          Get the type for this ACL
 java.lang.Long getAclVersion()
          Get the ACL version
 java.lang.Long getId()
          Get the long key
 java.lang.Long getInheritedAcl()
          Get the ACL inherited from nodes which have this ACL
 java.lang.Boolean getInherits()
          Get inheritance behaviour
 java.lang.Long getInheritsFrom()
          Get the ACL from which this one inherits
 java.lang.Boolean getRequiresVersion()
           
 java.lang.Integer getType()
           
 java.lang.Long getVersion()
           
 int hashCode()
           
 void incrementVersion()
           
 java.lang.Boolean isLatest()
          Is this the latest version of the acl identified by the acl id string?
 java.lang.Boolean isVersioned()
          Is this ACL versioned - if not there will be no old versions of the ACL and the long id will remain unchanged.
 void setAclChangeSetId(java.lang.Long aclChangeSet)
           
 void setAclId(java.lang.String aclId)
           
 void setAclType(ACLType type)
           
 void setAclVersion(java.lang.Long aclVersion)
           
 void setId(java.lang.Long id)
           
 void setInheritedAcl(java.lang.Long inheritedAcl)
           
 void setInherits(boolean inherits)
           
 void setInheritsFrom(java.lang.Long inheritsFrom)
           
 void setLatest(boolean latest)
           
 void setRequiresVersion(boolean requiresVersion)
           
 void setType(java.lang.Integer type)
           
 void setVersion(java.lang.Long version)
           
 void setVersioned(boolean isVersioned)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AclEntity

public AclEntity()
Default constructor

Method Detail

getId

public java.lang.Long getId()
Description copied from interface: Acl
Get the long key

Specified by:
getId in interface Acl
Specified by:
getId in interface AccessControlListProperties
Returns:
the id

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: Acl
Get the ACL ID

Specified by:
getAclId in interface Acl
Specified by:
getAclId in interface AccessControlListProperties
Returns:
the acl id

setAclId

public void setAclId(java.lang.String aclId)

isLatest

public java.lang.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 Acl
Specified by:
isLatest in interface AccessControlListProperties
Returns:
- true if the acl is the latest version

setLatest

public void setLatest(boolean latest)

getAclVersion

public java.lang.Long getAclVersion()
Description copied from interface: Acl
Get the ACL version

Specified by:
getAclVersion in interface Acl
Specified by:
getAclVersion in interface AccessControlListProperties
Returns:
the acl version

setAclVersion

public void setAclVersion(java.lang.Long aclVersion)

getInherits

public java.lang.Boolean getInherits()
Description copied from interface: Acl
Get inheritance behaviour

Specified by:
getInherits in interface Acl
Specified by:
getInherits in interface AccessControlListProperties
Returns:
Returns the inheritance status of this list

setInherits

public void setInherits(boolean inherits)

getInheritsFrom

public java.lang.Long getInheritsFrom()
Description copied from interface: Acl
Get the ACL from which this one inherits

Specified by:
getInheritsFrom in interface Acl
Returns:

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: Acl
Get the ACL inherited from nodes which have this ACL

Specified by:
getInheritedAcl in interface Acl
Returns:

setInheritedAcl

public void setInheritedAcl(java.lang.Long inheritedAcl)

isVersioned

public java.lang.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 Acl
Specified by:
isVersioned in interface AccessControlListProperties
Returns:
if the acl is verioned

setVersioned

public void setVersioned(boolean isVersioned)

getRequiresVersion

public java.lang.Boolean getRequiresVersion()
Specified by:
getRequiresVersion in interface Acl

setRequiresVersion

public void setRequiresVersion(boolean requiresVersion)

getAclChangeSetId

public java.lang.Long getAclChangeSetId()
Description copied from interface: AccessControlListProperties
Get the acl change set

Specified by:
getAclChangeSetId in interface Acl
Specified by:
getAclChangeSetId in interface AccessControlListProperties
Returns:
- the id of the change set

setAclChangeSetId

public void setAclChangeSetId(java.lang.Long aclChangeSet)

getAclType

public ACLType getAclType()
Description copied from interface: Acl
Get the type for this ACL

Specified by:
getAclType in interface Acl
Specified by:
getAclType in interface AccessControlListProperties
Returns:
the acl type

setAclType

public void setAclType(ACLType type)

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.