use common models
This commit is contained in:
parent
e09810252c
commit
1943b09276
5
pom.xml
5
pom.xml
|
@ -19,6 +19,11 @@
|
|||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>gr.cite.opendmp</groupId>
|
||||
<artifactId>common-models</artifactId>
|
||||
<version>0.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum ContactInfoType implements DatabaseEnum<Short> {
|
||||
|
||||
Email((short) 0);
|
||||
|
||||
private final Short value;
|
||||
|
||||
ContactInfoType(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, ContactInfoType> map = EnumUtils.getEnumValueMap(ContactInfoType.class);
|
||||
|
||||
public static ContactInfoType of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public interface DatabaseEnum<T> {
|
||||
@JsonValue
|
||||
T getValue();
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DescriptionStatus implements DatabaseEnum<Short> {
|
||||
|
||||
Draft((short) 0),
|
||||
Finalized((short) 1),
|
||||
Canceled((short) 2);
|
||||
|
||||
private final Short value;
|
||||
|
||||
DescriptionStatus(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DescriptionStatus> map = EnumUtils.getEnumValueMap(DescriptionStatus.class);
|
||||
|
||||
public static DescriptionStatus of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DmpAccessType implements DatabaseEnum<Short> {
|
||||
|
||||
Public((short) 0), Restricted((short) 1);
|
||||
|
||||
private final Short value;
|
||||
|
||||
DmpAccessType(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DmpAccessType> map = EnumUtils.getEnumValueMap(DmpAccessType.class);
|
||||
|
||||
public static DmpAccessType of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import eu.eudat.file.transformer.enums.DmpVersionStatus;
|
||||
import eu.eudat.file.transformer.enums.EnumUtils;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DmpBlueprintExtraFieldDataType implements DatabaseEnum<Short> {
|
||||
|
||||
Text((short) 0),
|
||||
RichTex((short) 1),
|
||||
Date((short) 2),
|
||||
Number((short) 3),
|
||||
;
|
||||
|
||||
private final Short value;
|
||||
|
||||
DmpBlueprintExtraFieldDataType(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DmpBlueprintExtraFieldDataType> map = EnumUtils.getEnumValueMap(DmpBlueprintExtraFieldDataType.class);
|
||||
|
||||
public static DmpBlueprintExtraFieldDataType of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DmpBlueprintFieldCategory implements DatabaseEnum<Short> {
|
||||
System((short)0),
|
||||
Extra((short)1);
|
||||
|
||||
private final Short value;
|
||||
|
||||
DmpBlueprintFieldCategory(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DmpBlueprintFieldCategory> map = EnumUtils.getEnumValueMap(DmpBlueprintFieldCategory.class);
|
||||
|
||||
public static DmpBlueprintFieldCategory of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DmpBlueprintSystemFieldType implements DatabaseEnum<Short> {
|
||||
|
||||
Text((short)0),
|
||||
HtmlText((short)1),
|
||||
Researchers((short)2),
|
||||
Organizations((short)3),
|
||||
Language((short)4),
|
||||
Contact((short)5),
|
||||
Funder((short)6),
|
||||
Grant((short)7),
|
||||
Project((short)8),
|
||||
License((short)9),
|
||||
AccessRights((short)10);
|
||||
private final Short value;
|
||||
|
||||
DmpBlueprintSystemFieldType(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DmpBlueprintSystemFieldType> map = EnumUtils.getEnumValueMap(DmpBlueprintSystemFieldType.class);
|
||||
|
||||
public static DmpBlueprintSystemFieldType of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DmpStatus implements DatabaseEnum<Short> {
|
||||
|
||||
Draft((short) 0), Finalized((short) 1);
|
||||
|
||||
private final Short value;
|
||||
|
||||
DmpStatus(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DmpStatus> map = EnumUtils.getEnumValueMap(DmpStatus.class);
|
||||
|
||||
public static DmpStatus of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DmpUserRole implements DatabaseEnum<Short> {
|
||||
|
||||
Owner((short) 0), User((short) 1);
|
||||
|
||||
private final Short value;
|
||||
|
||||
DmpUserRole(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DmpUserRole> map = EnumUtils.getEnumValueMap(DmpUserRole.class);
|
||||
|
||||
public static DmpUserRole of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum DmpVersionStatus implements DatabaseEnum<Short> {
|
||||
|
||||
Current((short) 0), Previous ((short) 1);
|
||||
|
||||
private final Short value;
|
||||
|
||||
DmpVersionStatus(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, DmpVersionStatus> map = EnumUtils.getEnumValueMap(DmpVersionStatus.class);
|
||||
|
||||
public static DmpVersionStatus of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class EnumUtils {
|
||||
public static <EnumType extends Enum<EnumType> & DatabaseEnum<EnumValue>, EnumValue> Map<EnumValue, EnumType> getEnumValueMap(Class<EnumType> enumType){
|
||||
HashMap<EnumValue, EnumType> map = new HashMap<>();
|
||||
for (EnumType v : enumType.getEnumConstants()) {
|
||||
map.put(v.getValue(), v);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum FieldDataExternalDatasetType implements DatabaseEnum<String> {
|
||||
ReusedDataset("reused_dataset"),
|
||||
ProducedDataset("produced_dataset"),
|
||||
Other("other");
|
||||
private final String value;
|
||||
|
||||
FieldDataExternalDatasetType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<String, FieldDataExternalDatasetType> map = EnumUtils.getEnumValueMap(FieldDataExternalDatasetType.class);
|
||||
|
||||
public static FieldDataExternalDatasetType of(String i) {
|
||||
return map.get(i);
|
||||
}
|
||||
}
|
|
@ -1,83 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum FieldType implements DatabaseEnum<String> {
|
||||
EXTERNAL_SELECT(Names.ExternalSelect),
|
||||
SELECT(Names.Select),
|
||||
BOOLEAN_DECISION(Names.BooleanDecision),
|
||||
RADIO_BOX(Names.RadioBox),
|
||||
INTERNAL_DMP_ENTRIES_RESEARCHERS(Names.InternalDmpResearchers),
|
||||
INTERNAL_DMP_ENTRIES_DMPS(Names.InternalDmpDmps),
|
||||
INTERNAL_DMP_ENTRIES_DATASETS(Names.InternalDmpDatasets),
|
||||
CHECK_BOX(Names.CheckBox),
|
||||
FREE_TEXT(Names.FreeText),
|
||||
TEXT_AREA(Names.TextArea),
|
||||
RICH_TEXT_AREA(Names.RichTextarea),
|
||||
UPLOAD(Names.Upload),
|
||||
DATE_PICKER(Names.DatePicker),
|
||||
EXTERNAL_DATASETS(Names.ExternalDatasets),
|
||||
DATA_REPOSITORIES(Names.DataRepositories),
|
||||
JOURNAL_REPOSITORIES(Names.JournalRepositories),
|
||||
PUB_REPOSITORIES(Names.PubRepositories),
|
||||
LICENSES(Names.Licenses),
|
||||
TAXONOMIES(Names.Taxonomies),
|
||||
PUBLICATIONS(Names.Publications),
|
||||
REGISTRIES(Names.Registries),
|
||||
SERVICES(Names.Services),
|
||||
TAGS(Names.Tags),
|
||||
RESEARCHERS(Names.Researchers),
|
||||
ORGANIZATIONS(Names.Organizations),
|
||||
DATASET_IDENTIFIER(Names.DatasetIdentifier),
|
||||
CURRENCY(Names.Currency),
|
||||
VALIDATION(Names.Validation);
|
||||
private final String value;
|
||||
|
||||
public static class Names {
|
||||
public static final String ExternalSelect = "externalSelect";
|
||||
public static final String Select = "select";
|
||||
public static final String BooleanDecision = "booleanDecision";
|
||||
public static final String RadioBox = "radiobox";
|
||||
public static final String InternalDmpResearchers = "internalDmpResearchers";
|
||||
public static final String InternalDmpDmps = "internalDmpDmps";
|
||||
public static final String InternalDmpDatasets = "internalDmpDatasets";
|
||||
public static final String CheckBox = "checkBox";
|
||||
public static final String FreeText = "freetext";
|
||||
public static final String TextArea = "textarea";
|
||||
public static final String RichTextarea = "richTextarea";
|
||||
public static final String Upload = "upload";
|
||||
public static final String DatePicker = "datePicker";
|
||||
public static final String ExternalDatasets = "externalDatasets";
|
||||
public static final String DataRepositories = "dataRepositories";
|
||||
public static final String JournalRepositories = "journalRepositories";
|
||||
public static final String PubRepositories = "pubRepositories";
|
||||
public static final String Licenses = "licenses";
|
||||
public static final String Taxonomies = "taxonomies";
|
||||
public static final String Publications = "publications";
|
||||
public static final String Registries = "registries";
|
||||
public static final String Services = "services";
|
||||
public static final String Tags = "tags";
|
||||
public static final String Researchers = "researchers";
|
||||
public static final String Organizations = "organizations";
|
||||
public static final String DatasetIdentifier = "datasetIdentifier";
|
||||
public static final String Currency = "currency";
|
||||
public static final String Validation = "validation";
|
||||
}
|
||||
|
||||
FieldType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<String, FieldType> map = EnumUtils.getEnumValueMap(FieldType.class);
|
||||
|
||||
public static FieldType of(String i) {
|
||||
return map.get(i);
|
||||
}
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum FieldValidationType implements DatabaseEnum<Short> {
|
||||
|
||||
None((short) 0),
|
||||
Required((short) 1),
|
||||
Url((short) 2);
|
||||
|
||||
private final Short value;
|
||||
|
||||
FieldValidationType(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, FieldValidationType> map = EnumUtils.getEnumValueMap(FieldValidationType.class);
|
||||
|
||||
public static FieldValidationType of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum ReferenceSourceType implements DatabaseEnum<Short> {
|
||||
|
||||
Internal((short) 0),
|
||||
External((short) 1);
|
||||
|
||||
private final Short value;
|
||||
|
||||
ReferenceSourceType(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, ReferenceSourceType> map = EnumUtils.getEnumValueMap(ReferenceSourceType.class);
|
||||
|
||||
public static ReferenceSourceType of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package eu.eudat.file.transformer.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public enum ReferenceType implements DatabaseEnum<Short> {
|
||||
Taxonomies((short) 0),
|
||||
Licenses((short) 1),
|
||||
Publications((short) 2),
|
||||
Journals((short) 3),
|
||||
PubRepositories((short) 4),
|
||||
DataRepositories((short) 5),
|
||||
Registries((short) 6),
|
||||
Services((short) 7),
|
||||
Project((short) 8),
|
||||
Funder((short) 9),
|
||||
Datasets((short) 10),
|
||||
Organizations((short) 11),
|
||||
Grants((short) 12),
|
||||
Researcher((short) 13);
|
||||
private final Short value;
|
||||
|
||||
ReferenceType(Short value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Short getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
private static final Map<Short, ReferenceType> map = EnumUtils.getEnumValueMap(ReferenceType.class);
|
||||
|
||||
public static ReferenceType of(Short i) {
|
||||
return map.get(i);
|
||||
}
|
||||
}
|
|
@ -1,8 +1,9 @@
|
|||
package eu.eudat.file.transformer.interfaces;
|
||||
|
||||
import eu.eudat.file.transformer.models.description.DescriptionFileTransformerModel;
|
||||
import eu.eudat.file.transformer.models.dmp.DmpFileTransformerModel;
|
||||
import eu.eudat.file.transformer.models.misc.FileEnvelope;
|
||||
import com.sun.jdi.InvalidTypeException;
|
||||
import eu.eudat.commonmodels.models.dmp.DmpModel;
|
||||
import eu.eudat.commonmodels.models.FileEnvelopeModel;
|
||||
import eu.eudat.commonmodels.models.description.DescriptionModel;
|
||||
|
||||
import javax.management.InvalidApplicationException;
|
||||
import java.io.IOException;
|
||||
|
@ -22,11 +23,11 @@ public interface FileTransformerClient {
|
|||
* @return a string representing the persistent digital object identifier (DOI)
|
||||
* @throws Exception if an error occurs while trying to deposit the dmp
|
||||
*/
|
||||
FileEnvelope exportDmp(DmpFileTransformerModel dmp) throws InvalidApplicationException, IOException;
|
||||
DmpFileTransformerModel importDmp(FileEnvelope file);
|
||||
FileEnvelopeModel exportDmp(DmpModel dmp, String variant) throws InvalidApplicationException, IOException, InvalidTypeException;
|
||||
DmpModel importDmp(FileEnvelopeModel file);
|
||||
|
||||
FileEnvelope exportDescription(DescriptionFileTransformerModel descriptionFileTransformerModel, String format) throws InvalidApplicationException, IOException;
|
||||
DescriptionFileTransformerModel importDescription(FileEnvelope file);
|
||||
FileEnvelopeModel exportDescription(DescriptionModel descriptionFileTransformerModel, String format) throws InvalidApplicationException, IOException;
|
||||
DescriptionModel importDescription(FileEnvelopeModel file);
|
||||
|
||||
FileTransformerConfiguration getConfiguration();
|
||||
|
||||
|
|
|
@ -10,6 +10,14 @@ public class FileTransformerConfiguration {
|
|||
private String fileTransformerId;
|
||||
private List<FileFormat> exportVariants;
|
||||
private List<FileFormat> importVariants;
|
||||
private String organizationReferenceCode;
|
||||
private String grantReferenceCode;
|
||||
private String funderReferenceCode;
|
||||
private String researcherReferenceCode;
|
||||
private String licenceReferenceCode;
|
||||
private String projectReferenceCode;
|
||||
private String datasetReferenceCode;
|
||||
private String publicationReferenceCode;
|
||||
|
||||
public String getFileTransformerId() {
|
||||
return fileTransformerId;
|
||||
|
@ -34,4 +42,68 @@ public class FileTransformerConfiguration {
|
|||
public void setImportVariants(List<FileFormat> importVariants) {
|
||||
this.importVariants = importVariants;
|
||||
}
|
||||
|
||||
public String getOrganizationReferenceCode() {
|
||||
return organizationReferenceCode;
|
||||
}
|
||||
|
||||
public void setOrganizationReferenceCode(String organizationReferenceCode) {
|
||||
this.organizationReferenceCode = organizationReferenceCode;
|
||||
}
|
||||
|
||||
public String getGrantReferenceCode() {
|
||||
return grantReferenceCode;
|
||||
}
|
||||
|
||||
public void setGrantReferenceCode(String grantReferenceCode) {
|
||||
this.grantReferenceCode = grantReferenceCode;
|
||||
}
|
||||
|
||||
public String getFunderReferenceCode() {
|
||||
return funderReferenceCode;
|
||||
}
|
||||
|
||||
public void setFunderReferenceCode(String funderReferenceCode) {
|
||||
this.funderReferenceCode = funderReferenceCode;
|
||||
}
|
||||
|
||||
public String getResearcherReferenceCode() {
|
||||
return researcherReferenceCode;
|
||||
}
|
||||
|
||||
public void setResearcherReferenceCode(String researcherReferenceCode) {
|
||||
this.researcherReferenceCode = researcherReferenceCode;
|
||||
}
|
||||
|
||||
public String getLicenceReferenceCode() {
|
||||
return licenceReferenceCode;
|
||||
}
|
||||
|
||||
public void setLicenceReferenceCode(String licenceReferenceCode) {
|
||||
this.licenceReferenceCode = licenceReferenceCode;
|
||||
}
|
||||
|
||||
public String getProjectReferenceCode() {
|
||||
return projectReferenceCode;
|
||||
}
|
||||
|
||||
public void setProjectReferenceCode(String projectReferenceCode) {
|
||||
this.projectReferenceCode = projectReferenceCode;
|
||||
}
|
||||
|
||||
public String getDatasetReferenceCode() {
|
||||
return datasetReferenceCode;
|
||||
}
|
||||
|
||||
public void setDatasetReferenceCode(String datasetReferenceCode) {
|
||||
this.datasetReferenceCode = datasetReferenceCode;
|
||||
}
|
||||
|
||||
public String getPublicationReferenceCode() {
|
||||
return publicationReferenceCode;
|
||||
}
|
||||
|
||||
public void setPublicationReferenceCode(String publicationReferenceCode) {
|
||||
this.publicationReferenceCode = publicationReferenceCode;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,132 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.description;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.enums.DescriptionStatus;
|
||||
import eu.eudat.file.transformer.models.descriptiontemplate.DescriptionTemplateFileTransformerModel;
|
||||
import eu.eudat.file.transformer.models.dmp.DmpFileTransformerModel;
|
||||
import eu.eudat.file.transformer.models.user.UserFileTransformerModel;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DescriptionFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private String label;
|
||||
private String description;
|
||||
private DescriptionStatus status;
|
||||
private UserFileTransformerModel createdBy;
|
||||
private Instant createdAt;
|
||||
private Instant updatedAt;
|
||||
private Instant finalizedAt;
|
||||
private List<DescriptionReferenceFileTransformerModel> descriptionReferenceFileTransformerModels;
|
||||
private List<DescriptionTagFileTransformerModel> descriptionTagFileTransformerModels;
|
||||
private UUID sectionId;
|
||||
private DescriptionTemplateFileTransformerModel descriptionTemplate;
|
||||
private DmpFileTransformerModel dmp;
|
||||
|
||||
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 String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public DescriptionStatus getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(DescriptionStatus status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public UserFileTransformerModel getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(UserFileTransformerModel createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getFinalizedAt() {
|
||||
return finalizedAt;
|
||||
}
|
||||
|
||||
public void setFinalizedAt(Instant finalizedAt) {
|
||||
this.finalizedAt = finalizedAt;
|
||||
}
|
||||
|
||||
public List<DescriptionReferenceFileTransformerModel> getDescriptionReferenceFileTransformerModels() {
|
||||
return descriptionReferenceFileTransformerModels;
|
||||
}
|
||||
|
||||
public void setDescriptionReferenceFileTransformerModels(List<DescriptionReferenceFileTransformerModel> descriptionReferenceFileTransformerModels) {
|
||||
this.descriptionReferenceFileTransformerModels = descriptionReferenceFileTransformerModels;
|
||||
}
|
||||
|
||||
public List<DescriptionTagFileTransformerModel> getDescriptionTagFileTransformerModels() {
|
||||
return descriptionTagFileTransformerModels;
|
||||
}
|
||||
|
||||
public void setDescriptionTagFileTransformerModels(List<DescriptionTagFileTransformerModel> descriptionTagFileTransformerModels) {
|
||||
this.descriptionTagFileTransformerModels = descriptionTagFileTransformerModels;
|
||||
}
|
||||
|
||||
public UUID getSectionId() {
|
||||
return sectionId;
|
||||
}
|
||||
|
||||
public void setSectionId(UUID sectionId) {
|
||||
this.sectionId = sectionId;
|
||||
}
|
||||
|
||||
public DescriptionTemplateFileTransformerModel getDescriptionTemplate() {
|
||||
return descriptionTemplate;
|
||||
}
|
||||
|
||||
public void setDescriptionTemplate(DescriptionTemplateFileTransformerModel descriptionTemplate) {
|
||||
this.descriptionTemplate = descriptionTemplate;
|
||||
}
|
||||
|
||||
public DmpFileTransformerModel getDmp() {
|
||||
return dmp;
|
||||
}
|
||||
|
||||
public void setDmp(DmpFileTransformerModel dmp) {
|
||||
this.dmp = dmp;
|
||||
}
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.description;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.models.reference.ReferenceFileTransformerModel;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DescriptionReferenceFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
|
||||
private ReferenceFileTransformerModel reference;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ReferenceFileTransformerModel getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
public void setReference(ReferenceFileTransformerModel reference) {
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.description;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.models.tag.TagFileTransformerModel;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DescriptionTagFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private TagFileTransformerModel tagFileTransformerModel;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public TagFileTransformerModel getTagFileTransformerModel() {
|
||||
return tagFileTransformerModel;
|
||||
}
|
||||
|
||||
public void setTagFileTransformerModel(TagFileTransformerModel tagFileTransformerModel) {
|
||||
this.tagFileTransformerModel = tagFileTransformerModel;
|
||||
}
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.models.descriptiontemplate.definition.DefinitionFileTransformerModel;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DescriptionTemplateFileTransformerModel {
|
||||
private UUID id;
|
||||
private String label;
|
||||
private String description;
|
||||
private Short version;
|
||||
private String language;
|
||||
private DescriptionTemplateTypeFileTransformerModel type;
|
||||
private DefinitionFileTransformerModel definition;
|
||||
|
||||
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 String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Short getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Short version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
public DescriptionTemplateTypeFileTransformerModel getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(DescriptionTemplateTypeFileTransformerModel type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public DefinitionFileTransformerModel getDefinition() {
|
||||
return definition;
|
||||
}
|
||||
|
||||
public void setDefinition(DefinitionFileTransformerModel definition) {
|
||||
this.definition = definition;
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DescriptionTemplateTypeFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private String name;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class DefinitionFileTransformerModel {
|
||||
|
||||
private List<PageFileTransformerModel> pages;
|
||||
|
||||
public List<PageFileTransformerModel> getPages() {
|
||||
return pages;
|
||||
}
|
||||
|
||||
public void setPages(List<PageFileTransformerModel> pages) {
|
||||
this.pages = pages;
|
||||
}
|
||||
}
|
|
@ -1,91 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition;
|
||||
|
||||
import eu.eudat.file.transformer.enums.FieldValidationType;
|
||||
import eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata.BaseFieldDataFileTransformerModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class FieldFileTransformerModel {
|
||||
|
||||
private String id;
|
||||
private Integer ordinal;
|
||||
private String numbering; //TODO maybe remove
|
||||
private List<String> schematics;
|
||||
private String defaultValue;
|
||||
private List<RuleFileTransformerModel> visibilityRules;
|
||||
private List<FieldValidationType> validations;
|
||||
private Boolean includeInExport;
|
||||
private BaseFieldDataFileTransformerModel data;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getOrdinal() {
|
||||
return ordinal;
|
||||
}
|
||||
|
||||
public void setOrdinal(Integer ordinal) {
|
||||
this.ordinal = ordinal;
|
||||
}
|
||||
|
||||
public String getNumbering() {
|
||||
return numbering;
|
||||
}
|
||||
|
||||
public void setNumbering(String numbering) {
|
||||
this.numbering = numbering;
|
||||
}
|
||||
|
||||
public List<String> getSchematics() {
|
||||
return schematics;
|
||||
}
|
||||
|
||||
public void setSchematics(List<String> schematics) {
|
||||
this.schematics = schematics;
|
||||
}
|
||||
|
||||
public String getDefaultValue() {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public void setDefaultValue(String defaultValue) {
|
||||
this.defaultValue = defaultValue;
|
||||
}
|
||||
|
||||
public List<RuleFileTransformerModel> getVisibilityRules() {
|
||||
return visibilityRules;
|
||||
}
|
||||
|
||||
public void setVisibilityRules(List<RuleFileTransformerModel> visibilityRuleFileTransformerModels) {
|
||||
this.visibilityRules = visibilityRuleFileTransformerModels;
|
||||
}
|
||||
|
||||
public List<FieldValidationType> getValidations() {
|
||||
return validations;
|
||||
}
|
||||
|
||||
public void setValidations(List<FieldValidationType> validations) {
|
||||
this.validations = validations;
|
||||
}
|
||||
|
||||
public Boolean getIncludeInExport() {
|
||||
return includeInExport;
|
||||
}
|
||||
|
||||
public void setIncludeInExport(Boolean includeInExport) {
|
||||
this.includeInExport = includeInExport;
|
||||
}
|
||||
|
||||
public BaseFieldDataFileTransformerModel getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(BaseFieldDataFileTransformerModel data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
|
@ -1,97 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class FieldSetFileTransformerModel {
|
||||
|
||||
private String id;
|
||||
private Integer ordinal;
|
||||
private String numbering;
|
||||
private String title;
|
||||
private String description;
|
||||
private String extendedDescription;
|
||||
private String additionalInformation;
|
||||
private MultiplicityFileTransformerModel multiplicity;
|
||||
private Boolean hasCommentField;
|
||||
private List<FieldFileTransformerModel> fields;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getOrdinal() {
|
||||
return ordinal;
|
||||
}
|
||||
|
||||
public void setOrdinal(Integer ordinal) {
|
||||
this.ordinal = ordinal;
|
||||
}
|
||||
|
||||
public String getNumbering() {
|
||||
return numbering;
|
||||
}
|
||||
|
||||
public void setNumbering(String numbering) {
|
||||
this.numbering = numbering;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getExtendedDescription() {
|
||||
return extendedDescription;
|
||||
}
|
||||
|
||||
public void setExtendedDescription(String extendedDescription) {
|
||||
this.extendedDescription = extendedDescription;
|
||||
}
|
||||
|
||||
public String getAdditionalInformation() {
|
||||
return additionalInformation;
|
||||
}
|
||||
|
||||
public void setAdditionalInformation(String additionalInformation) {
|
||||
this.additionalInformation = additionalInformation;
|
||||
}
|
||||
|
||||
public MultiplicityFileTransformerModel getMultiplicity() {
|
||||
return multiplicity;
|
||||
}
|
||||
|
||||
public void setMultiplicity(MultiplicityFileTransformerModel multiplicityFileTransformerModel) {
|
||||
this.multiplicity = multiplicityFileTransformerModel;
|
||||
}
|
||||
|
||||
public Boolean getHasCommentField() {
|
||||
return hasCommentField;
|
||||
}
|
||||
|
||||
public void setHasCommentField(Boolean hasCommentField) {
|
||||
this.hasCommentField = hasCommentField;
|
||||
}
|
||||
|
||||
public List<FieldFileTransformerModel> getFields() {
|
||||
return fields;
|
||||
}
|
||||
|
||||
public void setFields(List<FieldFileTransformerModel> fieldFileTransformerModels) {
|
||||
this.fields = fieldFileTransformerModels;
|
||||
}
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition;
|
||||
|
||||
public abstract class MultiplicityFileTransformerModel {
|
||||
|
||||
private Integer min;
|
||||
private Integer max;
|
||||
private String placeholder;
|
||||
private Boolean tableView;
|
||||
|
||||
public Integer getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
public void setMin(Integer min) {
|
||||
this.min = min;
|
||||
}
|
||||
|
||||
public Integer getMax() {
|
||||
return max;
|
||||
}
|
||||
|
||||
public void setMax(Integer max) {
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
public String getPlaceholder() {
|
||||
return placeholder;
|
||||
}
|
||||
|
||||
public void setPlaceholder(String placeholder) {
|
||||
this.placeholder = placeholder;
|
||||
}
|
||||
|
||||
public Boolean getTableView() {
|
||||
return tableView;
|
||||
}
|
||||
|
||||
public void setTableView(Boolean tableView) {
|
||||
this.tableView = tableView;
|
||||
}
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class PageFileTransformerModel {
|
||||
private String id;
|
||||
private Integer ordinal;
|
||||
private String title;
|
||||
private List<SectionFileTransformerModel> sections;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getOrdinal() {
|
||||
return ordinal;
|
||||
}
|
||||
|
||||
public void setOrdinal(Integer ordinal) {
|
||||
this.ordinal = ordinal;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public List<SectionFileTransformerModel> getSections() {
|
||||
return sections;
|
||||
}
|
||||
|
||||
public void setSections(List<SectionFileTransformerModel> sectionFileTransformerModels) {
|
||||
this.sections = sectionFileTransformerModels;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition;
|
||||
|
||||
public class RuleFileTransformerModel {
|
||||
|
||||
private String target;
|
||||
private String value;
|
||||
|
||||
|
||||
public String getTarget() {
|
||||
return target;
|
||||
}
|
||||
|
||||
public void setTarget(String target) {
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SectionFileTransformerModel {
|
||||
|
||||
private String id;
|
||||
private Integer ordinal;
|
||||
private Boolean defaultVisibility;
|
||||
private Boolean multiplicity;
|
||||
private String numbering; //TODO maybe remove
|
||||
private String title;
|
||||
private String description;
|
||||
private String extendedDescription; //TODO maybe remove
|
||||
private List<SectionFileTransformerModel> sections;
|
||||
private List<FieldSetFileTransformerModel> fieldSets;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getOrdinal() {
|
||||
return ordinal;
|
||||
}
|
||||
|
||||
public void setOrdinal(Integer ordinal) {
|
||||
this.ordinal = ordinal;
|
||||
}
|
||||
|
||||
public Boolean getDefaultVisibility() {
|
||||
return defaultVisibility;
|
||||
}
|
||||
|
||||
public void setDefaultVisibility(Boolean defaultVisibility) {
|
||||
this.defaultVisibility = defaultVisibility;
|
||||
}
|
||||
|
||||
public Boolean getMultiplicity() {
|
||||
return multiplicity;
|
||||
}
|
||||
|
||||
public void setMultiplicity(Boolean multiplicity) {
|
||||
this.multiplicity = multiplicity;
|
||||
}
|
||||
|
||||
public String getNumbering() {
|
||||
return numbering;
|
||||
}
|
||||
|
||||
public void setNumbering(String numbering) {
|
||||
this.numbering = numbering;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getExtendedDescription() {
|
||||
return extendedDescription;
|
||||
}
|
||||
|
||||
public void setExtendedDescription(String extendedDescription) {
|
||||
this.extendedDescription = extendedDescription;
|
||||
}
|
||||
|
||||
public List<SectionFileTransformerModel> getSections() {
|
||||
return sections;
|
||||
}
|
||||
|
||||
public void setSections(List<SectionFileTransformerModel> sectionFileTransformerModels) {
|
||||
this.sections = sectionFileTransformerModels;
|
||||
}
|
||||
|
||||
public List<FieldSetFileTransformerModel> getFieldSets() {
|
||||
return fieldSets;
|
||||
}
|
||||
|
||||
public void setFieldSets(List<FieldSetFileTransformerModel> fieldSetFileTransformerModels) {
|
||||
this.fieldSets = fieldSetFileTransformerModels;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import eu.eudat.file.transformer.enums.FieldType;
|
||||
|
||||
@JsonTypeInfo(
|
||||
use = JsonTypeInfo.Id.NAME,
|
||||
include = JsonTypeInfo.As.PROPERTY,
|
||||
property = "fieldType",
|
||||
visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = ExternalSelectDataFileTransformerModel.class, name = FieldType.Names.ExternalSelect),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.BooleanDecision),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.InternalDmpDatasets),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.InternalDmpDmps),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.CheckBox),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.DatePicker),
|
||||
@JsonSubTypes.Type(value = ExternalDatasetDataFileTransformerModel.class, name = FieldType.Names.ExternalDatasets),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.FreeText),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Licenses),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Organizations),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Publications),
|
||||
@JsonSubTypes.Type(value = RadioBoxDataFileTransformerModel.class, name = FieldType.Names.RadioBox),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Registries),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.InternalDmpResearchers),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Researchers),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.RichTextarea),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Services),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.Tags),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Taxonomies),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.TextArea),
|
||||
@JsonSubTypes.Type(value = UploadDataFileTransformerModel.class, name = FieldType.Names.Upload),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.Validation),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.DatasetIdentifier),
|
||||
@JsonSubTypes.Type(value = LabelDataFileTransformerModel.class, name = FieldType.Names.Currency),
|
||||
@JsonSubTypes.Type(value = SelectDataFileTransformerModel.class, name = FieldType.Names.Select),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.DataRepositories),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.JournalRepositories),
|
||||
@JsonSubTypes.Type(value = LabelAndMultiplicityDataFileTransformerModel.class, name = FieldType.Names.Publications),
|
||||
})
|
||||
public abstract class BaseFieldDataFileTransformerModel {
|
||||
|
||||
private String label;
|
||||
private FieldType fieldType;
|
||||
private String value;
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public FieldType getFieldType() {
|
||||
return fieldType;
|
||||
}
|
||||
|
||||
public void setFieldType(FieldType fieldType) {
|
||||
this.fieldType = fieldType;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
|
||||
import eu.eudat.file.transformer.enums.FieldDataExternalDatasetType;
|
||||
|
||||
public class ExternalDatasetDataFileTransformerModel extends LabelAndMultiplicityDataFileTransformerModel {
|
||||
private FieldDataExternalDatasetType type;
|
||||
|
||||
public FieldDataExternalDatasetType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(FieldDataExternalDatasetType type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
|
@ -1,150 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
import jakarta.xml.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
public class ExternalSelectDataFileTransformerModel extends LabelAndMultiplicityDataFileTransformerModel {
|
||||
public static class ExternalSelectAuthDataFileTransformerModel {
|
||||
private String url;
|
||||
private String method;
|
||||
private String body;
|
||||
private String path;
|
||||
private String type;
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getMethod() {
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method) {
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
public String getBody() {
|
||||
return body;
|
||||
}
|
||||
|
||||
public void setBody(String body) {
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
||||
public static class ExternalSelectSourceBindingFileTransformerModel {
|
||||
private String label;
|
||||
private String value;
|
||||
private String source;
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
}
|
||||
|
||||
public static class ExternalSelectSourceFileTransformerModel {
|
||||
private String url;
|
||||
private String method;
|
||||
private String optionsRoot;
|
||||
private ExternalSelectSourceBindingFileTransformerModel sourceBinding;
|
||||
private Boolean hasAuth;
|
||||
private ExternalSelectAuthDataFileTransformerModel auth;
|
||||
|
||||
public String getOptionsRoot() {
|
||||
return optionsRoot;
|
||||
}
|
||||
public void setOptionsRoot(String optionsRoot) {
|
||||
this.optionsRoot = optionsRoot;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public Boolean getHasAuth() {
|
||||
return hasAuth;
|
||||
}
|
||||
|
||||
public void setHasAuth(Boolean hasAuth) {
|
||||
this.hasAuth = hasAuth;
|
||||
}
|
||||
|
||||
public ExternalSelectAuthDataFileTransformerModel getAuth() {
|
||||
return auth;
|
||||
}
|
||||
|
||||
public void setAuth(ExternalSelectAuthDataFileTransformerModel auth) {
|
||||
this.auth = auth;
|
||||
}
|
||||
|
||||
public ExternalSelectSourceBindingFileTransformerModel getSourceBinding() {
|
||||
return sourceBinding;
|
||||
}
|
||||
public void setSourceBinding(ExternalSelectSourceBindingFileTransformerModel sourceBinding) {
|
||||
this.sourceBinding = sourceBinding;
|
||||
}
|
||||
|
||||
public String getMethod() {
|
||||
return method;
|
||||
}
|
||||
|
||||
public void setMethod(String method) {
|
||||
this.method = method;
|
||||
}
|
||||
}
|
||||
|
||||
private List<ExternalSelectSourceFileTransformerModel> sources;
|
||||
|
||||
public List<ExternalSelectSourceFileTransformerModel> getSources() {
|
||||
return sources;
|
||||
}
|
||||
|
||||
public void setSources(List<ExternalSelectSourceFileTransformerModel> externalSelectSourceFileTransformerModelList) {
|
||||
this.sources = externalSelectSourceFileTransformerModelList;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
public class LabelAndMultiplicityDataFileTransformerModel extends BaseFieldDataFileTransformerModel {
|
||||
private Boolean multipleSelect;
|
||||
|
||||
public Boolean getMultipleSelect() {
|
||||
return multipleSelect;
|
||||
}
|
||||
|
||||
public void setMultipleSelect(Boolean multipleSelect) {
|
||||
this.multipleSelect = multipleSelect;
|
||||
}
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
public class LabelDataFileTransformerModel extends BaseFieldDataFileTransformerModel {
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class RadioBoxDataFileTransformerModel extends BaseFieldDataFileTransformerModel {
|
||||
public static class RadioBoxDataOptionFileTransformerModel {
|
||||
private String label;
|
||||
private String value;
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private List<RadioBoxDataOptionFileTransformerModel> options;
|
||||
|
||||
public List<RadioBoxDataOptionFileTransformerModel> getOptions() {
|
||||
return options;
|
||||
}
|
||||
|
||||
public void setOptions(List<RadioBoxDataOptionFileTransformerModel> options) {
|
||||
this.options = options;
|
||||
}
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SelectDataFileTransformerModel extends LabelAndMultiplicityDataFileTransformerModel {
|
||||
private List<OptionFileTransformerModel> options;
|
||||
|
||||
public List<OptionFileTransformerModel> getOptions() {
|
||||
return options;
|
||||
}
|
||||
|
||||
public void setOptions(List<OptionFileTransformerModel> optionEntities) {
|
||||
this.options = optionEntities;
|
||||
}
|
||||
|
||||
public static class OptionFileTransformerModel {
|
||||
private String label;
|
||||
private String value;
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.descriptiontemplate.definition.fielddata;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class UploadDataFileTransformerModel extends BaseFieldDataFileTransformerModel {
|
||||
public static class UploadDataOptionFileTransformerModel {
|
||||
private String label;
|
||||
private String value;
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private List<UploadDataOptionFileTransformerModel> types;
|
||||
|
||||
private Integer maxFileSizeInMB;
|
||||
|
||||
|
||||
public List<UploadDataOptionFileTransformerModel> getTypes() {
|
||||
return types;
|
||||
}
|
||||
|
||||
public void setTypes(List<UploadDataOptionFileTransformerModel> types) {
|
||||
this.types = types;
|
||||
}
|
||||
|
||||
public Integer getMaxFileSizeInMB() {
|
||||
return maxFileSizeInMB;
|
||||
}
|
||||
|
||||
public void setMaxFileSizeInMB(Integer maxFileSizeInMB) {
|
||||
this.maxFileSizeInMB = maxFileSizeInMB;
|
||||
}
|
||||
}
|
|
@ -1,206 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmp;
|
||||
|
||||
import eu.eudat.file.transformer.enums.DmpAccessType;
|
||||
import eu.eudat.file.transformer.enums.DmpStatus;
|
||||
import eu.eudat.file.transformer.enums.DmpVersionStatus;
|
||||
import eu.eudat.file.transformer.models.dmpblueprint.DmpBlueprintFileTransformerModel;
|
||||
import eu.eudat.file.transformer.models.entitydoi.EntityDoiFileTransformerModel;
|
||||
import eu.eudat.file.transformer.models.description.DescriptionFileTransformerModel;
|
||||
import eu.eudat.file.transformer.models.user.UserFileTransformerModel;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DmpFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private String variant;
|
||||
private String label;
|
||||
private String description;
|
||||
private Short version;
|
||||
private DmpStatus status;
|
||||
private DmpVersionStatus versionStatus;
|
||||
private String properties;
|
||||
private Instant createdAt;
|
||||
private Instant updatedAt;
|
||||
private Instant finalizedAt;
|
||||
private Instant publishedAt;
|
||||
private UserFileTransformerModel creator;
|
||||
private DmpAccessType accessType;
|
||||
private DmpBlueprintFileTransformerModel blueprint;
|
||||
private String language;
|
||||
private Instant publicAfter;
|
||||
private List<DmpReferenceFileTransformerModel> dmpReferences;
|
||||
private List<DmpUserFileTransformerModel> dmpUsers;
|
||||
private List<DescriptionFileTransformerModel> descriptions;
|
||||
private List<EntityDoiFileTransformerModel> entityDois;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getVariant() {
|
||||
return variant;
|
||||
}
|
||||
|
||||
public void setVariant(String variant) {
|
||||
this.variant = variant;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Short getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Short version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public DmpStatus getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(DmpStatus status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public DmpVersionStatus getVersionStatus() {
|
||||
return versionStatus;
|
||||
}
|
||||
|
||||
public void setVersionStatus(DmpVersionStatus versionStatus) {
|
||||
this.versionStatus = versionStatus;
|
||||
}
|
||||
|
||||
public String getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(String properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public Instant getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Instant createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Instant getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Instant updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Instant getFinalizedAt() {
|
||||
return finalizedAt;
|
||||
}
|
||||
|
||||
public void setFinalizedAt(Instant finalizedAt) {
|
||||
this.finalizedAt = finalizedAt;
|
||||
}
|
||||
|
||||
public Instant getPublishedAt() {
|
||||
return publishedAt;
|
||||
}
|
||||
|
||||
public void setPublishedAt(Instant publishedAt) {
|
||||
this.publishedAt = publishedAt;
|
||||
}
|
||||
|
||||
public UserFileTransformerModel getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
public void setCreator(UserFileTransformerModel creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
public DmpAccessType getAccessType() {
|
||||
return accessType;
|
||||
}
|
||||
|
||||
public void setAccessType(DmpAccessType accessType) {
|
||||
this.accessType = accessType;
|
||||
}
|
||||
|
||||
public DmpBlueprintFileTransformerModel getBlueprint() {
|
||||
return blueprint;
|
||||
}
|
||||
|
||||
public void setBlueprint(DmpBlueprintFileTransformerModel blueprint) {
|
||||
this.blueprint = blueprint;
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
public Instant getPublicAfter() {
|
||||
return publicAfter;
|
||||
}
|
||||
|
||||
public void setPublicAfter(Instant publicAfter) {
|
||||
this.publicAfter = publicAfter;
|
||||
}
|
||||
|
||||
public List<DmpReferenceFileTransformerModel> getDmpReferences() {
|
||||
return dmpReferences;
|
||||
}
|
||||
|
||||
public void setDmpReferences(List<DmpReferenceFileTransformerModel> dmpReferences) {
|
||||
this.dmpReferences = dmpReferences;
|
||||
}
|
||||
|
||||
public List<DmpUserFileTransformerModel> getDmpUsers() {
|
||||
return dmpUsers;
|
||||
}
|
||||
|
||||
public void setDmpUsers(List<DmpUserFileTransformerModel> dmpUsers) {
|
||||
this.dmpUsers = dmpUsers;
|
||||
}
|
||||
|
||||
public List<DescriptionFileTransformerModel> getDescriptions() {
|
||||
return descriptions;
|
||||
}
|
||||
|
||||
public void setDescriptions(List<DescriptionFileTransformerModel> descriptions) {
|
||||
this.descriptions = descriptions;
|
||||
}
|
||||
|
||||
public List<EntityDoiFileTransformerModel> getEntityDois() {
|
||||
return entityDois;
|
||||
}
|
||||
|
||||
public void setEntityDois(List<EntityDoiFileTransformerModel> entityDois) {
|
||||
this.entityDois = entityDois;
|
||||
}
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmp;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.models.reference.ReferenceFileTransformerModel;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DmpReferenceFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private ReferenceFileTransformerModel reference;
|
||||
private String data;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ReferenceFileTransformerModel getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
public void setReference(ReferenceFileTransformerModel reference) {
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmp;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.enums.DmpUserRole;
|
||||
import eu.eudat.file.transformer.models.user.UserFileTransformerModel;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DmpUserFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private UserFileTransformerModel user;
|
||||
private DmpUserRole role;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public UserFileTransformerModel getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(UserFileTransformerModel user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public DmpUserRole getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(DmpUserRole role) {
|
||||
this.role = role;
|
||||
}
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmpblueprint;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.models.dmpblueprint.definition.DefinitionFileTransformerModel;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class DmpBlueprintFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private String label;
|
||||
private DefinitionFileTransformerModel definitionFileTransformerModel;
|
||||
|
||||
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 DefinitionFileTransformerModel getDefinitionFileTransformerModel() {
|
||||
return definitionFileTransformerModel;
|
||||
}
|
||||
|
||||
public void setDefinitionFileTransformerModel(DefinitionFileTransformerModel definitionFileTransformerModel) {
|
||||
this.definitionFileTransformerModel = definitionFileTransformerModel;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmpblueprint.definition;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class DefinitionFileTransformerModel {
|
||||
|
||||
private List<SectionFileTransformerModel> sectionFileTransformerModels;
|
||||
|
||||
public List<SectionFileTransformerModel> getSections() {
|
||||
return sectionFileTransformerModels;
|
||||
}
|
||||
|
||||
public void setSections(List<SectionFileTransformerModel> sectionFileTransformerModels) {
|
||||
this.sectionFileTransformerModels = sectionFileTransformerModels;
|
||||
}
|
||||
}
|
|
@ -1,52 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmpblueprint.definition;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class DescriptionTemplateFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private UUID descriptionTemplateId;
|
||||
private String label;
|
||||
private Integer minMultiplicity;
|
||||
private Integer maxMultiplicity;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public UUID getDescriptionTemplateId() {
|
||||
return descriptionTemplateId;
|
||||
}
|
||||
|
||||
public void setDescriptionTemplateId(UUID descriptionTemplateId) {
|
||||
this.descriptionTemplateId = descriptionTemplateId;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public Integer getMinMultiplicity() {
|
||||
return minMultiplicity;
|
||||
}
|
||||
|
||||
public void setMinMultiplicity(Integer minMultiplicity) {
|
||||
this.minMultiplicity = minMultiplicity;
|
||||
}
|
||||
|
||||
public Integer getMaxMultiplicity() {
|
||||
return maxMultiplicity;
|
||||
}
|
||||
|
||||
public void setMaxMultiplicity(Integer maxMultiplicity) {
|
||||
this.maxMultiplicity = maxMultiplicity;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmpblueprint.definition;
|
||||
|
||||
import eu.eudat.file.transformer.enums.DmpBlueprintExtraFieldDataType;
|
||||
|
||||
public class ExtraFieldFileTransformerModelFileTransformerModel extends FieldFileTransformerModel {
|
||||
|
||||
private DmpBlueprintExtraFieldDataType dataType;
|
||||
|
||||
public DmpBlueprintExtraFieldDataType getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(DmpBlueprintExtraFieldDataType dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
}
|
|
@ -1,84 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmpblueprint.definition;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import eu.eudat.file.transformer.enums.DmpBlueprintFieldCategory;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonTypeInfo(
|
||||
use = JsonTypeInfo.Id.NAME,
|
||||
include = JsonTypeInfo.As.PROPERTY,
|
||||
property = "category",
|
||||
visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = SystemFieldFileTransformerModel.class, name = "0"),
|
||||
@JsonSubTypes.Type(value = ExtraFieldFileTransformerModelFileTransformerModel.class, name = "1")
|
||||
})
|
||||
public abstract class FieldFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private DmpBlueprintFieldCategory category;
|
||||
private String label;
|
||||
private String placeholder;
|
||||
private String description;
|
||||
private Integer ordinal;
|
||||
private Boolean required;
|
||||
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public DmpBlueprintFieldCategory getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(DmpBlueprintFieldCategory category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getPlaceholder() {
|
||||
return placeholder;
|
||||
}
|
||||
|
||||
public void setPlaceholder(String placeholder) {
|
||||
this.placeholder = placeholder;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Integer getOrdinal() {
|
||||
return ordinal;
|
||||
}
|
||||
|
||||
public void setOrdinal(Integer ordinal) {
|
||||
this.ordinal = ordinal;
|
||||
}
|
||||
|
||||
public Boolean isRequired() {
|
||||
return required;
|
||||
}
|
||||
|
||||
public void setRequired(Boolean required) {
|
||||
this.required = required;
|
||||
}
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmpblueprint.definition;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class SectionFileTransformerModel {
|
||||
private UUID id;
|
||||
private String description;
|
||||
private String label;
|
||||
private Integer ordinal;
|
||||
private Boolean hasTemplates;
|
||||
private List<FieldFileTransformerModel> fieldFileTransformerModels;
|
||||
private List<DescriptionTemplateFileTransformerModel> descriptionTemplates;
|
||||
|
||||
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 String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Integer getOrdinal() {
|
||||
return ordinal;
|
||||
}
|
||||
|
||||
public void setOrdinal(Integer ordinal) {
|
||||
this.ordinal = ordinal;
|
||||
}
|
||||
|
||||
public Boolean getHasTemplates() {
|
||||
return hasTemplates;
|
||||
}
|
||||
|
||||
public void setHasTemplates(Boolean hasTemplates) {
|
||||
this.hasTemplates = hasTemplates;
|
||||
}
|
||||
|
||||
public List<FieldFileTransformerModel> getFields() {
|
||||
return fieldFileTransformerModels;
|
||||
}
|
||||
|
||||
public void setFields(List<FieldFileTransformerModel> fieldFileTransformerModels) {
|
||||
this.fieldFileTransformerModels = fieldFileTransformerModels;
|
||||
}
|
||||
|
||||
public List<DescriptionTemplateFileTransformerModel> getDescriptionTemplates() {
|
||||
return descriptionTemplates;
|
||||
}
|
||||
|
||||
public void setDescriptionTemplates(List<DescriptionTemplateFileTransformerModel> descriptionTemplates) {
|
||||
this.descriptionTemplates = descriptionTemplates;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.dmpblueprint.definition;
|
||||
|
||||
import eu.eudat.file.transformer.enums.DmpBlueprintSystemFieldType;
|
||||
|
||||
public class SystemFieldFileTransformerModel extends FieldFileTransformerModel {
|
||||
|
||||
private DmpBlueprintSystemFieldType systemFieldType;
|
||||
|
||||
public DmpBlueprintSystemFieldType getSystemFieldType() {
|
||||
return systemFieldType;
|
||||
}
|
||||
|
||||
public void setSystemFieldType(DmpBlueprintSystemFieldType systemFieldType) {
|
||||
this.systemFieldType = systemFieldType;
|
||||
}
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.entitydoi;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class EntityDoiFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private String repositoryId;
|
||||
private String doi;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getRepositoryId() {
|
||||
return repositoryId;
|
||||
}
|
||||
|
||||
public void setRepositoryId(String repositoryId) {
|
||||
this.repositoryId = repositoryId;
|
||||
}
|
||||
|
||||
public String getDoi() {
|
||||
return doi;
|
||||
}
|
||||
|
||||
public void setDoi(String doi) {
|
||||
this.doi = doi;
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.misc;
|
||||
|
||||
public class FileEnvelope {
|
||||
private String filename;
|
||||
private String file;
|
||||
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public String getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(String file) {
|
||||
this.file = file;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.reference;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class DefinitionFileTransformerModel {
|
||||
private List<FieldFileTransformerModel> fields;
|
||||
|
||||
public List<FieldFileTransformerModel> getFields() {
|
||||
return fields;
|
||||
}
|
||||
|
||||
public void setFields(List<FieldFileTransformerModel> fields) {
|
||||
this.fields = fields;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.reference;
|
||||
|
||||
public class FieldFileTransformerModel {
|
||||
|
||||
private String code;
|
||||
private String value;
|
||||
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,93 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.reference;
|
||||
|
||||
|
||||
import eu.eudat.file.transformer.enums.ReferenceSourceType;
|
||||
import eu.eudat.file.transformer.enums.ReferenceType;
|
||||
import eu.eudat.file.transformer.models.reference.DefinitionFileTransformerModel;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class ReferenceFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private String label;
|
||||
private ReferenceType type;
|
||||
private String description;
|
||||
private DefinitionFileTransformerModel definition;
|
||||
private String reference;
|
||||
private String abbreviation;
|
||||
private String source;
|
||||
private ReferenceSourceType sourceType;
|
||||
|
||||
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 ReferenceType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(ReferenceType type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public DefinitionFileTransformerModel getDefinition() {
|
||||
return definition;
|
||||
}
|
||||
|
||||
public void setDefinition(DefinitionFileTransformerModel definition) {
|
||||
this.definition = definition;
|
||||
}
|
||||
|
||||
public String getReference() {
|
||||
return reference;
|
||||
}
|
||||
|
||||
public void setReference(String reference) {
|
||||
this.reference = reference;
|
||||
}
|
||||
|
||||
public String getAbbreviation() {
|
||||
return abbreviation;
|
||||
}
|
||||
|
||||
public void setAbbreviation(String abbreviation) {
|
||||
this.abbreviation = abbreviation;
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public ReferenceSourceType getSourceType() {
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
public void setSourceType(ReferenceSourceType sourceType) {
|
||||
this.sourceType = sourceType;
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.tag;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class TagFileTransformerModel {
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.user;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import eu.eudat.file.transformer.models.reference.ReferenceFileTransformerModel;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class UserAdditionalInfoFileTransformerModel {
|
||||
private String avatarUrl;
|
||||
private String timezone;
|
||||
private String culture;
|
||||
private String language;
|
||||
private String roleOrganization;
|
||||
private ReferenceFileTransformerModel organization;
|
||||
|
||||
public String getAvatarUrl() {
|
||||
return avatarUrl;
|
||||
}
|
||||
|
||||
public void setAvatarUrl(String avatarUrl) {
|
||||
this.avatarUrl = avatarUrl;
|
||||
}
|
||||
|
||||
public String getTimezone() {
|
||||
return timezone;
|
||||
}
|
||||
|
||||
public void setTimezone(String timezone) {
|
||||
this.timezone = timezone;
|
||||
}
|
||||
|
||||
public String getCulture() {
|
||||
return culture;
|
||||
}
|
||||
|
||||
public void setCulture(String culture) {
|
||||
this.culture = culture;
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
public String getRoleOrganization() {
|
||||
return roleOrganization;
|
||||
}
|
||||
|
||||
public void setRoleOrganization(String roleOrganization) {
|
||||
this.roleOrganization = roleOrganization;
|
||||
}
|
||||
|
||||
public ReferenceFileTransformerModel getOrganization() {
|
||||
return organization;
|
||||
}
|
||||
|
||||
public void setOrganization(ReferenceFileTransformerModel organization) {
|
||||
this.organization = organization;
|
||||
}
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.user;
|
||||
|
||||
import eu.eudat.file.transformer.enums.ContactInfoType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class UserContactInfoFileTransformerModel {
|
||||
private UUID id;
|
||||
private String value;
|
||||
private ContactInfoType type;
|
||||
private int ordinal;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public ContactInfoType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(ContactInfoType type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getOrdinal() {
|
||||
return ordinal;
|
||||
}
|
||||
|
||||
public void setOrdinal(int ordinal) {
|
||||
this.ordinal = ordinal;
|
||||
}
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
package eu.eudat.file.transformer.models.user;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class UserFileTransformerModel {
|
||||
|
||||
private UUID id;
|
||||
private String name;
|
||||
private UserAdditionalInfoFileTransformerModel additionalInfo;
|
||||
private List<UserContactInfoFileTransformerModel> contacts;
|
||||
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(UUID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public UserAdditionalInfoFileTransformerModel getAdditionalInfo() {
|
||||
return additionalInfo;
|
||||
}
|
||||
|
||||
public void setAdditionalInfo(UserAdditionalInfoFileTransformerModel additionalInfo) {
|
||||
this.additionalInfo = additionalInfo;
|
||||
}
|
||||
|
||||
public List<UserContactInfoFileTransformerModel> getContacts() {
|
||||
return contacts;
|
||||
}
|
||||
|
||||
public void setContacts(List<UserContactInfoFileTransformerModel> contacts) {
|
||||
this.contacts = contacts;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue