39 lines
888 B
Java
39 lines
888 B
Java
package eu.eudat.model.publicapi.datasetprofile;
|
|
|
|
import eu.eudat.data.DescriptionTemplateEntity;
|
|
|
|
import java.util.UUID;
|
|
|
|
public class DatasetProfilePublicModel {
|
|
private UUID id;
|
|
private String label;
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public DatasetProfilePublicModel fromDataModel(DescriptionTemplateEntity entity) {
|
|
this.id = entity.getId();
|
|
this.label = entity.getLabel();
|
|
return this;
|
|
}
|
|
|
|
public DescriptionTemplateEntity toDataModel() {
|
|
DescriptionTemplateEntity entity = new DescriptionTemplateEntity();
|
|
entity.setId(this.getId());
|
|
entity.setLabel(this.getLabel());
|
|
return entity;
|
|
}
|
|
|
|
}
|