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
-
Method Summary
Modifier and TypeMethodDescriptionCounts ACL entries grouped byObjectIdentity
andBambooPermission
.long
Counts 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 givenSid
find theAccessControlEntry
s which applies to theSid
org.acegisecurity.acls.MutableAcl
findAcl
(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 givenSid
find theAcl
s which is owned bySid
Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,
org.acegisecurity.acls.MutableAcl> Find all acls.Class<?>
boolean
hasAcesForSid
(org.acegisecurity.acls.sid.Sid sid) Check if givenSid
has anyAccessControlEntry
s.void
remove
(org.acegisecurity.acls.Acl acl) void
removeForIdentity
(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) Remove acls for an object identity.void
save
(org.acegisecurity.acls.Acl acl) Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao
findAll, findAllSorted, findById, findById, refresh, remove, replicate, save, saveRaw, updateModificationData
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, 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 Details
-
AclHibernateDao
public AclHibernateDao()
-
-
Method Details
-
getPersistentClass
- Specified by:
getPersistentClass
in interfacebucket.core.persistence.ObjectDao
-
findAclObjectWithParent
public 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 interfaceAclDao
- Returns:
List
ofObjectIdentity
s
-
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:AclDao
Find all acls.- Specified by:
findAllAcls
in interfaceAclDao
-
findAcl
public org.acegisecurity.acls.MutableAcl findAcl(long objectId) Description copied from interface:AclDao
Find acl for given domain object id -
findAcesForSid
public List<org.acegisecurity.acls.AccessControlEntry> findAcesForSid(org.acegisecurity.acls.sid.Sid sid) Description copied from interface:AclDao
For a givenSid
find theAccessControlEntry
s which applies to theSid
- Specified by:
findAcesForSid
in interfaceAclDao
- Returns:
-
hasAcesForSid
public boolean hasAcesForSid(org.acegisecurity.acls.sid.Sid sid) Description copied from interface:AclDao
Check if givenSid
has anyAccessControlEntry
s.- Specified by:
hasAcesForSid
in 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:AclDao
For a givenSid
find theAcl
s which is owned bySid
- Specified by:
findAclsOwnedBySid
in 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:AclDao
Remove acls for an object identity.- Specified by:
removeForIdentity
in interfaceAclDao
-
countAclEntriesByJavaType
Description copied from interface:AclStatisticsDao
Counts ACL entries grouped byObjectIdentity
andBambooPermission
.- Specified by:
countAclEntriesByJavaType
in interfaceAclStatisticsDao
-
countNonEmptyProjectsWithProjectPlanPermissions
public long countNonEmptyProjectsWithProjectPlanPermissions()Description copied from interface:AclStatisticsDao
Counts ACL entries for unique non-empty Project which have Project Plan permissions defined- Specified by:
countNonEmptyProjectsWithProjectPlanPermissions
in interfaceAclStatisticsDao
-