public class EntityTranslator extends Object
Modifier and Type | Method and Description |
---|---|
static Events |
toEvents(EventEntityList eventEntityList) |
static GroupEntity |
toGroupEntity(Group group)
Translates a Group to a GroupEntity.
|
static GroupEntity |
toGroupEntity(Group group,
Attributes attributes)
Translates a Group with Attributes to a GroupEntity.
|
static List<Group> |
toGroupList(GroupEntityList groupEntityList)
Transforms GroupEntityList into a list of groups.
|
static List<GroupWithAttributes> |
toGroupWithAttributesList(GroupEntityList groupEntityList)
Transforms GroupEntityList into a list of groups with attributes.
|
static MultiValuedAttributeEntityList |
toMultiValuedAttributeEntityList(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 into a list of group names.
|
static List<String> |
toNameList(UserEntityList userEntityList)
Transforms UserEntityList into a list of usernames.
|
static UserEntity |
toUserEntity(User user)
Translates a User to a UserEntity.
|
static UserEntity |
toUserEntity(User user,
Attributes attributes)
Translates a User with Attributes to a UserEntity.
|
static UserEntity |
toUserEntity(User user,
PasswordCredential passwordCredential)
Translates a User to a UserEntity.
|
static List<User> |
toUserList(UserEntityList userEntityList)
Transforms UserEntityList into a list of users.
|
static List<UserWithAttributes> |
toUserWithAttributesList(UserEntityList userEntityList)
Transforms UserEntityList into a list of users with attributes.
|
public static UserEntity toUserEntity(User user)
user
- User to convertpublic static UserEntity toUserEntity(User user, @Nullable PasswordCredential passwordCredential)
user
- User to convertpasswordCredential
- user passwordpublic static UserEntity toUserEntity(User user, Attributes attributes)
user
- Userattributes
- attributes of the user.public static GroupEntity toGroupEntity(Group group)
group
- Group to convertpublic static GroupEntity toGroupEntity(Group group, Attributes attributes)
group
- Groupattributes
- attributes of the group.public static MultiValuedAttributeEntityList toMultiValuedAttributeEntityList(Attributes attributes)
attributes
- Attributes of an entitypublic static MultiValuedAttributeEntityList toMultiValuedAttributeEntityList(Map<String,Set<String>> attributes)
attributes
- attributes of an entitypublic static List<Group> toGroupList(GroupEntityList groupEntityList)
public static List<GroupWithAttributes> toGroupWithAttributesList(GroupEntityList groupEntityList)
public static List<String> toNameList(GroupEntityList groupEntityList)
public static List<User> toUserList(UserEntityList userEntityList)
public static List<UserWithAttributes> toUserWithAttributesList(UserEntityList userEntityList)
public static List<String> toNameList(UserEntityList userEntityList)
public static Events toEvents(EventEntityList eventEntityList)
Copyright © 2020 Atlassian. All rights reserved.