Package com.bytedesk.core.utils
Class ConvertUtils
java.lang.Object
com.bytedesk.core.utils.ConvertUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorityResponseconvertToAuthorityResponse(AuthorityEntity authorityEntity) static BytedeskPropertiesResponseconvertToBytedeskPropertiesResponse(BytedeskProperties bytedeskProperties) static MessageResponseconvertToMessageResponse(MessageEntity message) static MessageUnreadResponsestatic RoleResponseconvertToRoleResponse(RoleEntity entity) static ThreadProtobufconvertToThreadProtobuf(ThreadEntity thread) static ThreadResponseconvertToThreadResponse(ThreadEntity thread) static UploadResponseconvertToUploadResponse(UploadEntity entity) static UserProtobufstatic UserProtobufconvertToUserProtobuf(WorkflowEntity workflow) static Stringstatic StringconvertToUserProtobufString(WorkflowEntity workflow) static UserResponseconvertToUserResponse(UserDetailsImpl userDetails) static UserResponsestatic 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
-