Class DirectoryEntitiesTransformer
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.admin.directory.DirectoryEntitiesTransformer
Helper class transforming directory entities between different formats.
Deals with
DirectoryNotFoundException
, which can't be handled by Stream.map(Function)
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromUserToGroupAdministrationMappingRestDTO
(List<? extends User> users) toUserData
(User user) toUserData
(List<? extends User> users) toUserDataWithAvatar
(User user, String avatarUrl) static DirectoryEntitiesTransformer
withDirectoryCaching
(DirectoryEntitiesTransformer.DirectoryFinder directoryFinder)
-
Method Details
-
toUserData
-
toUserData
-
toUserDataWithAvatar
-
fromUserToGroupAdministrationMappingRestDTO
public List<GroupAdministrationMappingRestDTO> fromUserToGroupAdministrationMappingRestDTO(List<? extends User> users) -
toGroupAdministrationMappingRestDTO
-
fromGroupToGroupAdministrationMappingRestDTO
public List<GroupAdministrationMappingRestDTO> fromGroupToGroupAdministrationMappingRestDTO(List<Group> users) -
toGroupAdministrationMappingRestDTO
-
withDirectoryCaching
public static DirectoryEntitiesTransformer withDirectoryCaching(DirectoryEntitiesTransformer.DirectoryFinder directoryFinder)
-