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

public class AclHibernateDao extends BambooHibernateObjectDao implements AclDao, AclStatisticsDao
  • 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Counts ACL entries grouped by ObjectIdentity and BambooPermission.
    long
    Counts ACL entries for unique non-empty Project which have Project Plan permissions defined
    List<org.acegisecurity.acls.AccessControlEntry>
    findAcesForSid(org.acegisecurity.acls.sid.Sid sid)
    For a given Sid find the AccessControlEntrys which applies to the Sid
    org.acegisecurity.acls.MutableAcl
    findAcl(long objectId)
    Find acl for given domain object id
    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
    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 ObjectIdentitys
    List<org.acegisecurity.acls.OwnershipAcl>
    findAclsOwnedBySid(org.acegisecurity.acls.sid.Sid sid)
    For a given Sid find the Acls which is owned by Sid
    Map<org.acegisecurity.acls.objectidentity.ObjectIdentity,org.acegisecurity.acls.MutableAcl>
    Find all acls.
     
    boolean
    hasAcesForSid(org.acegisecurity.acls.sid.Sid sid)
    Check if given Sid has any AccessControlEntrys.
    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

      public Class<?> getPersistentClass()
      Specified by:
      getPersistentClass in interface bucket.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 interface AclDao
      Returns:
      List of ObjectIdentitys
    • findAcls

      public 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 ObjectIdentitys
      Specified by:
      findAcls in interface AclDao
      Returns:
      Map of ObjectIdentity to Acl
    • 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 interface AclDao
    • findAcl

      public org.acegisecurity.acls.MutableAcl findAcl(long objectId)
      Description copied from interface: AclDao
      Find acl for given domain object id
      Specified by:
      findAcl in interface AclDao
    • findAcesForSid

      public 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:
    • hasAcesForSid

      public boolean hasAcesForSid(org.acegisecurity.acls.sid.Sid sid)
      Description copied from interface: AclDao
      Check if given Sid has any AccessControlEntrys.
      Specified by:
      hasAcesForSid in interface AclDao
      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 given Sid find the Acls which is owned by Sid
      Specified by:
      findAclsOwnedBySid in interface AclDao
    • 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
    • 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 interface AclDao
    • countAclEntriesByJavaType

      public AclEntriesStatistics countAclEntriesByJavaType()
      Description copied from interface: AclStatisticsDao
      Counts ACL entries grouped by ObjectIdentity and BambooPermission.
      Specified by:
      countAclEntriesByJavaType in interface AclStatisticsDao
    • 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 interface AclStatisticsDao