org.alfresco.repo.security.permissions.impl
Interface AclDaoComponent

All Superinterfaces:
TransactionalDao
All Known Implementing Classes:
AclDaoComponentImpl

public interface AclDaoComponent
extends TransactionalDao

DAO component for creating, deleting, manipulating and finding ACLs and associated ACEs and anc ACE context.


Method Summary
 java.lang.Long createAccessControlList(AccessControlListProperties properties)
          Create a new ACL with the given properties.
 java.lang.Long createAccessControlList(AccessControlListProperties properties, java.util.List aces, java.lang.Long inherited)
           
 void createAuthority(java.lang.String authority)
           
 java.util.List deleteAccessControlEntries(java.lang.Long id, AccessControlEntry pattern)
          Delete some locally set ACLs according to the pattern
 java.util.List deleteAccessControlEntries(java.lang.String authority)
          Delete all ACEs that reference this authority as no longer valid.
 java.util.List deleteAccessControlList(java.lang.Long id)
          Delete an ACL
 java.util.List deleteInheritedAccessControlEntries(java.lang.Long id)
          Delete the ACEs in position > 0 (those not set directly on the ACL but inherited) No affect on any other acl
 java.util.List deleteLocalAccessControlEntries(java.lang.Long id)
          Delete the ACEs in position 0 (those set directly on the ACL and not inherited) Cleans up existing acls
 java.util.List disableInheritance(java.lang.Long id, boolean setInheritedOnAcl)
          Disable inheritance
 java.util.List enableInheritance(java.lang.Long id, java.lang.Long parent)
          Enable inheritance
 AccessControlList getAccessControlList(java.lang.Long id)
          Get an ACL id.
 AccessControlListProperties getAccessControlListProperties(java.lang.Long id)
          Get the ACL properties
 java.util.List getAvmIndirections()
           
 java.util.List getAvmNodesByACL(java.lang.Long id)
           
 java.lang.Long getCopy(java.lang.Long toCopy, java.lang.Long toInheritFrom, ACLCopyMode mode)
           
 DbAccessControlList getDbAccessControlList(java.lang.Long id)
          Temp support to get a DBAccessControlList to wire up ...
 DbAccessControlList getDbAccessControlListCopy(java.lang.Long toCopy, java.lang.Long toInheritFrom, ACLCopyMode mode)
           
 java.lang.Long getDmNodeCount()
           
 java.lang.Long getDmNodeCountWithNewACLS(java.lang.Long max)
           
 java.lang.Long getInheritedAccessControlList(java.lang.Long id)
          Get the id of the ACL inherited from the one given May return null if there is nothing to inherit -> OLD world where nodes have thier own ACL and we wlak the parent chain
 java.lang.Long getMaxAclId()
           
 java.lang.Long getNewInStore()
           
 java.util.List invalidateAccessControlEntries(java.lang.String authority)
          Mark all ACEs that reference this authority as no longer valid - the authority has been deleted
 java.util.List mergeInheritedAccessControlList(java.lang.Long inherited, java.lang.Long target)
          Merge inherited ACEs in to target - the merged ACEs will go in at thier current position +1
 void onDeleteAccessControlList(long id)
          hibernate lifecycle support
 java.util.List setAccessControlEntries(java.lang.Long id, java.util.List aces)
          Add an access control entry
 java.util.List setAccessControlEntry(java.lang.Long id, AccessControlEntry ace)
          Add an access control entry
 boolean supportsProgressTracking()
           
 void updateAuthority(java.lang.String before, java.lang.String after)
           
 
Methods inherited from interface org.alfresco.repo.transaction.TransactionalDao
beforeCommit, flush, isDirty
 

Method Detail

getDbAccessControlList

DbAccessControlList getDbAccessControlList(java.lang.Long id)
Temp support to get a DBAccessControlList to wire up ...

Parameters:
id -
Returns:

getAccessControlList

AccessControlList getAccessControlList(java.lang.Long id)
Get an ACL id.

Parameters:
id -
Returns:

deleteAccessControlList

java.util.List deleteAccessControlList(java.lang.Long id)
Delete an ACL

Parameters:
id -
Returns:
- the id of all ACLs affected

deleteLocalAccessControlEntries

java.util.List deleteLocalAccessControlEntries(java.lang.Long id)
Delete the ACEs in position 0 (those set directly on the ACL and not inherited) Cleans up existing acls

