public class GroupAdministrationGrantGroupDaoHibernate extends HibernateDao<GroupAdministrationGrantToGroup> implements GroupAdministrationGrantGroupDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
sessionFactory
Constructor and Description |
---|
GroupAdministrationGrantGroupDaoHibernate() |
Modifier and Type | Method and Description |
---|---|
GroupAdministrationGrantToGroup |
add(GroupAdministrationGrantToGroup grant)
Adds a new group administration grant to a group
|
List<GroupAdministrationGrantToGroup> |
findAll() |
List<GroupAdministrationGrantToGroup> |
findGrantsOfGroups(Collection<InternalGroup> groups)
Looks for grants assigned to given groups
|
List<GroupAdministrationGrantToGroup> |
findGrantsToGroup(InternalGroup targetGroup)
Looks for administration grants for a given group
|
List<GroupAdministrationGrantToGroup> |
findGrantsToGroupFromDirectory(InternalGroup group,
Directory directory)
Looks for grants of groups which administer an other group and come from given directory
|
Class<GroupAdministrationGrantToGroup> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(Serializable) to work
correctly. |
void |
remove(InternalGroup adminGroup,
InternalGroup targetGroup)
Remove administration grant for a group to a group
|
createDeleteQuery, createDeleteQuery, createHibernateQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, update
setSessionFactory, withStatelessSession
public GroupAdministrationGrantGroupDaoHibernate()
public GroupAdministrationGrantToGroup add(GroupAdministrationGrantToGroup grant)
GroupAdministrationGrantGroupDao
add
in interface GroupAdministrationGrantGroupDao
grant
- the grantpublic List<GroupAdministrationGrantToGroup> findGrantsToGroup(InternalGroup targetGroup)
GroupAdministrationGrantGroupDao
findGrantsToGroup
in interface GroupAdministrationGrantGroupDao
targetGroup
- the grouppublic List<GroupAdministrationGrantToGroup> findGrantsOfGroups(Collection<InternalGroup> groups)
GroupAdministrationGrantGroupDao
findGrantsOfGroups
in interface GroupAdministrationGrantGroupDao
groups
- the groupspublic List<GroupAdministrationGrantToGroup> findGrantsToGroupFromDirectory(InternalGroup group, Directory directory)
GroupAdministrationGrantGroupDao
findGrantsToGroupFromDirectory
in interface GroupAdministrationGrantGroupDao
group
- the group which is administereddirectory
- the directorypublic List<GroupAdministrationGrantToGroup> findAll()
findAll
in interface GroupAdministrationGrantGroupDao
public void remove(InternalGroup adminGroup, InternalGroup targetGroup)
GroupAdministrationGrantGroupDao
remove
in interface GroupAdministrationGrantGroupDao
adminGroup
- the group which will lose the granttargetGroup
- the id of group to which grant will be lostpublic Class<GroupAdministrationGrantToGroup> getPersistentClass()
HibernateDao
HibernateDao.load(Serializable)
to work
correctly.getPersistentClass
in class HibernateDao<GroupAdministrationGrantToGroup>
Copyright © 2019 Atlassian. All rights reserved.