|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.user.util.OSUserConverter
public class OSUserConverter
Utility to assist in the migration of code from the OSUser to the Crowd User API.
| Constructor Summary | |
|---|---|
OSUserConverter()
|
|
| Method Summary | |
|---|---|
static Group |
convertToOSGroup(com.atlassian.crowd.embedded.api.Group crowdGroup)
Convert a Crowd Group to an OSUser Group If a group is already an OSGroup the group will be returned unchanged. |
static Set<Group> |
convertToOSGroups(Iterable<com.atlassian.crowd.embedded.api.Group> crowdGroups)
Convert a collection of Crowd Groups to OS User Groups If any group is already an OSGroup that group will be returned unchanged. |
static User |
convertToOSUser(com.atlassian.crowd.embedded.api.User crowdUser)
Convert a Crowd User to an OSUser If a user is already an OSUser the user will be returned unchanged. |
static List<User> |
convertToOSUserList(Iterable<com.atlassian.crowd.embedded.api.User> crowdUsers)
Convert a Crowd User collection to a List of OSUser. |
static Set<User> |
convertToOSUserSet(Iterable<com.atlassian.crowd.embedded.api.User> crowdUsers)
Convert a Crowd User collection to a Set of OSUser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OSUserConverter()
| Method Detail |
|---|
public static Set<User> convertToOSUserSet(Iterable<com.atlassian.crowd.embedded.api.User> crowdUsers)
crowdUsers - A bunch of Crowd users
public static List<User> convertToOSUserList(Iterable<com.atlassian.crowd.embedded.api.User> crowdUsers)
crowdUsers - A bunch of Crowd users
public static User convertToOSUser(com.atlassian.crowd.embedded.api.User crowdUser)
crowdUser - A Crowd User Object
public static Set<Group> convertToOSGroups(Iterable<com.atlassian.crowd.embedded.api.Group> crowdGroups)
crowdGroups - A bunch of Crowd groups
public static Group convertToOSGroup(com.atlassian.crowd.embedded.api.Group crowdGroup)
crowdGroup - A Crowd Group Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||