Parameters:
id -
Returns:
- the id of all ACLs affected

deleteInheritedAccessControlEntries

java.util.List deleteInheritedAccessControlEntries(java.lang.Long id)
Delete the ACEs in position > 0 (those not set directly on the ACL but inherited) No affect on any other acl

Parameters:
id -
Returns:
- the id of all ACLs affected

invalidateAccessControlEntries

java.util.List invalidateAccessControlEntries(java.lang.String authority)
Mark all ACEs that reference this authority as no longer valid - the authority has been deleted

Parameters:
authority -
Returns:
- the id of all ACLs affected

deleteAccessControlEntries

java.util.List deleteAccessControlEntries(java.lang.String authority)
Delete all ACEs that reference this authority as no longer valid. THIS DOES NOT CAUSE ANY ACL TO VERSION

Parameters:
authority -
Returns:
- the id of all ACLs affected

deleteAccessControlEntries

java.util.List deleteAccessControlEntries(java.lang.Long id,
                                          AccessControlEntry pattern)
Delete some locally set ACLs according to the pattern

Parameters:
id -
pattern - - non null elements are used for the match
Returns:
- the id of all ACLs affected

setAccessControlEntry

java.util.List setAccessControlEntry(java.lang.Long id,
                                     AccessControlEntry ace)
Add an access control entry

Parameters:
id -
ace -
Returns:
- the id of all ACLs affected

setAccessControlEntries

java.util.List setAccessControlEntries(java.lang.Long id,
                                       java.util.List aces)
Add an access control entry

Parameters:
id -
ace -
Returns:
- the id of all ACLs affected

enableInheritance

java.util.List enableInheritance(java.lang.Long id,
                                 java.lang.Long parent)
Enable inheritance

Parameters:
id -
parent -
Returns:

disableInheritance

java.util.List disableInheritance(java.lang.Long id,
                                  boolean setInheritedOnAcl)
Disable inheritance

Parameters:
id -
setInheritedOnAcl -
Returns:

getAccessControlListProperties

AccessControlListProperties getAccessControlListProperties(java.lang.Long id)
Get the ACL properties

Parameters:
id -
Returns:
- the id of all ACLs affected

createAccessControlList

java.lang.Long createAccessControlList(AccessControlListProperties properties)
Create a new ACL with the given properties. Unset properties are assigned defaults.

Parameters:
properties -
Returns:

createAccessControlList

java.lang.Long createAccessControlList(AccessControlListProperties properties,
                                       java.util.List aces,
                                       java.lang.Long inherited)

getInheritedAccessControlList

java.lang.Long getInheritedAccessControlList(java.lang.Long id)
Get the id of the ACL inherited from the one given May return null if there is nothing to inherit -> OLD world where nodes have thier own ACL and we wlak the parent chain

Parameters:
id -
Returns:

mergeInheritedAccessControlList

java.util.List mergeInheritedAccessControlList(java.lang.Long inherited,
                                               java.lang.Long target)
Merge inherited ACEs in to target - the merged ACEs will go in at thier current position +1

Parameters:
inherited -
target -
Returns:

getDbAccessControlListCopy

DbAccessControlList getDbAccessControlListCopy(java.lang.Long toCopy,
                                               java.lang.Long toInheritFrom,
                                               ACLCopyMode mode)

getCopy

java.lang.Long getCopy(java.lang.Long toCopy,
                       java.lang.Long toInheritFrom,
                       ACLCopyMode mode)

getAvmNodesByACL

java.util.List getAvmNodesByACL(java.lang.Long id)

getAvmIndirections

java.util.List getAvmIndirections()

onDeleteAccessControlList

void onDeleteAccessControlList(long id)
hibernate lifecycle support

Parameters:
id -

updateAuthority

void updateAuthority(java.lang.String before,
                     java.lang.String after)

createAuthority

void createAuthority(java.lang.String authority)

supportsProgressTracking

boolean supportsProgressTracking()
Returns:

getDmNodeCount

java.lang.Long getDmNodeCount()
Returns:

getMaxAclId

java.lang.Long getMaxAclId()
Returns:

getDmNodeCountWithNewACLS

java.lang.Long getDmNodeCountWithNewACLS(java.lang.Long max)
Parameters:
max -
Returns:

getNewInStore

java.lang.Long getNewInStore()
Returns:


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