2019-03-01 16:16:21 +01:00
|
|
|
package eu.eudat.models.data.quickwizard;
|
|
|
|
|
|
|
|
|
2019-03-05 12:21:04 +01:00
|
|
|
import eu.eudat.models.data.project.Project;
|
|
|
|
|
2019-03-01 16:16:21 +01:00
|
|
|
import java.util.Date;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
public class ProjectQuickWizardModel {
|
|
|
|
private String label;
|
|
|
|
private String description;
|
2019-03-05 12:21:04 +01:00
|
|
|
private Project existProject;
|
2019-03-01 16:16:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-03-05 12:21:04 +01:00
|
|
|
public Project getExistProject() {
|
|
|
|
return existProject;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setExistProject(Project existProject) {
|
|
|
|
this.existProject = existProject;
|
|
|
|
}
|
|
|
|
|
2019-03-01 16:16:21 +01:00
|
|
|
public eu.eudat.models.data.project.Project toDataProject(){
|
2019-03-05 12:21:04 +01:00
|
|
|
eu.eudat.models.data.project.Project toProject = new eu.eudat.models.data.project.Project();
|
|
|
|
toProject.setAbbreviation("");
|
|
|
|
toProject.setLabel(this.label);
|
|
|
|
toProject.setReference("dmp:" + this.label);
|
|
|
|
toProject.setUri("");
|
|
|
|
toProject.setDefinition("");
|
|
|
|
toProject.setDescription(this.description);
|
|
|
|
return toProject;
|
2019-03-01 16:16:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|