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

com.arextest.web.model.mapper.ManualReportPlanMapperImpl Maven / Gradle / Ivy

The newest version!
package com.arextest.web.model.mapper;

import com.arextest.web.model.contract.contracts.manualreport.InitManualReportRequestType;
import com.arextest.web.model.dao.mongodb.ManualReportPlanCollection;
import com.arextest.web.model.dto.manualreport.ManualReportPlanDto;

/*
@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 ManualReportPlanMapperImpl implements ManualReportPlanMapper {

    @Override
    public ManualReportPlanDto dtoFromDao(ManualReportPlanCollection dao) {
        if ( dao == null ) {
            return null;
        }

        ManualReportPlanDto manualReportPlanDto = new ManualReportPlanDto();

        manualReportPlanDto.setId( dao.getId() );
        manualReportPlanDto.setReportName( dao.getReportName() );
        manualReportPlanDto.setOperator( dao.getOperator() );

        return manualReportPlanDto;
    }

    @Override
    public ManualReportPlanCollection daoFromDto(ManualReportPlanDto dto) {
        if ( dto == null ) {
            return null;
        }

        ManualReportPlanCollection manualReportPlanCollection = new ManualReportPlanCollection();

        manualReportPlanCollection.setId( dto.getId() );
        manualReportPlanCollection.setReportName( dto.getReportName() );
        manualReportPlanCollection.setOperator( dto.getOperator() );

        return manualReportPlanCollection;
    }

    @Override
    public ManualReportPlanDto dtoFromContract(InitManualReportRequestType request) {
        if ( request == null ) {
            return null;
        }

        ManualReportPlanDto manualReportPlanDto = new ManualReportPlanDto();

        manualReportPlanDto.setReportName( request.getReportName() );
        manualReportPlanDto.setOperator( request.getOperator() );

        return manualReportPlanDto;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy