Package com.bytedesk.core.utils
Class ConvertUtils
java.lang.Object
com.bytedesk.core.utils.ConvertUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorityResponse
convertToAuthorityResponse
(AuthorityEntity authorityEntity) static BytedeskPropertiesResponse
convertToBytedeskPropertiesResponse
(BytedeskProperties bytedeskProperties) static MessageResponse
convertToMessageResponse
(MessageEntity message) static MessageUnreadResponse
static RoleResponse
convertToRoleResponse
(RoleEntity entity) static ThreadProtobuf
convertToThreadProtobuf
(ThreadEntity thread) static ThreadResponse
convertToThreadResponse
(ThreadEntity thread) static UploadResponse
convertToUploadResponse
(UploadEntity entity) static UserProtobuf
static UserProtobuf
convertToUserProtobuf
(WorkflowEntity workflow) static String
static String
convertToUserProtobufString
(WorkflowEntity workflow) static UserResponse
convertToUserResponse
(UserDetailsImpl userDetails) static UserResponse
static Set<org.springframework.security.core.GrantedAuthority>
private static org.modelmapper.ModelMapper
-
Constructor Details
-
ConvertUtils
public ConvertUtils()
-
-
Method Details
-
getModelMapper
private static org.modelmapper.ModelMapper getModelMapper() -
convertToUserResponse
-
convertToUserResponse
-
filterUserGrantedAuthorities
public static Set<org.springframework.security.core.GrantedAuthority> filterUserGrantedAuthorities(UserEntity user) -
convertToUserProtobuf
-
convertToUserProtobuf
-
convertToUserProtobufString
-
convertToUserProtobufString
-
convertToThreadProtobuf
-
convertToThreadResponse
-
convertToRoleResponse
-
convertToMessageResponse
-
convertToAuthorityResponse
-
convertToBytedeskPropertiesResponse
public static BytedeskPropertiesResponse convertToBytedeskPropertiesResponse(BytedeskProperties bytedeskProperties) -
convertToUploadResponse
-
convertToMessageUnreadResponse
-