public class UserGroupSnapshot extends Object
Constructor and Description |
---|
UserGroupSnapshot() |
UserGroupSnapshot(Collection<com.atlassian.user.User> users) |
UserGroupSnapshot(Collection<com.atlassian.user.User> users,
Map<String,Collection<String>> groupMembers) |
UserGroupSnapshot(Collection<com.atlassian.user.User> users,
Map<String,Collection<String>> groupMembers,
Map<String,Collection<String>> groupChildGroups) |
Modifier and Type | Method and Description |
---|---|
static com.atlassian.user.User |
copy(com.atlassian.user.User u) |
com.atlassian.user.Group |
getGroup(String groupName) |
Collection<com.atlassian.user.Group> |
getGroups() |
Collection<com.atlassian.user.Group> |
getGroups(com.atlassian.user.User user) |
Collection<String> |
getMemberNames(com.atlassian.user.Group group) |
com.atlassian.user.User |
getUser(String username) |
Collection<String> |
getUserNames() |
Collection<com.atlassian.user.User> |
getUsers() |
boolean |
hasMembership(com.atlassian.user.Group group,
com.atlassian.user.User user) |
UserGroupSnapshot |
withGroup(String groupName) |
UserGroupSnapshot |
withGroupMembership(com.atlassian.user.Group group,
com.atlassian.user.User user) |
UserGroupSnapshot |
withoutGroup(String groupName) |
UserGroupSnapshot |
withoutGroupMembership(com.atlassian.user.Group group,
com.atlassian.user.User user) |
UserGroupSnapshot |
withoutUser(String name) |
UserGroupSnapshot |
withUser(com.atlassian.user.User user) |
public UserGroupSnapshot()
public UserGroupSnapshot(Collection<com.atlassian.user.User> users)
public UserGroupSnapshot(Collection<com.atlassian.user.User> users, Map<String,Collection<String>> groupMembers)
public UserGroupSnapshot(Collection<com.atlassian.user.User> users, Map<String,Collection<String>> groupMembers, Map<String,Collection<String>> groupChildGroups)
public com.atlassian.user.User getUser(String username)
public Collection<String> getUserNames()
public Collection<com.atlassian.user.User> getUsers()
public static com.atlassian.user.User copy(com.atlassian.user.User u)
public com.atlassian.user.Group getGroup(String groupName)
public Collection<com.atlassian.user.Group> getGroups()
public Collection<com.atlassian.user.Group> getGroups(com.atlassian.user.User user)
public Collection<String> getMemberNames(com.atlassian.user.Group group)
public boolean hasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
public UserGroupSnapshot withoutUser(String name)
public UserGroupSnapshot withUser(com.atlassian.user.User user)
public UserGroupSnapshot withGroup(String groupName)
public UserGroupSnapshot withoutGroup(String groupName)
public UserGroupSnapshot withGroupMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
public UserGroupSnapshot withoutGroupMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.