org.damap.base.rest.dmp.mapper.ProjectSupplementDOMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base Show documentation
Show all versions of base Show documentation
A tool for machine actionable DMPs.
package org.damap.base.rest.dmp.mapper;
import lombok.experimental.UtilityClass;
import org.damap.base.domain.Dmp;
import org.damap.base.rest.projects.ProjectSupplementDO;
/** ProjectSupplementDOMapper class. */
@UtilityClass
public class ProjectSupplementDOMapper {
/**
* mapDOtoEntity.
*
* @param projectSupplementDO a {@link org.damap.base.rest.projects.ProjectSupplementDO} object
* @param dmp a {@link org.damap.base.domain.Dmp} object
* @return a {@link org.damap.base.domain.Dmp} object
*/
public Dmp mapDOtoEntity(ProjectSupplementDO projectSupplementDO, Dmp dmp) {
if (projectSupplementDO.getPersonalData() != null) {
dmp.setPersonalData(projectSupplementDO.getPersonalData());
dmp.setPersonalDataCris(projectSupplementDO.getPersonalData());
} else dmp.setPersonalDataCris(null);
if (projectSupplementDO.getSensitiveData() != null) {
dmp.setSensitiveData(projectSupplementDO.getSensitiveData());
dmp.setSensitiveDataCris(projectSupplementDO.getSensitiveData());
} else dmp.setSensitiveDataCris(null);
if (projectSupplementDO.getLegalRestrictions() != null) {
dmp.setLegalRestrictions(projectSupplementDO.getLegalRestrictions());
dmp.setLegalRestrictionsCris(projectSupplementDO.getLegalRestrictions());
} else dmp.setLegalRestrictionsCris(null);
if (projectSupplementDO.getHumanParticipants() != null) {
dmp.setHumanParticipants(projectSupplementDO.getHumanParticipants());
dmp.setHumanParticipantsCris(projectSupplementDO.getHumanParticipants());
} else dmp.setHumanParticipantsCris(null);
if (projectSupplementDO.getEthicalIssuesExist() != null) {
dmp.setEthicalIssuesExist(projectSupplementDO.getEthicalIssuesExist());
dmp.setEthicalIssuesExistCris(projectSupplementDO.getEthicalIssuesExist());
} else dmp.setEthicalIssuesExistCris(null);
if (projectSupplementDO.getCommitteeReviewed() != null) {
dmp.setCommitteeReviewed(projectSupplementDO.getCommitteeReviewed());
dmp.setCommitteeReviewedCris(projectSupplementDO.getCommitteeReviewed());
} else dmp.setCommitteeReviewedCris(null);
if (projectSupplementDO.getCostsExist() != null) {
dmp.setCostsExist(projectSupplementDO.getCostsExist());
dmp.setCostsExistCris(projectSupplementDO.getCostsExist());
} else dmp.setCostsExistCris(null);
return dmp;
}
}