-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: Replace RequestBody Class with ImportPathBody, CreateProject…
…Body, CsvDatasource, Csv DatasourceTable and changed ViewFactory to JSONFactory
- Loading branch information
1 parent
f1d8428
commit 7204c22
Showing
9 changed files
with
171 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package de.samply.opal.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class CreateProjectBody { | ||
|
||
@JsonProperty(value = "name") | ||
private String name; | ||
@JsonProperty(value = "title") | ||
private String title; | ||
@JsonProperty(value = "description") | ||
private String description; | ||
@JsonProperty(value = "database") | ||
private String database; | ||
@JsonProperty(value = "vcfStoreService") | ||
private String vcfStoreService; | ||
@JsonProperty(value = "exportFolder") | ||
private String exportFolder; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package de.samply.opal.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class CsvDatasource { | ||
|
||
@JsonProperty("Magma.CsvDatasourceFactoryDto.params") | ||
private Params params; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public static class Params { | ||
@JsonProperty("characterSet") | ||
private String characterSet; | ||
|
||
@JsonProperty("firstRow") | ||
private int firstRow; | ||
|
||
@JsonProperty("quote") | ||
private String quote; | ||
|
||
@JsonProperty("separator") | ||
private String separator; | ||
|
||
@JsonProperty("defaultValueType") | ||
private String defaultValueType; | ||
|
||
@JsonProperty("tables") | ||
private List<CsvDatasourceTable> tables; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/de/samply/opal/model/CsvDatasourceTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package de.samply.opal.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class CsvDatasourceTable { | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
|
||
@JsonProperty("data") | ||
private String data; | ||
|
||
@JsonProperty("entityType") | ||
private String entityType; | ||
|
||
@JsonProperty("refTable") | ||
private String refTable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package de.samply.opal.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ImportPathBody { | ||
|
||
@JsonProperty(value = "destination") | ||
private String destination; | ||
@JsonProperty(value = "tables") | ||
private String[] tables; | ||
} |