UserMapperImpl

internal class UserMapperImpl(idMapper: IdMapper = MapperProvider.idMapper(), domainUserTypeMapper: DomainUserTypeMapper = MapperProvider.userTypeMapper(), availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper(), connectionStateMapper: ConnectionStateMapper = MapperProvider.connectionStateMapper(), userEntityTypeMapper: UserEntityTypeMapper = MapperProvider.userTypeEntityMapper()) : UserMapper

Constructors

Link copied to clipboard
constructor(idMapper: IdMapper = MapperProvider.idMapper(), domainUserTypeMapper: DomainUserTypeMapper = MapperProvider.userTypeMapper(), availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper(), connectionStateMapper: ConnectionStateMapper = MapperProvider.connectionStateMapper(), userEntityTypeMapper: UserEntityTypeMapper = MapperProvider.userTypeEntityMapper())

Functions

Link copied to clipboard
open override fun fromEntityToUserSummary(userEntity: UserEntity): UserSummary
Link copied to clipboard

Default values and marked as UserEntity.hasIncompleteMetadata = true. So later we can re-fetch them.

Link copied to clipboard
open override fun fromManagedByDtoToSsoManagedBy(managedBy: ManagedByDTO?): SsoManagedBy?
Link copied to clipboard
open override fun fromModelToUpdateApiModel(newName: String?, newAccent: Int?, newAssetId: String?): UserUpdateRequest

Maps the user data to be updated. if the parameters newName newAssetId are nulls, it indicates that not updation should be made.

Link copied to clipboard
open override fun fromOtherToUserEntity(otherUser: OtherUser): UserEntity
Link copied to clipboard
Link copied to clipboard
open override fun fromSelfUserDtoToUserEntity(userDTO: SelfUserDTO, connectionState: ConnectionEntity.State, userTypeEntity: UserTypeEntity): UserEntity
Link copied to clipboard
open override fun fromSelfUserToUserEntity(selfUser: SelfUser): UserEntity
Link copied to clipboard
open override fun fromUpdateRequestToPartialUserEntity(updateRequest: UserUpdateRequest, selfUserId: UserId): PartialUserEntity
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun fromUserEntityToOtherUser(userEntity: UserEntity): OtherUser
Link copied to clipboard
open override fun fromUserEntityToSelfUser(userEntity: UserEntity): SelfUser
Link copied to clipboard
open override fun fromUserProfileDtoToOtherUser(userProfile: UserProfileDTO, selfUserId: UserId, selfTeamId: TeamId?): OtherUser
Link copied to clipboard
open override fun fromUserProfileDtoToUserEntity(userProfile: UserProfileDTO, connectionState: ConnectionEntity.State, userTypeEntity: UserTypeEntity, selfUserId: UserId, selfTeamId: TeamId?): UserEntity