add render style, value and multiplicity for dataset fields
This commit is contained in:
parent
a021da2435
commit
e2864d9ff0
|
@ -0,0 +1,49 @@
|
||||||
|
package eu.eudat.depositinterface.enums;
|
||||||
|
|
||||||
|
public enum FieldType {
|
||||||
|
COMBO_BOX("combobox"),
|
||||||
|
BOOLEAN_DECISION("booleanDecision"),
|
||||||
|
RADIO_BOX("radiobox"),
|
||||||
|
INTERNAL_DMP_ENTRIES("internalDmpEntities"),
|
||||||
|
CHECK_BOX("checkBox"),
|
||||||
|
FREE_TEXT("freetext"),
|
||||||
|
TEXT_AREA("textarea"),
|
||||||
|
RICH_TEXT_AREA("richTextarea"),
|
||||||
|
UPLOAD("upload"),
|
||||||
|
TABLE("table"),
|
||||||
|
DATE_PICKER("datePicker"),
|
||||||
|
EXTERNAL_DATASETS("externalDatasets"),
|
||||||
|
DATA_REPOSITORIES("dataRepositories"),
|
||||||
|
JOURNAL_REPOSITORIES("journalRepositories"),
|
||||||
|
PUB_REPOSITORIES("pubRepositories"),
|
||||||
|
LICENSES("licenses"),
|
||||||
|
TAXONOMIES("taxonomies"),
|
||||||
|
PUBLICATIONS("publications"),
|
||||||
|
REGISTRIES("registries"),
|
||||||
|
SERVICES("services"),
|
||||||
|
TAGS("tags"),
|
||||||
|
RESEARCHERS("researchers"),
|
||||||
|
ORGANIZATIONS("organizations"),
|
||||||
|
DATASET_IDENTIFIER("datasetIdentifier"),
|
||||||
|
CURRENCY("currency"),
|
||||||
|
VALIDATION("validation");
|
||||||
|
|
||||||
|
private final String name;
|
||||||
|
|
||||||
|
FieldType(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static FieldType fromName(String name) {
|
||||||
|
for (FieldType fieldType : FieldType.values()) {
|
||||||
|
if (name.equals(fieldType.getName())) {
|
||||||
|
return fieldType;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IllegalArgumentException("View Style Type [" + name + "] is not valid");
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,8 +3,17 @@ package eu.eudat.depositinterface.models;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class DatasetFieldsDepositModel {
|
public class DatasetFieldsDepositModel {
|
||||||
|
private String renderStyleType;
|
||||||
private List<String> schematics;
|
private List<String> schematics;
|
||||||
private String value;
|
private Object value;
|
||||||
|
private boolean multiple;
|
||||||
|
|
||||||
|
public String getRenderStyleType() {
|
||||||
|
return renderStyleType;
|
||||||
|
}
|
||||||
|
public void setRenderStyleType(String renderStyleType) {
|
||||||
|
this.renderStyleType = renderStyleType;
|
||||||
|
}
|
||||||
|
|
||||||
public List<String> getSchematics() {
|
public List<String> getSchematics() {
|
||||||
return schematics;
|
return schematics;
|
||||||
|
@ -13,10 +22,17 @@ public class DatasetFieldsDepositModel {
|
||||||
this.schematics = schematics;
|
this.schematics = schematics;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getValue() {
|
public Object getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
public void setValue(String value) {
|
public void setValue(Object value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isMultiple() {
|
||||||
|
return multiple;
|
||||||
|
}
|
||||||
|
public void setMultiple(boolean multiple) {
|
||||||
|
this.multiple = multiple;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue