|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.alfresco.repo.domain.hibernate.AclDaoComponentImpl
public class AclDaoComponentImpl
Hibernate DAO to manage ACL persistence
| Nested Class Summary | |
|---|---|
static class |
AclDaoComponentImpl.Indirection
Support to describe AVM indirections for permission performance improvements when permissions are set. |
| Constructor Summary | |
|---|---|
AclDaoComponentImpl()
|
|
| Method Summary | |
|---|---|
void |
beforeCommit()
NO-OP |
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)
|
DbAuthority |
createDbAuthority(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)
Used when deleting a user. |
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 |
java.lang.Long[] |
findAccessControlList(AccessControlEntry pattern)
Search for access control lists |
void |
flush()
Allows the dao to flush any consuming resources. |
AccessControlList |
getAccessControlList(java.lang.Long id)
Get an ACL id. |
AccessControlList |
getAccessControlListImpl(java.lang.Long id)
|
AccessControlListProperties |
getAccessControlListProperties(java.lang.Long id)
Get the ACL properties |
java.lang.Long |
getAVMHeadNodeCount()
Get the total number of head nodes in the repository |
java.util.List |
getAvmIndirections()
|
java.lang.Long |
getAVMNodeCountWithNewACLS(java.lang.Long above)
Get the acl count canges so far for progress tracking |
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()
How many DM nodes are there? |
java.lang.Long |
getDmNodeCountWithNewACLS(java.lang.Long above)
How many DM nodes are three with new ACls (to track patch progress) |
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.util.List |
getLayeredDirectories()
Find layered directories Used to improve performance during patching and cascading the effect of permission changes between layers |
java.util.List |
getLayeredFiles()
Find layered files Used to improve performance during patching and cascading the effect of permission changes between layers |
java.lang.Long |
getMaxAclId()
Get the max acl id |
java.lang.Long |
getNewInStore()
How many nodes are noew in store (approximate) |
java.util.List |
invalidateAccessControlEntries(java.lang.String authority)
Mark all ACEs that reference this authority as no longer valid - the authority has been deleted |
boolean |
isDirty()
Does this Session contain any changes which must be synchronized with the store? |
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 |
void |
setAclCache(SimpleCache aclCache)
Set the ACL cache |
void |
setAvmNodeDAO(AVMNodeDAO avmNodeDAO)
|
void |
setPatchDAO(PatchDAO patchDAO)
|
void |
setQnameDAO(QNameDAO qnameDAO)
Set the DAO for accessing QName entities |
boolean |
supportsProgressTracking()
Does the underlyinf connection support isolation level 1 (dirty read) |
void |
updateAuthority(java.lang.String before,
java.lang.String after)
|
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AclDaoComponentImpl()
| Method Detail |
|---|
public void setQnameDAO(QNameDAO qnameDAO)
qnameDAO - public void setPatchDAO(PatchDAO patchDAO)
public void setAvmNodeDAO(AVMNodeDAO avmNodeDAO)
public void setAclCache(SimpleCache aclCache)
aclCache - public DbAccessControlList getDbAccessControlList(java.lang.Long id)
AclDaoComponent
getDbAccessControlList in interface AclDaoComponentpublic java.lang.Long createAccessControlList(AccessControlListProperties properties)
AclDaoComponent
createAccessControlList in interface AclDaoComponentpublic java.util.List deleteAccessControlEntries(java.lang.String authority)
deleteAccessControlEntries in interface AclDaoComponentpublic void onDeleteAccessControlList(long id)
AclDaoComponent
onDeleteAccessControlList in interface AclDaoComponentpublic java.util.List deleteAccessControlList(java.lang.Long id)
AclDaoComponent
deleteAccessControlList in interface AclDaoComponentpublic java.util.List deleteLocalAccessControlEntries(java.lang.Long id)
AclDaoComponent
deleteLocalAccessControlEntries in interface AclDaoComponentpublic java.util.List deleteInheritedAccessControlEntries(java.lang.Long id)
AclDaoComponent
deleteInheritedAccessControlEntries in interface AclDaoComponent
public java.util.List deleteAccessControlEntries(java.lang.Long id,
AccessControlEntry pattern)
AclDaoComponent
deleteAccessControlEntries in interface AclDaoComponentpattern - -
non null elements are used for the match
public java.lang.Long[] findAccessControlList(AccessControlEntry pattern)
pattern -
public AccessControlList getAccessControlList(java.lang.Long id)
AclDaoComponent
getAccessControlList in interface AclDaoComponentpublic AccessControlList getAccessControlListImpl(java.lang.Long id)
id -
public AccessControlListProperties getAccessControlListProperties(java.lang.Long id)
AclDaoComponent
getAccessControlListProperties in interface AclDaoComponentpublic java.lang.Long getInheritedAccessControlList(java.lang.Long id)
AclDaoComponent
getInheritedAccessControlList in interface AclDaoComponentpublic java.util.List invalidateAccessControlEntries(java.lang.String authority)
AclDaoComponent
invalidateAccessControlEntries in interface AclDaoComponent
public java.util.List mergeInheritedAccessControlList(java.lang.Long inherited,
java.lang.Long target)
AclDaoComponent
mergeInheritedAccessControlList in interface AclDaoComponent
public java.util.List setAccessControlEntry(java.lang.Long id,
AccessControlEntry ace)
AclDaoComponent
setAccessControlEntry in interface AclDaoComponent
public java.util.List enableInheritance(java.lang.Long id,
java.lang.Long parent)
AclDaoComponent
enableInheritance in interface AclDaoComponent
public java.util.List disableInheritance(java.lang.Long id,
boolean setInheritedOnAcl)
AclDaoComponent
disableInheritance in interface AclDaoComponent
public java.lang.Long getCopy(java.lang.Long toCopy,
java.lang.Long toInheritFrom,
ACLCopyMode mode)
getCopy in interface AclDaoComponent
public DbAccessControlList getDbAccessControlListCopy(java.lang.Long toCopy,
java.lang.Long toInheritFrom,
ACLCopyMode mode)
getDbAccessControlListCopy in interface AclDaoComponentpublic java.util.List getAvmNodesByACL(java.lang.Long id)
getAvmNodesByACL in interface AclDaoComponentpublic boolean isDirty()
isDirty in interface TransactionalDaopublic void beforeCommit()
beforeCommit in interface TransactionalDaopublic java.lang.Long getAVMHeadNodeCount()
public java.lang.Long getMaxAclId()
getMaxAclId in interface AclDaoComponentpublic boolean supportsProgressTracking()
supportsProgressTracking in interface AclDaoComponentpublic java.lang.Long getAVMNodeCountWithNewACLS(java.lang.Long above)
above -
public java.lang.Long getNewInStore()
getNewInStore in interface AclDaoComponentpublic java.util.List getLayeredDirectories()
public java.util.List getLayeredFiles()
public java.util.List getAvmIndirections()
getAvmIndirections in interface AclDaoComponentpublic void flush()
TransactionalDaoThis method must not be used for implementing business logic.
flush in interface TransactionalDaopublic java.lang.Long getDmNodeCount()
getDmNodeCount in interface AclDaoComponentpublic java.lang.Long getDmNodeCountWithNewACLS(java.lang.Long above)
getDmNodeCountWithNewACLS in interface AclDaoComponentabove -
public void updateAuthority(java.lang.String before,
java.lang.String after)
updateAuthority in interface AclDaoComponentpublic void createAuthority(java.lang.String authority)
createAuthority in interface AclDaoComponentpublic DbAuthority createDbAuthority(java.lang.String authority)
public java.util.List setAccessControlEntries(java.lang.Long id,
java.util.List aces)
AclDaoComponent
setAccessControlEntries in interface AclDaoComponent
public java.lang.Long createAccessControlList(AccessControlListProperties properties,
java.util.List aces,
java.lang.Long inherited)
createAccessControlList in interface AclDaoComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||