Interface GroupAdministrationGrantGroupDao
- All Known Implementing Classes:
GroupAdministrationGrantGroupDaoHibernate
public interface GroupAdministrationGrantGroupDao
Manages persistence of group administration grants for groups
- Since:
- 3.3.0
-
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 directoryvoid
remove
(InternalGroup adminGroup, InternalGroup targetGroup) Remove administration grant for a group to a group
-
Method Details
-
add
Adds a new group administration grant to a group- Parameters:
grant
- the grant- Returns:
- the newly persisted grant
-
findGrantsToGroup
Looks for administration grants for a given group- Parameters:
targetGroup
- the group- Returns:
- Grants found for this group
-
findGrantsOfGroups
Looks for grants assigned to given groups- Parameters:
groups
- the groups- Returns:
- found mappings of groups
-
findGrantsToGroupFromDirectory
List<GroupAdministrationGrantToGroup> findGrantsToGroupFromDirectory(InternalGroup group, Directory directory) Looks for grants of groups which administer an other group and come from given directory- Parameters:
group
- the group which is administereddirectory
- the directory- Returns:
- found mappings
-
findAll
List<GroupAdministrationGrantToGroup> findAll()- Returns:
- all the group administration grants assigned to users
-
remove
Remove administration grant for a group to a group- Parameters:
adminGroup
- the group which will lose the granttargetGroup
- the id of group to which grant will be lost
-