Class AclHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence.BambooHibernateObjectDao
com.atlassian.bamboo.security.acegi.acls.AclHibernateDao
- All Implemented Interfaces:
bucket.core.persistence.ObjectDao,BambooObjectDao,AclDao,AclStatisticsDao,org.springframework.beans.factory.InitializingBean
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.security.acegi.acls.AclDao
AclDao.ObjectIdentityDto -
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCounts ACL entries grouped byObjectIdentityandBambooPermission.longCounts ACL entries for unique non-empty Project which have Project Plan permissions definedList<org.acegisecurity.acls.AccessControlEntry>findAcesForSid(org.acegisecurity.acls.sid.Sid sid) For a givenSidfind theAccessControlEntrys which applies to theSidorg.acegisecurity.acls.MutableAclfindAcl(long objectId) Find acl for given domain object idList<org.acegisecurity.acls.objectidentity.ObjectIdentity>findAclObjectWithParent(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) Find a list of Acls whose parent is the given object identityMap<org.acegisecurity.acls.objectidentity.ObjectIdentity,org.acegisecurity.acls.MutableAcl> findAcls(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) List<org.acegisecurity.acls.OwnershipAcl>findAclsOwnedBySid(org.acegisecurity.acls.sid.Sid sid) For a givenSidfind theAcls which is owned bySidMap<org.acegisecurity.acls.objectidentity.ObjectIdentity,org.acegisecurity.acls.MutableAcl> Find all acls.Class<?>booleanhasAcesForSid(org.acegisecurity.acls.sid.Sid sid) Check if givenSidhas anyAccessControlEntrys.voidremove(org.acegisecurity.acls.Acl acl) voidremoveForIdentity(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) Remove acls for an object identity.voidsave(org.acegisecurity.acls.Acl acl) Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, updateModificationDataMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findByIdMethods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
-
Constructor Details
-
AclHibernateDao
public AclHibernateDao()
-
-
Method Details
-
getPersistentClass
- Specified by:
getPersistentClassin interfacebucket.core.persistence.ObjectDao
-
findAclObjectWithParent
public List<org.acegisecurity.acls.objectidentity.ObjectIdentity> findAclObjectWithParent(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) Description copied from interface:AclDaoFind a list of Acls whose parent is the given object identity- Specified by:
findAclObjectWithParentin interfaceAclDao- Returns:
ListofObjectIdentitys
-
findAcls
public Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,org.acegisecurity.acls.MutableAcl> findAcls(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) Description copied from interface:AclDao -
findAllAcls
public Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,org.acegisecurity.acls.MutableAcl> findAllAcls()Description copied from interface:AclDaoFind all acls.- Specified by:
findAllAclsin interfaceAclDao
-
findAcl
public org.acegisecurity.acls.MutableAcl findAcl(long objectId) Description copied from interface:AclDaoFind acl for given domain object id -
findAllAclDtos
@NotNull public @NotNull Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,AclDto> findAllAclDtos()- Specified by:
findAllAclDtosin interfaceAclDao
-
findAllAces
- Specified by:
findAllAcesin interfaceAclDao
-
findAcesForSid
public List<org.acegisecurity.acls.AccessControlEntry> findAcesForSid(org.acegisecurity.acls.sid.Sid sid) Description copied from interface:AclDaoFor a givenSidfind theAccessControlEntrys which applies to theSid- Specified by:
findAcesForSidin interfaceAclDao- Returns:
-
hasAcesForSid
public boolean hasAcesForSid(org.acegisecurity.acls.sid.Sid sid) Description copied from interface:AclDaoCheck if givenSidhas anyAccessControlEntrys.- Specified by:
hasAcesForSidin interfaceAclDao- Returns:
- true if sid has aces.
-
findAclsOwnedBySid
public List<org.acegisecurity.acls.OwnershipAcl> findAclsOwnedBySid(org.acegisecurity.acls.sid.Sid sid) Description copied from interface:AclDaoFor a givenSidfind theAcls which is owned bySid- Specified by:
findAclsOwnedBySidin interfaceAclDao
-
save
public void save(org.acegisecurity.acls.Acl acl) -
remove
public void remove(org.acegisecurity.acls.Acl acl) -
removeForIdentity
public void removeForIdentity(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) Description copied from interface:AclDaoRemove acls for an object identity.- Specified by:
removeForIdentityin interfaceAclDao
-
countAclEntriesByJavaType
Description copied from interface:AclStatisticsDaoCounts ACL entries grouped byObjectIdentityandBambooPermission.- Specified by:
countAclEntriesByJavaTypein interfaceAclStatisticsDao
-
countNonEmptyProjectsWithProjectPlanPermissions
public long countNonEmptyProjectsWithProjectPlanPermissions()Description copied from interface:AclStatisticsDaoCounts ACL entries for unique non-empty Project which have Project Plan permissions defined- Specified by:
countNonEmptyProjectsWithProjectPlanPermissionsin interfaceAclStatisticsDao
-