|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.rest.util.EntityTranslator
public class EntityTranslator
Translates between REST entities and com.atlassian.crowd.model classes.
| Method Summary | |
|---|---|
static Events |
toEvents(EventEntityList eventEntityList)
|
static GroupEntity |
toGroupEntity(Group group)
Translates a Group to a GroupEntity. |
static GroupEntity |
toGroupEntity(Group group,
com.atlassian.crowd.embedded.api.Attributes attributes)
Translates a Group with Attributes to a GroupEntity. |
static List<Group> |
toGroupList(GroupEntityList groupEntityList)
Transforms GroupEntityList to a list of groups. |
static MultiValuedAttributeEntityList |
toMultiValuedAttributeEntityList(com.atlassian.crowd.embedded.api.Attributes attributes)
Translates Attributes to MultiValuedAttributeEntityList. |
static MultiValuedAttributeEntityList |
toMultiValuedAttributeEntityList(Map<String,Set<String>> attributes)
Translates Attributes to MultiValuedAttributeEntityList. |
static List<String> |
toNameList(GroupEntityList groupEntityList)
Transforms GroupEntityList to a list of group names. |
static List<String> |
toNameList(UserEntityList userEntityList)
Transforms UserEntityList to a list of usernames. |
static UserEntity |
toUserEntity(User user)
Translates a User to a UserEntity. |
static UserEntity |
toUserEntity(User user,
com.atlassian.crowd.embedded.api.Attributes attributes)
Translates a User with Attributes to a UserEntity. |
static UserEntity |
toUserEntity(User user,
com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential)
Translates a User to a UserEntity. |
static List<User> |
toUserList(UserEntityList userEntityList)
Transforms UserEntityList to a list of users. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UserEntity toUserEntity(User user)
user - User to convert
public static UserEntity toUserEntity(User user,
com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential)
user - User to convertpasswordCredential - user password
public static UserEntity toUserEntity(User user,
com.atlassian.crowd.embedded.api.Attributes attributes)
user - Userattributes - attributes of the user.
public static GroupEntity toGroupEntity(Group group)
group - Group to convert
public static GroupEntity toGroupEntity(Group group,
com.atlassian.crowd.embedded.api.Attributes attributes)
group - Groupattributes - attributes of the group.
public static MultiValuedAttributeEntityList toMultiValuedAttributeEntityList(com.atlassian.crowd.embedded.api.Attributes attributes)
attributes - Attributes of an entity
public static MultiValuedAttributeEntityList toMultiValuedAttributeEntityList(Map<String,Set<String>> attributes)
attributes - Attributes of an entity
public static List<Group> toGroupList(GroupEntityList groupEntityList)
groupEntityList - GroupEntityList to transform
public static List<String> toNameList(GroupEntityList groupEntityList)
groupEntityList - GroupEntityList to transform
public static List<User> toUserList(UserEntityList userEntityList)
userEntityList - UserEntityList to transform
public static List<String> toNameList(UserEntityList userEntityList)
userEntityList - UserEntityList to transform
public static Events toEvents(EventEntityList eventEntityList)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||