|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.embedded.core.util.ConversionUtils
public class ConversionUtils
Utility class for converting between model objects and embedded/application objects.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 InvalidGroupException
public 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.
public static List<User> toEmbeddedUsers(List<User> modelUsers)
modelUsers
- a list of model Users.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |