com.atlassian.crowd.integration.atlassianuser
Class UserGroupSnapshot

java.lang.Object
  extended by com.atlassian.crowd.integration.atlassianuser.UserGroupSnapshot

public class UserGroupSnapshot
extends java.lang.Object


Constructor Summary
UserGroupSnapshot()
           
UserGroupSnapshot(java.util.Collection<com.atlassian.user.User> users)
           
UserGroupSnapshot(java.util.Collection<com.atlassian.user.User> users, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> groupMembers)
           
UserGroupSnapshot(java.util.Collection<com.atlassian.user.User> users, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> groupMembers, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> groupChildGroups)
           
 
Method Summary
static com.atlassian.user.User copy(com.atlassian.user.User u)
           
 com.atlassian.user.Group getGroup(java.lang.String groupName)
           
 java.util.Collection<com.atlassian.user.Group> getGroups()
           
 java.util.Collection<com.atlassian.user.Group> getGroups(com.atlassian.user.User user)
           
 java.util.Collection<java.lang.String> getMemberNames(com.atlassian.user.Group group)
           
 com.atlassian.user.User getUser(java.lang.String username)
           
 java.util.Collection<java.lang.String> getUserNames()
           
 java.util.Collection<com.atlassian.user.User> getUsers()
           
 boolean hasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
           
 UserGroupSnapshot withGroup(java.lang.String groupName)
           
 UserGroupSnapshot withGroupMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
           
 UserGroupSnapshot withoutGroup(java.lang.String groupName)
           
 UserGroupSnapshot withoutGroupMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
           
 UserGroupSnapshot withoutUser(java.lang.String name)
           
 UserGroupSnapshot withUser(java.lang.String name)
           
 UserGroupSnapshot withUser(com.atlassian.user.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserGroupSnapshot

public UserGroupSnapshot()

UserGroupSnapshot

public UserGroupSnapshot(java.util.Collection<com.atlassian.user.User> users)

UserGroupSnapshot

public UserGroupSnapshot(java.util.Collection<com.atlassian.user.User> users,
                         java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> groupMembers)

UserGroupSnapshot

public UserGroupSnapshot(java.util.Collection<com.atlassian.user.User> users,
                         java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> groupMembers,
                         java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> groupChildGroups)
Method Detail

getUser

public com.atlassian.user.User getUser(java.lang.String username)

getUserNames

public java.util.Collection<java.lang.String> getUserNames()

getUsers

public java.util.Collection<com.atlassian.user.User> getUsers()

copy

public static com.atlassian.user.User copy(com.atlassian.user.User u)

getGroup

public com.atlassian.user.Group getGroup(java.lang.String groupName)

getGroups

public java.util.Collection<com.atlassian.user.Group> getGroups()

getGroups

public java.util.Collection<com.atlassian.user.Group> getGroups(com.atlassian.user.User user)

getMemberNames

public java.util.Collection<java.lang.String> getMemberNames(com.atlassian.user.Group group)

hasMembership

public boolean hasMembership(com.atlassian.user.Group group,
                             com.atlassian.user.User user)

withUser

public UserGroupSnapshot withUser(java.lang.String name)

withoutUser

public UserGroupSnapshot withoutUser(java.lang.String name)

withUser

public UserGroupSnapshot withUser(com.atlassian.user.User user)

withGroup

public UserGroupSnapshot withGroup(java.lang.String groupName)

withoutGroup

public UserGroupSnapshot withoutGroup(java.lang.String groupName)

withGroupMembership

public UserGroupSnapshot withGroupMembership(com.atlassian.user.Group group,
                                             com.atlassian.user.User user)

withoutGroupMembership

public UserGroupSnapshot withoutGroupMembership(com.atlassian.user.Group group,
                                                com.atlassian.user.User user)


Copyright © 2012 Atlassian. All Rights Reserved.