|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDefaultUserAccessor
com.atlassian.bamboo.user.BambooUserManagerImpl
public class BambooUserManagerImpl
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.user.BambooUserManager |
---|
JABBER_ADDRESS_KEY |
Constructor Summary | |
---|---|
BambooUserManagerImpl()
|
Method Summary | |
---|---|
BambooUser |
addUser(String username,
String password,
String email,
String fullName,
String jabberAddress,
List groups)
Method that extends the standard addUser methods to also add Bamboo specific params |
BambooUser |
addUser(String username,
String password,
String email,
String fullName,
String jabberAddress,
List groups,
ExtendedAuthor author)
Method that extends the standard addUser methods to also add Bamboo specific params |
BambooUser |
getBambooUser(String username)
Returns a BambooUser of the given username |
List |
getGroupNamesAsList(User user)
Returns groups for the User |
List |
getMemberNamesAsList(Group group)
|
BambooUser |
injectUser(String username,
String encryptedPassword,
String email,
String fullName,
String jabberAddress)
A variation of addUser which inserts the encryptedPassword instead - used for importing |
boolean |
isDeletable(User user)
|
void |
removeUser(User user)
|
void |
saveUser(String username,
String email,
String fullName,
String jabberAddress,
List selectedGroups)
Saves the properties for the given user |
void |
saveUser(String username,
String email,
String fullName,
String jabberAddress,
List selectedGroups,
ExtendedAuthor author)
Saves the properties for the given user |
void |
setCommentDao(CommentDao commentDao)
|
void |
setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
|
void |
setLabelDao(LabelDao labelDao)
|
void |
setMembership(Group group,
List members)
Sets a group's members as the passed list |
static String[] |
stringListToArray(Collection strings)
Converts a Collection of Strings to an array of Strings |
static Collection |
subtractNewList(Collection oldList,
Collection newList)
Works like CollectionUtils#subtract(Collection,Collection) only that it's null safe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BambooUserManagerImpl()
Method Detail |
---|
public BambooUser getBambooUser(String username)
BambooUserManager
BambooUser
of the given username
getBambooUser
in interface BambooUserManager
public BambooUser addUser(String username, String password, String email, String fullName, String jabberAddress, List groups)
BambooUserManager
addUser
in interface BambooUserManager
groups
- - List
of Strings as the group names. May be null.
BambooUser
object with the created propertiespublic BambooUser addUser(String username, String password, String email, String fullName, String jabberAddress, List groups, ExtendedAuthor author)
BambooUserManager
addUser
in interface BambooUserManager
groups
- - List
of Strings as the group names. May be null.
BambooUser
object with the created propertiespublic void saveUser(String username, String email, String fullName, String jabberAddress, List selectedGroups) throws IllegalArgumentException
BambooUserManager
saveUser
in interface BambooUserManager
selectedGroups
- - List
of Strings as the group names. May be null.
IllegalArgumentException
- if ussername does not macth a userpublic void saveUser(String username, String email, String fullName, String jabberAddress, List selectedGroups, ExtendedAuthor author) throws IllegalArgumentException
BambooUserManager
saveUser
in interface BambooUserManager
selectedGroups
- - List
of Strings as the group names. May be null.
IllegalArgumentException
- if ussername does not macth a userpublic void removeUser(User user)
public List getGroupNamesAsList(User user)
BambooUserManager
User
getGroupNamesAsList
in interface BambooUserManager
user
- - Must not be null
List
of String
representing group names. Collections.EMPTY_LIST
if none existspublic void setMembership(Group group, List members)
BambooUserManager
setMembership
in interface BambooUserManager
group
- - The group to modify the user list. Cannot be null.members
- - List
of username String
s. Can be nullpublic List getMemberNamesAsList(Group group)
getMemberNamesAsList
in interface BambooUserManager
public static Collection subtractNewList(Collection oldList, Collection newList)
CollectionUtils#subtract(Collection,Collection)
only that it's null safe
oldList
- - can be nullnewList
- - can be null
CollectionUtils#subtract(Collection,Collection)
. Null lists count as empty lists.public static String[] stringListToArray(Collection strings)
Collection
of Strings to an array of Strings
strings
- - Collection
of String
s. May be nukk
public BambooUser injectUser(String username, String encryptedPassword, String email, String fullName, String jabberAddress)
BambooUserManager
injectUser
in interface BambooUserManager
BambooUser
object with the created propertiespublic boolean isDeletable(User user)
isDeletable
in interface BambooUserManager
public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
public void setCommentDao(CommentDao commentDao)
public void setLabelDao(LabelDao labelDao)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |