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

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

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

import com.arextest.web.model.contract.contracts.appcontract.AddDependencyToSystemRequestType;
import com.arextest.web.model.dao.mongodb.AppContractCollection;
import com.arextest.web.model.dto.AppContractDto;

/*
@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-12-23T06:09:22+0000",
    comments = "version: 1.5.5.Final, compiler: javac, environment: Java 21.0.5 (Eclipse Adoptium)"
)
*/
public class AppContractMapperImpl implements AppContractMapper {

    @Override
    public AppContractCollection daoFromDto(AppContractDto dto) {
        if ( dto == null ) {
            return null;
        }

        AppContractCollection appContractCollection = new AppContractCollection();

        appContractCollection.setId( dto.getId() );
        appContractCollection.setDataChangeCreateTime( dto.getDataChangeCreateTime() );
        appContractCollection.setDataChangeUpdateTime( dto.getDataChangeUpdateTime() );
        appContractCollection.setAppId( dto.getAppId() );
        appContractCollection.setContractType( dto.getContractType() );
        appContractCollection.setOperationId( dto.getOperationId() );
        appContractCollection.setOperationName( dto.getOperationName() );
        appContractCollection.setOperationType( dto.getOperationType() );
        appContractCollection.setContract( dto.getContract() );

        return appContractCollection;
    }

    @Override
    public AppContractDto dtoFromDao(AppContractCollection dao) {
        if ( dao == null ) {
            return null;
        }

        AppContractDto appContractDto = new AppContractDto();

        appContractDto.setId( dao.getId() );
        appContractDto.setDataChangeCreateTime( dao.getDataChangeCreateTime() );
        appContractDto.setDataChangeUpdateTime( dao.getDataChangeUpdateTime() );
        appContractDto.setAppId( dao.getAppId() );
        appContractDto.setContractType( dao.getContractType() );
        appContractDto.setOperationId( dao.getOperationId() );
        appContractDto.setOperationName( dao.getOperationName() );
        appContractDto.setOperationType( dao.getOperationType() );
        appContractDto.setContract( dao.getContract() );

        return appContractDto;
    }

    @Override
    public AppContractDto dtoFromContract(AddDependencyToSystemRequestType request) {
        if ( request == null ) {
            return null;
        }

        AppContractDto appContractDto = new AppContractDto();

        appContractDto.setAppId( request.getAppId() );
        appContractDto.setOperationId( request.getOperationId() );
        appContractDto.setOperationName( request.getOperationName() );
        appContractDto.setOperationType( request.getOperationType() );

        return appContractDto;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy