1 package fr.ifremer.tutti.service.genericformat;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 import java.io.Serializable;
28 import java.util.List;
29
30
31
32
33
34
35
36 public class GenericFormatExportResult implements Serializable {
37
38 private static final long serialVersionUID = 1L;
39
40 private final GenericFormatExportConfiguration exportConfiguration;
41
42 private final GenericFormatArchive archive;
43
44 private final List<String> errorsByCruise;
45
46 public GenericFormatExportResult(GenericFormatExportRequest exportRequest,
47 List<String> errorsByCruise) {
48 this.errorsByCruise = errorsByCruise;
49 this.archive = exportRequest.getArchive();
50 this.exportConfiguration = exportRequest.getExportConfiguration();
51
52 }
53
54 public GenericFormatExportConfiguration getExportConfiguration() {
55 return exportConfiguration;
56 }
57
58 public GenericFormatArchive getArchive() {
59 return archive;
60 }
61
62 public List<String> getErrorsByCruise() {
63 return errorsByCruise;
64 }
65
66 public boolean isSuccess() {
67 return errorsByCruise.isEmpty();
68 }
69 }