@ExperimentalApi
public interface GroupAdministrationPermissionService
| Modifier and Type | Method and Description |
|---|---|
List<UserGroupAdministrationMapping> |
getAdministeredGroups(User user,
AdministeredGroupsQuery query)
Looks for groups a user administers
|
List<UserGroupAdministrationMapping> |
getAdministeredGroupsForCurrentUser(AdministeredGroupsQuery query)
Looks for groups that currently logged in user administers
|
Set<Group> |
getDirectGroupLevelAdminGroups(boolean considerOnlyTargetGroupsWithApplications) |
Set<User> |
getDirectGroupLevelAdminUsers(boolean considerOnlyTargetGroupsWithApplications) |
boolean |
isCurrentUserAdminOfGroup(Group group)
Check if a current logged in user is an administrator of a group
|
boolean |
isUserAdminOfGroup(User user,
Group group)
Check if a user is an administrator of a group
|
boolean |
isUserGroupLevelAdmin(User user) |
List<UserGroupAdministrationMapping> getAdministeredGroupsForCurrentUser(@Nonnull AdministeredGroupsQuery query) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.FeatureInaccessibleException
query - the criteria that the returned groups must meet or null for all groupsIllegalStateException - if user associated with the current session, no more exists in the directorycom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.FeatureInaccessibleExceptionList<UserGroupAdministrationMapping> getAdministeredGroups(User user, @Nonnull AdministeredGroupsQuery query) throws com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.FeatureInaccessibleException
user - the userquery - the criteria that the returned groups must meet or null for all groupsIllegalStateException - if the supplied user doesn't existscom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.FeatureInaccessibleExceptionboolean isUserGroupLevelAdmin(User user) throws com.atlassian.crowd.exception.OperationFailedException
user - the usercom.atlassian.crowd.exception.OperationFailedExceptionboolean isCurrentUserAdminOfGroup(Group group) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.FeatureInaccessibleException
group - the grouptrue if the user is an administrator of the group, false otherwisecom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.FeatureInaccessibleExceptionboolean isUserAdminOfGroup(User user, Group group) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.FeatureInaccessibleException
user - the usergroup - the grouptrue if the user is an administrator of the group, false otherwisecom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.FeatureInaccessibleExceptionSet<User> getDirectGroupLevelAdminUsers(boolean considerOnlyTargetGroupsWithApplications)
considerOnlyTargetGroupsWithApplications - whether only groups with mapped application should be taken into accountSet<Group> getDirectGroupLevelAdminGroups(boolean considerOnlyTargetGroupsWithApplications)
considerOnlyTargetGroupsWithApplications - whether only groups with mapped application should be taken into accountCopyright © 2023 Atlassian. All rights reserved.