Class GroupAdministrationGrantGroupDaoHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<GroupAdministrationGrantToGroup>
com.atlassian.crowd.dao.permission.GroupAdministrationGrantGroupDaoHibernate
- All Implemented Interfaces:
GroupAdministrationGrantGroupDao
public class GroupAdministrationGrantGroupDaoHibernate
extends HibernateDao<GroupAdministrationGrantToGroup>
implements GroupAdministrationGrantGroupDao
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSourceFields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new group administration grant to a groupfindAll()findGrantsOfGroups(Collection<InternalGroup> groups) Looks for grants assigned to given groupsfindGrantsToGroup(InternalGroup targetGroup) Looks for administration grants for a given groupfindGrantsToGroupFromDirectory(InternalGroup group, Directory directory) Looks for grants of groups which administer an other group and come from given directoryAll subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.voidremove(InternalGroup adminGroup, InternalGroup targetGroup) Remove administration grant for a group to a groupMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, updateMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
GroupAdministrationGrantGroupDaoHibernate
public GroupAdministrationGrantGroupDaoHibernate()
-
-
Method Details
-
add
Description copied from interface:GroupAdministrationGrantGroupDaoAdds a new group administration grant to a group- Specified by:
addin interfaceGroupAdministrationGrantGroupDao- Parameters:
grant- the grant- Returns:
- the newly persisted grant
-
findGrantsToGroup
Description copied from interface:GroupAdministrationGrantGroupDaoLooks for administration grants for a given group- Specified by:
findGrantsToGroupin interfaceGroupAdministrationGrantGroupDao- Parameters:
targetGroup- the group- Returns:
- Grants found for this group
-
findGrantsOfGroups
Description copied from interface:GroupAdministrationGrantGroupDaoLooks for grants assigned to given groups- Specified by:
findGrantsOfGroupsin interfaceGroupAdministrationGrantGroupDao- Parameters:
groups- the groups- Returns:
- found mappings of groups
-
findGrantsToGroupFromDirectory
public List<GroupAdministrationGrantToGroup> findGrantsToGroupFromDirectory(InternalGroup group, Directory directory) Description copied from interface:GroupAdministrationGrantGroupDaoLooks for grants of groups which administer an other group and come from given directory- Specified by:
findGrantsToGroupFromDirectoryin interfaceGroupAdministrationGrantGroupDao- Parameters:
group- the group which is administereddirectory- the directory- Returns:
- found mappings
-
findAll
- Specified by:
findAllin interfaceGroupAdministrationGrantGroupDao- Returns:
- all the group administration grants assigned to users
-
remove
Description copied from interface:GroupAdministrationGrantGroupDaoRemove administration grant for a group to a group- Specified by:
removein interfaceGroupAdministrationGrantGroupDao- Parameters:
adminGroup- the group which will lose the granttargetGroup- the id of group to which grant will be lost
-
getPersistentClass
Description copied from class:HibernateDaoAll subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.- Specified by:
getPersistentClassin classHibernateDao<GroupAdministrationGrantToGroup>- Returns:
- the entity class for this DAO
-