2017-12-15 00:01:26 +01:00
|
|
|
package eu.eudat.models.admin.composite;
|
2017-11-27 14:40:16 +01:00
|
|
|
|
2017-12-15 00:01:26 +01:00
|
|
|
import eu.eudat.utilities.builders.ModelBuilder;
|
|
|
|
import eu.eudat.utilities.helpers.ModelBuilderCollector;
|
2017-11-30 11:10:42 +01:00
|
|
|
|
2017-11-27 14:40:16 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2017-12-15 00:01:26 +01:00
|
|
|
import eu.eudat.models.admin.components.datasetprofile.*;
|
2017-12-01 15:09:46 +01:00
|
|
|
|
2017-11-27 14:40:16 +01:00
|
|
|
public class DatasetProfile {
|
2017-12-05 17:56:21 +01:00
|
|
|
private String label;
|
2017-11-27 14:40:16 +01:00
|
|
|
private List<Section> sections;
|
2018-01-19 10:31:05 +01:00
|
|
|
private List<Page> pages;
|
2017-11-27 14:40:16 +01:00
|
|
|
public List<Section> getSections() {
|
|
|
|
return sections;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSections(List<Section> sections) {
|
|
|
|
this.sections = sections;
|
2017-12-05 17:56:21 +01:00
|
|
|
}
|
2017-11-30 11:10:42 +01:00
|
|
|
|
2017-12-05 17:56:21 +01:00
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
|
|
|
|
2018-01-19 10:31:05 +01:00
|
|
|
public List<Page> getPages() {
|
|
|
|
return pages;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPages(List<Page> pages) {
|
|
|
|
this.pages = pages;
|
|
|
|
}
|
2018-01-19 12:11:22 +01:00
|
|
|
|
|
|
|
public void buildProfile(eu.eudat.entities.xmlmodels.datasetprofiledefinition.ViewStyleModel viewStyle){
|
|
|
|
this.sections = new ModelBuilder().fromViewStyleDefinition(viewStyle.getSections(), Section.class);
|
|
|
|
this.pages = new ModelBuilder().fromViewStyleDefinition(viewStyle.getPages(), Page.class);
|
|
|
|
}
|
2017-11-27 14:40:16 +01:00
|
|
|
}
|