org.alfresco.repo.domain
Interface DbAccessControlList

All Known Implementing Classes:
DbAccessControlListImpl

public interface DbAccessControlList

The interface to support persistence of node access control entries in hibernate


Method Summary
 DbAccessControlListChangeSet getAclChangeSet()
          Get the change set
 java.lang.String getAclId()
          Get the ACL ID
 ACLType getAclType()
          Get the type for this ACL
 long getAclVersion()
          Get the ACL version
 DbAccessControlList getCopy(java.lang.Long parent, ACLCopyMode node)
           
 java.lang.Long getId()
          Get the long key
 java.lang.Long getInheritedAclId()
          Get the ACL inherited from nodes which have this ACL
 boolean getInherits()
          Get inheritance behaviour
 java.lang.Long getInheritsFrom()
          Get the ACL from which this one inherits
 boolean getRequiresVersion()
           
 java.lang.Long getVersion()
           
 boolean isLatest()
          Is this the latest version of the acl identified by the acl id string?
 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 setAclChangeSet(DbAccessControlListChangeSet aclChangeSet)
          Set the change set
 void setAclId(java.lang.String id)
          Set the string ACL ID (not the auto generated long)
 void setAclType(ACLType type)
          Set the ACL Type
 void setAclVersion(long version)
          Set the ACL version (not the optimistic version used by hibernate)
 void setInheritedAclId(java.lang.Long acl)
          Set the ACL that should be set when inheriting from this one.
 void setInherits(boolean inherits)
          Set inheritance behaviour
 void setInheritsFrom(java.lang.Long id)
          Set the ACL from which this one inherits
 void setLatest(boolean isLatest)
          Set if this ACL is the latest version of the ACL as identified by getAclId()
 void setRequiresVersion(boolean requiresVersion)
           
 void setVersioned(boolean isVersioned)
          Set if this ACL is versioned on write
 

Method Detail

getId

java.lang.Long getId()
Get the long key

Returns:

getAclId

java.lang.String getAclId()
Get the ACL ID

Returns:

getAclVersion

long getAclVersion()
Get the ACL version

Returns:

isLatest

boolean isLatest()
Is this the latest version of the acl identified by the acl id string?

Returns:

getVersion

java.lang.Long getVersion()
Returns:
Returns the version number for optimistic locking

getInherits

boolean getInherits()
Get inheritance behaviour

Returns:
Returns the inheritance status of this list

getInheritsFrom

java.lang.Long getInheritsFrom()
Get the ACL from which this one inherits

Returns:

getAclType

ACLType getAclType()
Get the type for this ACL

Returns:

getInheritedAclId

java.lang.Long getInheritedAclId()
Get the ACL inherited from nodes which have this ACL

Returns:

isVersioned

boolean isVersioned()
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,

Returns:

setAclId

void setAclId(java.lang.String id)
Set the string ACL ID (not the auto generated long)

Parameters:
id -

setAclVersion

void setAclVersion(long version)
Set the ACL version (not the optimistic version used by hibernate)

Parameters:
version -

setLatest

void setLatest(boolean isLatest)
Set if this ACL is the latest version of the ACL as identified by getAclId()

Parameters:
isLatest -

setInherits

void setInherits(boolean inherits)
Set inheritance behaviour

Parameters:
inherits - true to set the permissions to inherit

setInheritsFrom

void setInheritsFrom(java.lang.Long id)
Set the ACL from which this one inherits

Parameters:
id -

setAclType

void setAclType(ACLType type)
Set the ACL Type

Parameters:
type -

setInheritedAclId

void setInheritedAclId(java.lang.Long acl)
Set the ACL that should be set when inheriting from this one. This ACL does not contain any object specific settings.

Parameters:
acl -

setVersioned

void setVersioned(boolean isVersioned)
Set if this ACL is versioned on write

Parameters:
isVersioned -

setAclChangeSet

void setAclChangeSet(DbAccessControlListChangeSet aclChangeSet)
Set the change set

Parameters:
aclChangeSet -

getAclChangeSet

DbAccessControlListChangeSet getAclChangeSet()
Get the change set

Returns:

getCopy

DbAccessControlList getCopy(java.lang.Long parent,
                            ACLCopyMode node)

setRequiresVersion

void setRequiresVersion(boolean requiresVersion)

getRequiresVersion

boolean getRequiresVersion()


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