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

cn.ponfee.disjob.supervisor.application.converter.SchedGroupConverterImpl Maven / Gradle / Ivy

The newest version!
package cn.ponfee.disjob.supervisor.application.converter;

import cn.ponfee.disjob.supervisor.application.request.SchedGroupAddRequest;
import cn.ponfee.disjob.supervisor.application.request.SchedGroupUpdateRequest;
import cn.ponfee.disjob.supervisor.application.response.SchedGroupResponse;
import cn.ponfee.disjob.supervisor.model.SchedGroup;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-11-24T15:48:11+0800",
    comments = "version: 1.6.2, compiler: javac, environment: Java 1.8.0_312 (Azul Systems, Inc.)"
)
public class SchedGroupConverterImpl implements SchedGroupConverter {

    @Override
    public SchedGroupResponse convert(SchedGroup source) {
        if ( source == null ) {
            return null;
        }

        SchedGroupResponse schedGroupResponse = new SchedGroupResponse();

        schedGroupResponse.setGroup( source.getGroup() );
        schedGroupResponse.setSupervisorToken( source.getSupervisorToken() );
        schedGroupResponse.setWorkerToken( source.getWorkerToken() );
        schedGroupResponse.setUserToken( source.getUserToken() );
        schedGroupResponse.setOwnUser( source.getOwnUser() );
        schedGroupResponse.setAlarmUsers( source.getAlarmUsers() );
        schedGroupResponse.setDevUsers( source.getDevUsers() );
        schedGroupResponse.setWorkerContextPath( source.getWorkerContextPath() );
        schedGroupResponse.setWebHook( source.getWebHook() );
        schedGroupResponse.setVersion( source.getVersion() );
        schedGroupResponse.setUpdatedAt( source.getUpdatedAt() );
        schedGroupResponse.setCreatedAt( source.getCreatedAt() );
        schedGroupResponse.setUpdatedBy( source.getUpdatedBy() );
        schedGroupResponse.setCreatedBy( source.getCreatedBy() );

        return schedGroupResponse;
    }

    @Override
    public SchedGroup convert(SchedGroupAddRequest source) {
        if ( source == null ) {
            return null;
        }

        SchedGroup schedGroup = new SchedGroup();

        schedGroup.setGroup( source.getGroup() );
        schedGroup.setOwnUser( source.getOwnUser() );
        schedGroup.setCreatedBy( source.getCreatedBy() );

        return schedGroup;
    }

    @Override
    public SchedGroup convert(SchedGroupUpdateRequest source) {
        if ( source == null ) {
            return null;
        }

        SchedGroup schedGroup = new SchedGroup();

        schedGroup.setGroup( source.getGroup() );
        schedGroup.setOwnUser( source.getOwnUser() );
        schedGroup.setDevUsers( source.getDevUsers() );
        schedGroup.setAlarmUsers( source.getAlarmUsers() );
        schedGroup.setWorkerContextPath( source.getWorkerContextPath() );
        schedGroup.setWebHook( source.getWebHook() );
        schedGroup.setVersion( source.getVersion() );
        schedGroup.setUpdatedBy( source.getUpdatedBy() );

        return schedGroup;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy