public interface UserAdministrationGrantGroupDao
Modifier and Type | Method and Description |
---|---|
UserAdministrationGrantToGroup |
add(UserAdministrationGrantToGroup grant)
Adds a new group administration grant for a user
|
List<UserAdministrationGrantToGroup> |
findAll() |
List<UserAdministrationGrantToGroup> |
findGrantsToGroup(InternalGroup targetGroup)
Looks for administration grants for a given group
|
Optional<UserAdministrationGrantToGroup> |
findUserGrantForGroup(InternalUser internalUser,
InternalGroup internalGroup)
Checks if an user has a grant to a group
|
List<UserAdministrationGrantToGroup> |
findUserGrants(InternalUser internalUser)
Looks for all administration grants a user has
|
void |
remove(InternalUser user,
InternalGroup targetGroup)
Remove administration grant for a user to a group
|
UserAdministrationGrantToGroup add(UserAdministrationGrantToGroup grant)
grant
- the grantList<UserAdministrationGrantToGroup> findGrantsToGroup(InternalGroup targetGroup)
targetGroup
- the groupList<UserAdministrationGrantToGroup> findUserGrants(InternalUser internalUser)
Optional<UserAdministrationGrantToGroup> findUserGrantForGroup(InternalUser internalUser, InternalGroup internalGroup)
internalUser
- the userinternalGroup
- the groupList<UserAdministrationGrantToGroup> findAll()
void remove(InternalUser user, InternalGroup targetGroup)
user
- the user who will lose the granttargetGroup
- the group to which grant will be removedCopyright © 2020 Atlassian. All rights reserved.