1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.hack23.cia.service.api.action.user;
20
21 import java.util.ArrayList;
22 import java.util.List;
23 import java.util.Map;
24 import java.util.stream.Collectors;
25
26 import com.hack23.cia.model.external.riksdagen.documentcontent.impl.DocumentContentData;
27 import com.hack23.cia.model.external.riksdagen.dokumentlista.impl.DocumentElement;
28 import com.hack23.cia.model.external.riksdagen.dokumentstatus.impl.DocumentStatusContainer;
29 import com.hack23.cia.service.api.action.common.AbstractResponse;
30
31
32
33
34
35 public final class SearchDocumentResponse extends AbstractResponse {
36
37
38 private static final long serialVersionUID = 1L;
39
40
41 private List<DocumentElement> resultElement = new ArrayList<>();
42
43
44 private Map<String,DocumentStatusContainer> statusMap;
45
46
47 private Map<String,DocumentContentData> dataMap;
48
49
50
51
52
53
54
55
56 public SearchDocumentResponse(final ServiceResult result) {
57 super(result);
58 }
59
60
61
62
63
64
65
66 public List<DocumentElement> getResultElement() {
67 return resultElement.stream().collect(Collectors.toList());
68 }
69
70
71
72
73
74
75
76
77 public void setResultElement(final List<DocumentElement> resultElement) {
78 if (resultElement != null) {
79 this.resultElement = resultElement.stream().collect(Collectors.toList());
80 }
81 }
82
83
84
85
86
87
88
89 public Map<String, DocumentStatusContainer> getStatusMap() {
90 return statusMap;
91 }
92
93
94
95
96
97
98
99
100 public void setStatusMap(final Map<String, DocumentStatusContainer> statusMap) {
101 this.statusMap = statusMap;
102 }
103
104
105
106
107
108
109
110 public Map<String, DocumentContentData> getDataMap() {
111 return dataMap;
112 }
113
114
115
116
117
118
119
120
121 public void setDataMap(final Map<String, DocumentContentData> dataMap) {
122 this.dataMap = dataMap;
123 }
124
125 }