com.arextest.web.model.mapper.FSCaseMapperImpl Maven / Gradle / Ivy
The newest version!
package com.arextest.web.model.mapper;
import com.arextest.web.model.contract.contracts.common.KeyValuePairType;
import com.arextest.web.model.contract.contracts.common.ScriptBlockType;
import com.arextest.web.model.contract.contracts.filesystem.AddressType;
import com.arextest.web.model.contract.contracts.filesystem.AuthType;
import com.arextest.web.model.contract.contracts.filesystem.BodyType;
import com.arextest.web.model.contract.contracts.filesystem.FSQueryCaseResponseType;
import com.arextest.web.model.contract.contracts.filesystem.FSSaveCaseRequestType;
import com.arextest.web.model.contract.contracts.filesystem.FormDataType;
import com.arextest.web.model.dao.mongodb.FSCaseCollection;
import com.arextest.web.model.dao.mongodb.entity.AddressDao;
import com.arextest.web.model.dao.mongodb.entity.AuthDao;
import com.arextest.web.model.dao.mongodb.entity.BodyDao;
import com.arextest.web.model.dao.mongodb.entity.FormDataDao;
import com.arextest.web.model.dao.mongodb.entity.KeyValuePairDao;
import com.arextest.web.model.dao.mongodb.entity.ScriptBlockDao;
import com.arextest.web.model.dto.KeyValuePairDto;
import com.arextest.web.model.dto.filesystem.AddressDto;
import com.arextest.web.model.dto.filesystem.AuthDto;
import com.arextest.web.model.dto.filesystem.BodyDto;
import com.arextest.web.model.dto.filesystem.FSCaseDto;
import com.arextest.web.model.dto.filesystem.FormDataDto;
import com.arextest.web.model.dto.filesystem.ScriptBlockDto;
import com.arextest.web.model.dto.filesystem.importexport.CaseItemDto;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/*
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-12-23T06:09:23+0000",
comments = "version: 1.5.5.Final, compiler: javac, environment: Java 21.0.5 (Eclipse Adoptium)"
)
*/
public class FSCaseMapperImpl implements FSCaseMapper {
@Override
public FSCaseDto dtoFromContract(FSSaveCaseRequestType contract) {
if ( contract == null ) {
return null;
}
FSCaseDto fSCaseDto = new FSCaseDto();
fSCaseDto.setId( contract.getId() );
fSCaseDto.setWorkspaceId( contract.getWorkspaceId() );
Set set = contract.getLabelIds();
if ( set != null ) {
fSCaseDto.setLabelIds( new LinkedHashSet( set ) );
}
Map map = contract.getCustomTags();
if ( map != null ) {
fSCaseDto.setCustomTags( new LinkedHashMap( map ) );
}
fSCaseDto.setAddress( addressTypeToAddressDto( contract.getAddress() ) );
fSCaseDto.setPreRequestScripts( scriptBlockTypeListToScriptBlockDtoList( contract.getPreRequestScripts() ) );
fSCaseDto.setTestScripts( scriptBlockTypeListToScriptBlockDtoList( contract.getTestScripts() ) );
fSCaseDto.setBody( bodyTypeToBodyDto( contract.getBody() ) );
fSCaseDto.setHeaders( keyValuePairTypeListToKeyValuePairDtoList( contract.getHeaders() ) );
fSCaseDto.setParams( keyValuePairTypeListToKeyValuePairDtoList( contract.getParams() ) );
fSCaseDto.setAuth( authTypeToAuthDto( contract.getAuth() ) );
fSCaseDto.setTestAddress( addressTypeToAddressDto( contract.getTestAddress() ) );
fSCaseDto.setDescription( contract.getDescription() );
fSCaseDto.setInherited( contract.getInherited() );
return fSCaseDto;
}
@Override
public FSQueryCaseResponseType contractFromDto(FSCaseDto dto) {
if ( dto == null ) {
return null;
}
FSQueryCaseResponseType fSQueryCaseResponseType = new FSQueryCaseResponseType();
fSQueryCaseResponseType.setId( dto.getId() );
fSQueryCaseResponseType.setName( dto.getName() );
Map map = dto.getCustomTags();
if ( map != null ) {
fSQueryCaseResponseType.setCustomTags( new LinkedHashMap( map ) );
}
fSQueryCaseResponseType.setWorkspaceId( dto.getWorkspaceId() );
fSQueryCaseResponseType.setAddress( addressDtoToAddressType( dto.getAddress() ) );
fSQueryCaseResponseType.setPreRequestScripts( scriptBlockDtoListToScriptBlockTypeList( dto.getPreRequestScripts() ) );
fSQueryCaseResponseType.setTestScripts( scriptBlockDtoListToScriptBlockTypeList( dto.getTestScripts() ) );
fSQueryCaseResponseType.setBody( bodyDtoToBodyType( dto.getBody() ) );
fSQueryCaseResponseType.setHeaders( keyValuePairDtoListToKeyValuePairTypeList( dto.getHeaders() ) );
fSQueryCaseResponseType.setParams( keyValuePairDtoListToKeyValuePairTypeList( dto.getParams() ) );
fSQueryCaseResponseType.setAuth( authDtoToAuthType( dto.getAuth() ) );
fSQueryCaseResponseType.setTestAddress( addressDtoToAddressType( dto.getTestAddress() ) );
fSQueryCaseResponseType.setRecordId( dto.getRecordId() );
Set set = dto.getLabelIds();
if ( set != null ) {
fSQueryCaseResponseType.setLabelIds( new LinkedHashSet( set ) );
}
fSQueryCaseResponseType.setDescription( dto.getDescription() );
fSQueryCaseResponseType.setInherited( dto.getInherited() );
return fSQueryCaseResponseType;
}
@Override
public FSCaseCollection daoFromDto(FSCaseDto dto) {
if ( dto == null ) {
return null;
}
FSCaseCollection fSCaseCollection = new FSCaseCollection();
fSCaseCollection.setId( dto.getId() );
fSCaseCollection.setName( dto.getName() );
fSCaseCollection.setWorkspaceId( dto.getWorkspaceId() );
fSCaseCollection.setAddress( addressDtoToAddressDao( dto.getAddress() ) );
fSCaseCollection.setPreRequestScripts( scriptBlockDtoListToScriptBlockDaoList( dto.getPreRequestScripts() ) );
fSCaseCollection.setTestScripts( scriptBlockDtoListToScriptBlockDaoList( dto.getTestScripts() ) );
fSCaseCollection.setBody( bodyDtoToBodyDao( dto.getBody() ) );
fSCaseCollection.setHeaders( keyValuePairDtoListToKeyValuePairDaoList( dto.getHeaders() ) );
fSCaseCollection.setParams( keyValuePairDtoListToKeyValuePairDaoList( dto.getParams() ) );
fSCaseCollection.setAuth( authDtoToAuthDao( dto.getAuth() ) );
fSCaseCollection.setTestAddress( addressDtoToAddressDao( dto.getTestAddress() ) );
fSCaseCollection.setParentId( dto.getParentId() );
fSCaseCollection.setParentNodeType( dto.getParentNodeType() );
fSCaseCollection.setDescription( dto.getDescription() );
Map map = dto.getCustomTags();
if ( map != null ) {
fSCaseCollection.setCustomTags( new LinkedHashMap( map ) );
}
Set set = dto.getLabelIds();
if ( set != null ) {
fSCaseCollection.setLabelIds( new LinkedHashSet( set ) );
}
fSCaseCollection.setRecordId( dto.getRecordId() );
fSCaseCollection.setInherited( dto.getInherited() );
return fSCaseCollection;
}
@Override
public FSCaseDto dtoFromDao(FSCaseCollection dao) {
if ( dao == null ) {
return null;
}
FSCaseDto fSCaseDto = new FSCaseDto();
fSCaseDto.setId( dao.getId() );
fSCaseDto.setName( dao.getName() );
fSCaseDto.setWorkspaceId( dao.getWorkspaceId() );
fSCaseDto.setParentId( dao.getParentId() );
fSCaseDto.setParentNodeType( dao.getParentNodeType() );
Set set = dao.getLabelIds();
if ( set != null ) {
fSCaseDto.setLabelIds( new LinkedHashSet( set ) );
}
Map map = dao.getCustomTags();
if ( map != null ) {
fSCaseDto.setCustomTags( new LinkedHashMap( map ) );
}
fSCaseDto.setAddress( addressDaoToAddressDto( dao.getAddress() ) );
fSCaseDto.setPreRequestScripts( scriptBlockDaoListToScriptBlockDtoList( dao.getPreRequestScripts() ) );
fSCaseDto.setTestScripts( scriptBlockDaoListToScriptBlockDtoList( dao.getTestScripts() ) );
fSCaseDto.setBody( bodyDaoToBodyDto( dao.getBody() ) );
fSCaseDto.setHeaders( keyValuePairDaoListToKeyValuePairDtoList( dao.getHeaders() ) );
fSCaseDto.setParams( keyValuePairDaoListToKeyValuePairDtoList( dao.getParams() ) );
fSCaseDto.setAuth( authDaoToAuthDto( dao.getAuth() ) );
fSCaseDto.setTestAddress( addressDaoToAddressDto( dao.getTestAddress() ) );
fSCaseDto.setDescription( dao.getDescription() );
fSCaseDto.setRecordId( dao.getRecordId() );
fSCaseDto.setInherited( dao.getInherited() );
return fSCaseDto;
}
@Override
public CaseItemDto ieItemFromFsItemDto(FSCaseDto dto) {
if ( dto == null ) {
return null;
}
CaseItemDto caseItemDto = new CaseItemDto();
caseItemDto.setName( dto.getName() );
caseItemDto.setAddress( dto.getAddress() );
List list = dto.getPreRequestScripts();
if ( list != null ) {
caseItemDto.setPreRequestScripts( new ArrayList( list ) );
}
List list1 = dto.getTestScripts();
if ( list1 != null ) {
caseItemDto.setTestScripts( new ArrayList( list1 ) );
}
caseItemDto.setBody( dto.getBody() );
List list2 = dto.getHeaders();
if ( list2 != null ) {
caseItemDto.setHeaders( new ArrayList( list2 ) );
}
List list3 = dto.getParams();
if ( list3 != null ) {
caseItemDto.setParams( new ArrayList( list3 ) );
}
caseItemDto.setAuth( dto.getAuth() );
caseItemDto.setTestAddress( dto.getTestAddress() );
Set set = dto.getLabelIds();
if ( set != null ) {
caseItemDto.setLabelIds( new LinkedHashSet( set ) );
}
return caseItemDto;
}
@Override
public FSCaseDto fsItemFromIeItemDto(CaseItemDto dto) {
if ( dto == null ) {
return null;
}
FSCaseDto fSCaseDto = new FSCaseDto();
fSCaseDto.setName( dto.getName() );
Set set = dto.getLabelIds();
if ( set != null ) {
fSCaseDto.setLabelIds( new LinkedHashSet( set ) );
}
fSCaseDto.setAddress( dto.getAddress() );
List list = dto.getPreRequestScripts();
if ( list != null ) {
fSCaseDto.setPreRequestScripts( new ArrayList( list ) );
}
List list1 = dto.getTestScripts();
if ( list1 != null ) {
fSCaseDto.setTestScripts( new ArrayList( list1 ) );
}
fSCaseDto.setBody( dto.getBody() );
List list2 = dto.getHeaders();
if ( list2 != null ) {
fSCaseDto.setHeaders( new ArrayList( list2 ) );
}
List list3 = dto.getParams();
if ( list3 != null ) {
fSCaseDto.setParams( new ArrayList( list3 ) );
}
fSCaseDto.setAuth( dto.getAuth() );
fSCaseDto.setTestAddress( dto.getTestAddress() );
return fSCaseDto;
}
protected AddressDto addressTypeToAddressDto(AddressType addressType) {
if ( addressType == null ) {
return null;
}
AddressDto addressDto = new AddressDto();
addressDto.setMethod( addressType.getMethod() );
addressDto.setEndpoint( addressType.getEndpoint() );
return addressDto;
}
protected ScriptBlockDto scriptBlockTypeToScriptBlockDto(ScriptBlockType scriptBlockType) {
if ( scriptBlockType == null ) {
return null;
}
ScriptBlockDto scriptBlockDto = new ScriptBlockDto();
scriptBlockDto.setType( scriptBlockType.getType() );
scriptBlockDto.setIcon( scriptBlockType.getIcon() );
scriptBlockDto.setLabel( scriptBlockType.getLabel() );
scriptBlockDto.setValue( scriptBlockType.getValue() );
scriptBlockDto.setDisabled( scriptBlockType.getDisabled() );
scriptBlockDto.setDescription( scriptBlockType.getDescription() );
return scriptBlockDto;
}
protected List scriptBlockTypeListToScriptBlockDtoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( ScriptBlockType scriptBlockType : list ) {
list1.add( scriptBlockTypeToScriptBlockDto( scriptBlockType ) );
}
return list1;
}
protected FormDataDto formDataTypeToFormDataDto(FormDataType formDataType) {
if ( formDataType == null ) {
return null;
}
FormDataDto formDataDto = new FormDataDto();
formDataDto.setKey( formDataType.getKey() );
formDataDto.setValue( formDataType.getValue() );
formDataDto.setType( formDataType.getType() );
return formDataDto;
}
protected List formDataTypeListToFormDataDtoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( FormDataType formDataType : list ) {
list1.add( formDataTypeToFormDataDto( formDataType ) );
}
return list1;
}
protected BodyDto bodyTypeToBodyDto(BodyType bodyType) {
if ( bodyType == null ) {
return null;
}
BodyDto bodyDto = new BodyDto();
bodyDto.setContentType( bodyType.getContentType() );
bodyDto.setBody( bodyType.getBody() );
bodyDto.setFormData( formDataTypeListToFormDataDtoList( bodyType.getFormData() ) );
return bodyDto;
}
protected KeyValuePairDto keyValuePairTypeToKeyValuePairDto(KeyValuePairType keyValuePairType) {
if ( keyValuePairType == null ) {
return null;
}
KeyValuePairDto keyValuePairDto = new KeyValuePairDto();
keyValuePairDto.setKey( keyValuePairType.getKey() );
keyValuePairDto.setValue( keyValuePairType.getValue() );
keyValuePairDto.setActive( keyValuePairType.getActive() );
return keyValuePairDto;
}
protected List keyValuePairTypeListToKeyValuePairDtoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( KeyValuePairType keyValuePairType : list ) {
list1.add( keyValuePairTypeToKeyValuePairDto( keyValuePairType ) );
}
return list1;
}
protected AuthDto authTypeToAuthDto(AuthType authType) {
if ( authType == null ) {
return null;
}
AuthDto authDto = new AuthDto();
authDto.setAuthType( authType.getAuthType() );
authDto.setAuthActive( authType.getAuthActive() );
authDto.setToken( authType.getToken() );
return authDto;
}
protected AddressType addressDtoToAddressType(AddressDto addressDto) {
if ( addressDto == null ) {
return null;
}
AddressType addressType = new AddressType();
addressType.setMethod( addressDto.getMethod() );
addressType.setEndpoint( addressDto.getEndpoint() );
return addressType;
}
protected ScriptBlockType scriptBlockDtoToScriptBlockType(ScriptBlockDto scriptBlockDto) {
if ( scriptBlockDto == null ) {
return null;
}
ScriptBlockType scriptBlockType = new ScriptBlockType();
scriptBlockType.setType( scriptBlockDto.getType() );
scriptBlockType.setIcon( scriptBlockDto.getIcon() );
scriptBlockType.setLabel( scriptBlockDto.getLabel() );
scriptBlockType.setValue( scriptBlockDto.getValue() );
scriptBlockType.setDescription( scriptBlockDto.getDescription() );
scriptBlockType.setDisabled( scriptBlockDto.getDisabled() );
return scriptBlockType;
}
protected List scriptBlockDtoListToScriptBlockTypeList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( ScriptBlockDto scriptBlockDto : list ) {
list1.add( scriptBlockDtoToScriptBlockType( scriptBlockDto ) );
}
return list1;
}
protected FormDataType formDataDtoToFormDataType(FormDataDto formDataDto) {
if ( formDataDto == null ) {
return null;
}
FormDataType formDataType = new FormDataType();
formDataType.setKey( formDataDto.getKey() );
formDataType.setValue( formDataDto.getValue() );
formDataType.setType( formDataDto.getType() );
return formDataType;
}
protected List formDataDtoListToFormDataTypeList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( FormDataDto formDataDto : list ) {
list1.add( formDataDtoToFormDataType( formDataDto ) );
}
return list1;
}
protected BodyType bodyDtoToBodyType(BodyDto bodyDto) {
if ( bodyDto == null ) {
return null;
}
BodyType bodyType = new BodyType();
bodyType.setContentType( bodyDto.getContentType() );
bodyType.setBody( bodyDto.getBody() );
bodyType.setFormData( formDataDtoListToFormDataTypeList( bodyDto.getFormData() ) );
return bodyType;
}
protected KeyValuePairType keyValuePairDtoToKeyValuePairType(KeyValuePairDto keyValuePairDto) {
if ( keyValuePairDto == null ) {
return null;
}
KeyValuePairType keyValuePairType = new KeyValuePairType();
keyValuePairType.setKey( keyValuePairDto.getKey() );
keyValuePairType.setValue( keyValuePairDto.getValue() );
keyValuePairType.setActive( keyValuePairDto.getActive() );
return keyValuePairType;
}
protected List keyValuePairDtoListToKeyValuePairTypeList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( KeyValuePairDto keyValuePairDto : list ) {
list1.add( keyValuePairDtoToKeyValuePairType( keyValuePairDto ) );
}
return list1;
}
protected AuthType authDtoToAuthType(AuthDto authDto) {
if ( authDto == null ) {
return null;
}
AuthType authType = new AuthType();
authType.setAuthType( authDto.getAuthType() );
authType.setAuthActive( authDto.getAuthActive() );
authType.setToken( authDto.getToken() );
return authType;
}
protected AddressDao addressDtoToAddressDao(AddressDto addressDto) {
if ( addressDto == null ) {
return null;
}
AddressDao addressDao = new AddressDao();
addressDao.setMethod( addressDto.getMethod() );
addressDao.setEndpoint( addressDto.getEndpoint() );
return addressDao;
}
protected ScriptBlockDao scriptBlockDtoToScriptBlockDao(ScriptBlockDto scriptBlockDto) {
if ( scriptBlockDto == null ) {
return null;
}
ScriptBlockDao scriptBlockDao = new ScriptBlockDao();
scriptBlockDao.setType( scriptBlockDto.getType() );
scriptBlockDao.setIcon( scriptBlockDto.getIcon() );
scriptBlockDao.setLabel( scriptBlockDto.getLabel() );
scriptBlockDao.setValue( scriptBlockDto.getValue() );
scriptBlockDao.setDescription( scriptBlockDto.getDescription() );
scriptBlockDao.setDisabled( scriptBlockDto.getDisabled() );
return scriptBlockDao;
}
protected List scriptBlockDtoListToScriptBlockDaoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( ScriptBlockDto scriptBlockDto : list ) {
list1.add( scriptBlockDtoToScriptBlockDao( scriptBlockDto ) );
}
return list1;
}
protected FormDataDao formDataDtoToFormDataDao(FormDataDto formDataDto) {
if ( formDataDto == null ) {
return null;
}
FormDataDao formDataDao = new FormDataDao();
formDataDao.setKey( formDataDto.getKey() );
formDataDao.setValue( formDataDto.getValue() );
formDataDao.setType( formDataDto.getType() );
return formDataDao;
}
protected List formDataDtoListToFormDataDaoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( FormDataDto formDataDto : list ) {
list1.add( formDataDtoToFormDataDao( formDataDto ) );
}
return list1;
}
protected BodyDao bodyDtoToBodyDao(BodyDto bodyDto) {
if ( bodyDto == null ) {
return null;
}
BodyDao bodyDao = new BodyDao();
bodyDao.setContentType( bodyDto.getContentType() );
bodyDao.setBody( bodyDto.getBody() );
bodyDao.setFormData( formDataDtoListToFormDataDaoList( bodyDto.getFormData() ) );
return bodyDao;
}
protected KeyValuePairDao keyValuePairDtoToKeyValuePairDao(KeyValuePairDto keyValuePairDto) {
if ( keyValuePairDto == null ) {
return null;
}
KeyValuePairDao keyValuePairDao = new KeyValuePairDao();
keyValuePairDao.setKey( keyValuePairDto.getKey() );
keyValuePairDao.setValue( keyValuePairDto.getValue() );
keyValuePairDao.setActive( keyValuePairDto.getActive() );
return keyValuePairDao;
}
protected List keyValuePairDtoListToKeyValuePairDaoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( KeyValuePairDto keyValuePairDto : list ) {
list1.add( keyValuePairDtoToKeyValuePairDao( keyValuePairDto ) );
}
return list1;
}
protected AuthDao authDtoToAuthDao(AuthDto authDto) {
if ( authDto == null ) {
return null;
}
AuthDao authDao = new AuthDao();
authDao.setAuthType( authDto.getAuthType() );
authDao.setAuthActive( authDto.getAuthActive() );
authDao.setToken( authDto.getToken() );
return authDao;
}
protected AddressDto addressDaoToAddressDto(AddressDao addressDao) {
if ( addressDao == null ) {
return null;
}
AddressDto addressDto = new AddressDto();
addressDto.setMethod( addressDao.getMethod() );
addressDto.setEndpoint( addressDao.getEndpoint() );
return addressDto;
}
protected ScriptBlockDto scriptBlockDaoToScriptBlockDto(ScriptBlockDao scriptBlockDao) {
if ( scriptBlockDao == null ) {
return null;
}
ScriptBlockDto scriptBlockDto = new ScriptBlockDto();
scriptBlockDto.setType( scriptBlockDao.getType() );
scriptBlockDto.setIcon( scriptBlockDao.getIcon() );
scriptBlockDto.setLabel( scriptBlockDao.getLabel() );
scriptBlockDto.setValue( scriptBlockDao.getValue() );
scriptBlockDto.setDisabled( scriptBlockDao.getDisabled() );
scriptBlockDto.setDescription( scriptBlockDao.getDescription() );
return scriptBlockDto;
}
protected List scriptBlockDaoListToScriptBlockDtoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( ScriptBlockDao scriptBlockDao : list ) {
list1.add( scriptBlockDaoToScriptBlockDto( scriptBlockDao ) );
}
return list1;
}
protected FormDataDto formDataDaoToFormDataDto(FormDataDao formDataDao) {
if ( formDataDao == null ) {
return null;
}
FormDataDto formDataDto = new FormDataDto();
formDataDto.setKey( formDataDao.getKey() );
formDataDto.setValue( formDataDao.getValue() );
formDataDto.setType( formDataDao.getType() );
return formDataDto;
}
protected List formDataDaoListToFormDataDtoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( FormDataDao formDataDao : list ) {
list1.add( formDataDaoToFormDataDto( formDataDao ) );
}
return list1;
}
protected BodyDto bodyDaoToBodyDto(BodyDao bodyDao) {
if ( bodyDao == null ) {
return null;
}
BodyDto bodyDto = new BodyDto();
bodyDto.setContentType( bodyDao.getContentType() );
bodyDto.setBody( bodyDao.getBody() );
bodyDto.setFormData( formDataDaoListToFormDataDtoList( bodyDao.getFormData() ) );
return bodyDto;
}
protected KeyValuePairDto keyValuePairDaoToKeyValuePairDto(KeyValuePairDao keyValuePairDao) {
if ( keyValuePairDao == null ) {
return null;
}
KeyValuePairDto keyValuePairDto = new KeyValuePairDto();
keyValuePairDto.setKey( keyValuePairDao.getKey() );
keyValuePairDto.setValue( keyValuePairDao.getValue() );
keyValuePairDto.setActive( keyValuePairDao.getActive() );
return keyValuePairDto;
}
protected List keyValuePairDaoListToKeyValuePairDtoList(List list) {
if ( list == null ) {
return null;
}
List list1 = new ArrayList( list.size() );
for ( KeyValuePairDao keyValuePairDao : list ) {
list1.add( keyValuePairDaoToKeyValuePairDto( keyValuePairDao ) );
}
return list1;
}
protected AuthDto authDaoToAuthDto(AuthDao authDao) {
if ( authDao == null ) {
return null;
}
AuthDto authDto = new AuthDto();
authDto.setAuthType( authDao.getAuthType() );
authDto.setAuthActive( authDao.getAuthActive() );
authDto.setToken( authDao.getToken() );
return authDto;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy