org.entando.entando.web.dataobjectmodel.DataModelDtoToRequestConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entando-engine Show documentation
Show all versions of entando-engine Show documentation
Entando Engine: an agile, modern and user-centric open source Portal platform.
package org.entando.entando.web.dataobjectmodel;
import org.entando.entando.aps.system.services.dataobjectmodel.model.DataModelDto;
import org.entando.entando.web.dataobjectmodel.model.DataObjectModelRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Service;
@Service
public class DataModelDtoToRequestConverter implements Converter {
@Override
public DataObjectModelRequest convert(DataModelDto source) {
DataObjectModelRequest request = new DataObjectModelRequest();
request.setModelId(source.getModelId());
request.setModel(source.getModel());
request.setDescr(source.getDescr());
request.setType(source.getType());
request.setStylesheet(source.getStylesheet());
return request;
}
}