All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eurodyn.qlack2.webdesktop.impl.mappers.QFUserDTOMapper Maven / Gradle / Ivy

There is a newer version: 2.3.18
Show newest version
package com.eurodyn.qlack2.webdesktop.impl.mappers;

import org.mapstruct.Mapper;

import com.eurodyn.qlack2.webdesktop.api.constants.LVUser;
import com.eurodyn.qlack2.webdesktop.api.dto.UserProfileDTO;

@Mapper
public abstract class QFUserDTOMapper {
	public UserProfileDTO toUserDTO(com.eurodyn.qlack2.fuse.aaa.api.dto.UserDTO dto) {
		UserProfileDTO retVal = new UserProfileDTO();
		retVal.setFirstName(dto.getAttributeData(LVUser.ATTRIBUTES_LOOKUP.FIRST_NAME.getValue()));
		retVal.setLastName(dto.getAttributeData(LVUser.ATTRIBUTES_LOOKUP.LAST_NAME.getValue()));
		retVal.setEmail(dto.getAttributeData(LVUser.ATTRIBUTES_LOOKUP.EMAIL.getValue()));
		retVal.setPhone(dto.getAttributeData(LVUser.ATTRIBUTES_LOOKUP.PHONE.getValue()));
		retVal.setMobile(dto.getAttributeData(LVUser.ATTRIBUTES_LOOKUP.MOBILE.getValue()));
		retVal.setUsername(dto.getUsername());
		
		return retVal;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy