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

org.entando.entando.web.dataobjectmodel.DataModelDtoToRequestConverter Maven / Gradle / Ivy

Go to download

Entando Engine: an agile, modern and user-centric open source Portal platform.

There is a newer version: 6.2.27
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy