Class AclHibernateDao

    • Field Summary

      • Fields inherited from class org.springframework.dao.support.DaoSupport

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      AclHibernateDao()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AclEntriesStatistics countAclEntriesByJavaType()
      Counts ACL entries grouped by ObjectIdentity and BambooPermission.
      long countNonEmptyProjectsWithProjectPlanPermissions()
      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> findAllAcls()
      Find all acls.
      Class<?> getPersistentClass()  
      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 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 interface bucket.core.persistence.ObjectDao

        findAll, findAllSorted, refresh, remove, replicate, save, saveRaw
    • Constructor Detail

      • AclHibernateDao

        public AclHibernateDao()
    • Method Detail

      • 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