public class ConversionUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static Group | 
getEmbeddedGroup(InvalidGroupException ex)
Extracts a directory-specific model group from the given  
InvalidGroupException and converts it into a directory-agnostic embedded/application group. | 
static Group | 
toEmbeddedGroup(Group modelGroup)
Converts a directory-specific model group into a directory-agnostic embedded/application group. 
 | 
static List<Group> | 
toEmbeddedGroups(List<Group> modelGroups)
Converts a directory-specific model groups into a directory-agnostic
 embedded/application groups. 
 | 
static GroupWithAttributes | 
toEmbeddedGroupWithAttributes(GroupWithAttributes modelGroup)
Converts a directory-specific model group (with attributes) into a directory-agnostic
 embedded/application group (with attributes). 
 | 
static List<User> | 
toEmbeddedUsers(List<User> modelUsers)
Converts a list of model Users to a list of embedded Users. 
 | 
static MembershipQuery<Group> | 
toModelGroupMembershipQuery(MembershipQuery embeddedQuery)  | 
static GroupQuery<Group> | 
toModelGroupQuery(GroupQuery embeddedQuery)  | 
static MembershipQuery<User> | 
toModelUserMembershipQuery(MembershipQuery embeddedQuery)  | 
static UserQuery<User> | 
toModelUserQuery(UserQuery embeddedQuery)  | 
public static Group toEmbeddedGroup(Group modelGroup)
modelGroup - model group.public static GroupWithAttributes toEmbeddedGroupWithAttributes(GroupWithAttributes modelGroup)
modelGroup - model group with attributes.public static List<Group> toEmbeddedGroups(List<Group> modelGroups)
modelGroups - model groups.public static Group getEmbeddedGroup(InvalidGroupException ex)
InvalidGroupException and converts it into a directory-agnostic embedded/application group.
 
 This is normally used to construct an embedded InvalidGroupException
ex - the InvalidGroupExceptionpublic static UserQuery<User> toModelUserQuery(UserQuery embeddedQuery)
embeddedQuery - query expected to return an embedded user.public static GroupQuery<Group> toModelGroupQuery(GroupQuery embeddedQuery)
embeddedQuery - query expected to return an embedded group.public static MembershipQuery<User> toModelUserMembershipQuery(MembershipQuery embeddedQuery)
embeddedQuery - query expected to return an embedded user.public static MembershipQuery<Group> toModelGroupMembershipQuery(MembershipQuery embeddedQuery)
embeddedQuery - query expected to return an embedded group.Copyright © 2023 Atlassian. All rights reserved.