com.atlassian.bamboo.security.acegi.acls
Class AclHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.hibernate.HibernateObjectDao
              extended by com.atlassian.bamboo.persistence.BambooHibernateObjectDao
                  extended by com.atlassian.bamboo.security.acegi.acls.AclHibernateDao
All Implemented Interfaces:
bucket.core.persistence.ObjectDao, BambooObjectDao, AclDao, org.springframework.beans.factory.InitializingBean

public class AclHibernateDao
extends BambooHibernateObjectDao
implements AclDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AclHibernateDao()
           
 
Method Summary
 java.util.List<org.acegisecurity.acls.AccessControlEntry> findAcesForSid(org.acegisecurity.acls.sid.Sid sid)
          For a given Sid find the AccessControlEntrys which applies to the Sid
 java.util.List<org.acegisecurity.acls.objectidentity.ObjectIdentity> findAclObjectWithParent(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity)
          Find a list of Acls whose parent is the given object identity
 java.util.Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,org.acegisecurity.acls.MutableAcl> findAcls(org.acegisecurity.acls.objectidentity.ObjectIdentity[] objectIdentity)
          Find a Map of ObjectIdentity to Acl mappings given an array of ObjectIdentitys
 java.util.List<org.acegisecurity.acls.OwnershipAcl> findAclsOwnedBySid(org.acegisecurity.acls.sid.Sid sid)
          For a given Sid find the Acls which is owned by Sid
 java.lang.Class<?> getPersistentClass()
           
 void remove(org.acegisecurity.acls.Acl acl)
           
 void save(org.acegisecurity.acls.Acl acl)
           
 
Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
executeCountQuery, executeReturnLong, findById, findById
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData
 
Methods inherited from class org.springframework.orm.hibernate.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
 
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

AclHibernateDao

public AclHibernateDao()
Method Detail

getPersistentClass

public java.lang.Class<?> getPersistentClass()
Specified by:
getPersistentClass in interface bucket.core.persistence.ObjectDao

findAclObjectWithParent

public java.util.List<org.acegisecurity.acls.objectidentity.ObjectIdentity> findAclObjectWithParent(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity)
Description copied from interface: AclDao
Find a list of Acls whose parent is the given object identity

Specified by:
findAclObjectWithParent in interface AclDao
Returns:
List of ObjectIdentitys

findAcls

public java.util.Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,org.acegisecurity.acls.MutableAcl> findAcls(org.acegisecurity.acls.objectidentity.ObjectIdentity[] objectIdentity)
Description copied from interface: AclDao
Find a Map of ObjectIdentity to Acl mappings given an array of ObjectIdentitys

Specified by:
findAcls in interface AclDao
Returns:
Map of ObjectIdentity to Acl

findAcesForSid

public java.util.List<org.acegisecurity.acls.AccessControlEntry> findAcesForSid(org.acegisecurity.acls.sid.Sid sid)
Description copied from interface: AclDao
For a given Sid find the AccessControlEntrys which applies to the Sid

Specified by:
findAcesForSid in interface AclDao
Returns:

findAclsOwnedBySid

public java.util.List<org.acegisecurity.acls.OwnershipAcl> findAclsOwnedBySid(org.acegisecurity.acls.sid.Sid sid)
Description copied from interface: AclDao
For a given Sid find the Acls which is owned by Sid

Specified by:
findAclsOwnedBySid in interface AclDao
Returns:

save

public void save(org.acegisecurity.acls.Acl acl)
Specified by:
save in interface AclDao

remove

public void remove(org.acegisecurity.acls.Acl acl)
Specified by:
remove in interface AclDao


Copyright © 2010 Atlassian. All Rights Reserved.