com.arextest.web.model.mapper.WorkspaceMapperImpl Maven / Gradle / Ivy
package com.arextest.web.model.mapper;
import com.arextest.web.model.contract.contracts.filesystem.WorkspaceType;
import com.arextest.web.model.dto.WorkspaceDto;
import java.util.ArrayList;
import java.util.List;
/*
@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 WorkspaceMapperImpl implements WorkspaceMapper {
@Override
public List contractFromDtoList(List dtos) {
if ( dtos == null ) {
return null;
}
List list = new ArrayList( dtos.size() );
for ( WorkspaceDto workspaceDto : dtos ) {
list.add( workspaceDtoToWorkspaceType( workspaceDto ) );
}
return list;
}
protected WorkspaceType workspaceDtoToWorkspaceType(WorkspaceDto workspaceDto) {
if ( workspaceDto == null ) {
return null;
}
WorkspaceType workspaceType = new WorkspaceType();
workspaceType.setId( workspaceDto.getId() );
workspaceType.setWorkspaceName( workspaceDto.getWorkspaceName() );
workspaceType.setRole( workspaceDto.getRole() );
return workspaceType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy