-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GITFLOW]merging 'release-0.17.0' into 'master'
- Loading branch information
Showing
87 changed files
with
2,200 additions
and
985 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ public interface ConfigFacade { | |
|
||
String getSmsAuthSecret(); | ||
|
||
String getExportPath(); | ||
String getTempFilesPath(); | ||
|
||
} |
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 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
19 changes: 0 additions & 19 deletions
19
sormas-api/src/main/java/de/symeda/sormas/api/export/ExportFacade.java
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
2 changes: 1 addition & 1 deletion
2
...meda/sormas/api/export/DatabaseTable.java → ...ormas/api/importexport/DatabaseTable.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
2 changes: 1 addition & 1 deletion
2
.../sormas/api/export/DatabaseTableType.java → ...s/api/importexport/DatabaseTableType.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package de.symeda.sormas.api.export; | ||
package de.symeda.sormas.api.importexport; | ||
|
||
public enum DatabaseTableType { | ||
|
||
|
33 changes: 33 additions & 0 deletions
33
sormas-api/src/main/java/de/symeda/sormas/api/importexport/ImportExportFacade.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,33 @@ | ||
package de.symeda.sormas.api.importexport; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import javax.ejb.Remote; | ||
|
||
import de.symeda.sormas.api.utils.ExportErrorException; | ||
|
||
@Remote | ||
public interface ImportExportFacade { | ||
|
||
/** | ||
* Exports the passed database tables as .csv files to the export folder specified in the | ||
* properties file, creates a zip archive containing these .csv files and returns the path | ||
* to the zip archive that can then be used to offer it as a download. | ||
*/ | ||
String generateDatabaseExportArchive(List<DatabaseTable> databaseTables) throws ExportErrorException, IOException; | ||
|
||
/** | ||
* Creates a .csv file with one row containing all relevant column names of the case entity | ||
* and its sub-entities and returns the path to the .csv file that can then be used to offer | ||
* it as a download. | ||
*/ | ||
void generateCaseImportTemplateFile() throws IOException; | ||
|
||
String getCaseImportTemplateFilePath(); | ||
|
||
String getSormasImportGuideFilePath(); | ||
|
||
String importCasesFromCsvFile(String csvFilePath, String userUuid) throws IOException, InvalidColumnException; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
sormas-api/src/main/java/de/symeda/sormas/api/importexport/InvalidColumnException.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,18 @@ | ||
package de.symeda.sormas.api.importexport; | ||
|
||
public class InvalidColumnException extends Exception { | ||
|
||
private static final long serialVersionUID = -1597100047088745699L; | ||
|
||
private String columnName; | ||
|
||
public InvalidColumnException(String columnName) { | ||
super(); | ||
this.columnName = columnName; | ||
} | ||
|
||
public String getColumnName() { | ||
return columnName; | ||
} | ||
|
||
} |
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 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 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
Oops, something went wrong.