-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0dafab
commit 94bf4f4
Showing
25 changed files
with
316 additions
and
61 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
src/main/java/com/mauvaisetroupe/eadesignit/service/dto/ApplicationsImportDTO.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,60 @@ | ||
package com.mauvaisetroupe.eadesignit.service.dto; | ||
|
||
import com.mauvaisetroupe.eadesignit.domain.ApplicationImport; | ||
import com.mauvaisetroupe.eadesignit.domain.enumeration.ImportStatus; | ||
import com.mauvaisetroupe.eadesignit.service.importfile.dto.ErrorLine; | ||
import java.util.List; | ||
|
||
public class ApplicationsImportDTO { | ||
|
||
private ImportStatus status; | ||
private List<ErrorLine> errorLines; | ||
private String errorMessage; | ||
private List<ApplicationImport> applicationImports; | ||
|
||
public ApplicationsImportDTO( | ||
List<ApplicationImport> applicationImports, | ||
ImportStatus status, | ||
List<ErrorLine> errorLines, | ||
String errorMessage | ||
) { | ||
this.status = status; | ||
this.errorLines = errorLines; | ||
this.errorMessage = errorMessage; | ||
this.applicationImports = applicationImports; | ||
} | ||
|
||
public ApplicationsImportDTO() {} | ||
|
||
public ImportStatus getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(ImportStatus status) { | ||
this.status = status; | ||
} | ||
|
||
public List<ErrorLine> getErrorLines() { | ||
return errorLines; | ||
} | ||
|
||
public void setErrorLines(List<ErrorLine> errorLines) { | ||
this.errorLines = errorLines; | ||
} | ||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
|
||
public void setErrorMessage(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
public List<ApplicationImport> getApplicationImports() { | ||
return applicationImports; | ||
} | ||
|
||
public void setApplicationImports(List<ApplicationImport> applicationImports) { | ||
this.applicationImports = applicationImports; | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/mauvaisetroupe/eadesignit/service/importfile/dto/ErrorLine.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 com.mauvaisetroupe.eadesignit.service.importfile.dto; | ||
|
||
public class ErrorLine { | ||
|
||
private String errorMessage; | ||
|
||
public ErrorLine(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
|
||
public void setErrorMessage(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/mauvaisetroupe/eadesignit/service/importfile/dto/ErrorLineException.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,21 @@ | ||
package com.mauvaisetroupe.eadesignit.service.importfile.dto; | ||
|
||
import java.util.List; | ||
|
||
public class ErrorLineException extends Exception { | ||
|
||
private List<ErrorLine> errorLines; | ||
|
||
public ErrorLineException(String message, List<ErrorLine> errorLines) { | ||
super(message); | ||
this.errorLines = errorLines; | ||
} | ||
|
||
public List<ErrorLine> getErrorLines() { | ||
return errorLines; | ||
} | ||
|
||
public void setErrorLines(List<ErrorLine> errorLines) { | ||
this.errorLines = errorLines; | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/webapp/app/shared/model/application-import.model.ts
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.