Interface UserAdministrationGrantGroupDao
- All Known Implementing Classes:
UserAdministrationGrantGroupDaoHibernate
public interface UserAdministrationGrantGroupDao
Manages persistence of group administration grants for users
- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new group administration grant for a userfindAll()
findGrantsToGroup
(InternalGroup targetGroup) Looks for administration grants for a given groupfindUserGrantForGroup
(InternalUser internalUser, InternalGroup internalGroup) Checks if an user has a grant to a groupfindUserGrants
(InternalUser internalUser) Looks for all administration grants a user hasvoid
remove
(InternalUser user, InternalGroup targetGroup) Remove administration grant for a user to a group
-
Method Details
-
add
Adds a new group administration grant for a user- 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
-
findUserGrants
Looks for all administration grants a user has- Returns:
- found grants
-
findUserGrantForGroup
Optional<UserAdministrationGrantToGroup> findUserGrantForGroup(InternalUser internalUser, InternalGroup internalGroup) Checks if an user has a grant to a group- Parameters:
internalUser
- the userinternalGroup
- the group- Returns:
- a mapping, if found any
-
findAll
List<UserAdministrationGrantToGroup> findAll()- Returns:
- all the group administration grants assigned to users
-
remove
Remove administration grant for a user to a group- Parameters:
user
- the user who will lose the granttargetGroup
- the group to which grant will be removed
-