Produced by Araxis Merge on 4/2/2019 1:06:56 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ARS_Backend\ars_app\src\main\java\gov\va\med\ewv\model\response | EwdPdfReferencesFileArchiveResponse.java | Wed Mar 27 19:22:50 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ARS_Backend\ars_app\src\main\java\gov\va\med\ewv\model\response | EwdPdfReferencesFileArchiveResponse.java | Thu Mar 28 17:51:00 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 446 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | package go v.va.med.e wv.model.r esponse; | |
2 | ||
3 | import jav a.util.Arr ayList; | |
4 | import jav a.util.Lis t; | |
5 | ||
6 | import gov .va.med.do main.ewv.E wvReferenc es; | |
7 | import gov .va.med.ew v.bean.Arc hivedPdfRe ference; | |
8 | ||
9 | /** | |
10 | * This is the Respo nse object that is u sed to ret urn back t he Result of | |
11 | * calling the File Archive "a pi/v1/file archive" R ESTFul Web Service. The | |
12 | * actual RESTFul We b Service will place in its Re sponse Bod y a JSON f ormatted | |
13 | * version of an ins tance of t his class. | |
14 | * | |
15 | * @author DN S PEREZF | |
16 | * | |
17 | */ | |
18 | public cla ss EwdPdfR eferencesF ileArchive Response { | |
19 | ||
20 | /* * | |
21 | * Contains the list o f Successf ul File Ar chives. Su ccess in t his contex t means th at | |
22 | * the File Archive's PDf Refere nce stored in the da tabase was successfu lly set to the | |
23 | * Archived state (i.e ., Archive state set to "true" ). | |
24 | * / | |
25 | pr ivate List <ArchivedP dfReferenc e> success fulFileArc hivesList = new Arra yList<Arch ivedPdfRef erence>(); | |
26 | ||
27 | /* * | |
28 | * Contains the list o f EwvRefer ences obje cts whose Archive St ate was su ccessfully set to "t rue". | |
29 | * | |
30 | * There is a one-to-o ne element correspon dence betw een the "s uccessfulF ileArchive sList" and the | |
31 | * "ewvRefer encesList" . For each successfu l File Arc hive in th e "success fulFileUpl oadsList", there | |
32 | * is a corr esponding EwvReferen ces object in the "e wvReferenc esList". S o, the n't h element in the | |
33 | * "successf ulFileArch ivesList" correspond s to the n 'th elemen t in the " ewvReferen cesList". The n'th | |
34 | * successfu l File Arc hive menti oned in th e "success fulFileArc hivesList" successfu lly had th e | |
35 | * correspon ding PDF R eference i nformation in the n' th element of the "e wvReferenc esList" | |
36 | * updated s uccessfull y into the database. Thus, eac h EwvRefer ence conta ins the fu ll PDF Ref erence | |
37 | * informati on for tha t PDF Refe rence afte r its Arch ive state was set to "true". | |
38 | * / | |
39 | privat e List<Ewv References > ewvRefer encesList = new Arra yList<EwvR eferences> (); | |
40 | ||
41 | /** | |
42 | * Con tains the list of Fa iled File Archives. Failure in this cont ext means that | |
43 | * the File Archive's PDf Refere nce stored in the da tabase was NOT succe ssfully se t to the | |
44 | * Archived state (i.e ., Archive state NOT successfu lly set to "true"). | |
45 | */ | |
46 | pr ivate List <ArchivedP dfReferenc e> unSucce ssfulFileA rchivesLis t = new Ar rayList<Ar chivedPdfR eference>( ); | |
47 | ||
48 | /* * | |
49 | * Contains the list o f Error Me ssages des cribing th e reason w hy each fa iled File Archive in the | |
50 | * "unSucces sfulFileAr chivesList " failed. | |
51 | * | |
52 | * There is a one-to-o ne element correspon dence betw een the "u nSuccessfu lFileArchi vesList" a nd the | |
53 | * "errorMes sagesList" . For each un-succes sful File Archive in the "succ essfulFile ArchivesLi st", there | |
54 | * is a corr esponding Error Mess age string in the "e rrorMessag esList". S o, the n't h element in the | |
55 | * "unSucces sfulFileAr chivesList " correspo nds to the n'th elem ent in the "errorMes sagesList" describin g | |
56 | * why the F ile Archiv e mentione d in the n 'th elemen t of the " unSuccessf ulFileArch ivesList" failed. | |
57 | * / | |
58 | pr ivate List <String> e rrorMessag esList = n ew ArrayLi st<String> (); | |
59 | ||
60 | /* * | |
61 | * Construct or. | |
62 | * / | |
63 | pu blic EwdPd fReference sFileArchi veResponse () { } | |
64 | ||
65 | /* * | |
66 | * Gets the list of Su ccessful F ile Archiv es. Succes s in this context me ans that | |
67 | * the File Archive's PDf Refere nce stored in the da tabase was successfu lly set to the | |
68 | * Archived state (i.e ., Archive state set to "true" ). | |
69 | * | |
70 | * @return - the list of Success ful File A rchives | |
71 | * / | |
72 | pu blic List< ArchivedPd fReference > getSucce ssfulFileA rchivesLis t() { | |
73 | retu rn success fulFileArc hivesList; | |
74 | } | |
75 | ||
76 | /* * | |
77 | * Gets the list of Ew vReference s objects whose Arch ive State was succes sfully set to "true" . | |
78 | * | |
79 | * There is a one-to-o ne element correspon dence betw een the "s uccessfulF ileArchive sList" and the | |
80 | * "ewvRefer encesList" . For each successfu l File Arc hive in th e "success fulFileUpl oadsList", there | |
81 | * is a corr esponding EwvReferen ces object in the "e wvReferenc esList". S o, the n't h element in the | |
82 | * "successf ulFileArch ivesList" correspond s to the n 'th elemen t in the " ewvReferen cesList". The n'th | |
83 | * successfu l File Arc hive menti oned in th e "success fulFileArc hivesList" successfu lly had th e | |
84 | * correspon ding PDF R eference i nformation in the n' th element of the "e wvReferenc esList" | |
85 | * updated s uccessfull y into the database. Thus, eac h EwvRefer ence conta ins the fu ll PDF Ref erence | |
86 | * informati on for tha t PDF Refe rence afte r its Arch ive state was set to "true". | |
87 | * | |
88 | * @return - the list of EwvRefe rences obj ects whose Archive S tate was s uccessfull y set to " true" | |
89 | * / | |
90 | pu blic List< EwvReferen ces> getEw vReference sList() { | |
91 | retu rn ewvRefe rencesList ; | |
92 | } | |
93 | ||
94 | /* * | |
95 | * Gets the list of Fa iled File Archives. Failure in this cont ext means that | |
96 | * the File Archive's PDf Refere nce stored in the da tabase was NOT succe ssfully se t to the | |
97 | * Archived state (i.e ., Archive state NOT successfu lly set to "true"). | |
98 | * | |
99 | * @return - the list of Failed File Archi ves | |
100 | * / | |
101 | pu blic List< ArchivedPd fReference > getUnSuc cessfulFil eArchivesL ist() { | |
102 | retu rn unSucce ssfulFileA rchivesLis t; | |
103 | } | |
104 | ||
105 | /* * | |
106 | * Gets the list of Er ror Messag es describ ing the re ason why e ach failed File Arch ive in the | |
107 | * "unSucces sfulFileAr chivesList " failed. | |
108 | * | |
109 | * There is a one-to-o ne element correspon dence betw een the "u nSuccessfu lFileArchi vesList" a nd the | |
110 | * "errorMes sagesList" . For each un-succes sful File Archive in the "succ essfulFile ArchivesLi st", there | |
111 | * is a corr esponding Error Mess age string in the "e rrorMessag esList". S o, the n't h element in the | |
112 | * "unSucces sfulFileAr chivesList " correspo nds to the n'th elem ent in the "errorMes sagesList" describin g | |
113 | * why the F ile Archiv e mentione d in the n 'th elemen t of the " unSuccessf ulFileArch ivesList" failed. | |
114 | * | |
115 | * @return - the list of Error M essages de scribing t he reason why each f ailed File Archive i n the | |
116 | * "unSucces sfulFileAr chivesList " failed | |
117 | * / | |
118 | pu blic List< String> ge tErrorMess agesList() { | |
119 | retu rn errorMe ssagesList ; | |
120 | } | |
121 | ||
122 | /* * | |
123 | * Sets the list of Su ccessful F ile Archiv es. Succes s in this context me ans that | |
124 | * the File Archive's PDf Refere nce stored in the da tabase was successfu lly set to the | |
125 | * Archived state (i.e ., Archive state set to "true" ). | |
126 | * | |
127 | * @param su ccessfulFi leArchives List - the list of S uccessful File Archi ves | |
128 | * / | |
129 | pu blic void setSuccess fulFileArc hivesList( List<Archi vedPdfRefe rence> suc cessfulFil eArchivesL ist) { | |
130 | if ( successful FileArchiv esList != null) { | |
131 | this.s uccessfulF ileArchive sList = su ccessfulFi leArchives List; | |
132 | } | |
133 | } | |
134 | ||
135 | /* * | |
136 | * Sets the list of Ew vReference s objects whose Arch ive State was succes sfully set to "true" . | |
137 | * | |
138 | * @param ew vReference sList - th e list of EwvReferen ces object s | |
139 | * / | |
140 | pu blic void setEwvRefe rencesList (List <Ewv References > ewvRefer encesList) { | |
141 | if ( ewvReferen cesList != null) { | |
142 | this.e wvReferenc esList = e wvReferenc esList; | |
143 | } | |
144 | } | |
145 | ||
146 | /* * | |
147 | * Sets the list of Fa iled File Archives. Failure in this cont ext means that | |
148 | * the File Archive's PDf Refere nce stored in the da tabase was NOT succe ssfully se t to the | |
149 | * Archived state (i.e ., Archive state NOT successfu lly set to "true"). | |
150 | * | |
151 | * @param un Successful FileArchiv esList - t he list of Failed Fi le Archive s | |
152 | * / | |
153 | pu blic void setUnSucce ssfulFileA rchivesLis t(List<Arc hivedPdfRe ference> u nSuccessfu lFileArchi vesList) { | |
154 | if ( unSuccessf ulFileArch ivesList ! = null) { | |
155 | this.u nSuccessfu lFileArchi vesList = unSuccessf ulFileArch ivesList; | |
156 | } | |
157 | } | |
158 | ||
159 | /* * | |
160 | * Sets the list of Er ror Messag es describ ing the re ason why e ach failed File Arch ive in the | |
161 | * "unSucces sfulFileAr chivesList " failed. | |
162 | * | |
163 | * @param er rorMessage sList - th e list of Error Mess ages | |
164 | * / | |
165 | pu blic void setErrorMe ssagesList (List<Stri ng> errorM essagesLis t) { | |
166 | if ( errorMessa gesList != null) { | |
167 | this.e rrorMessag esList = e rrorMessag esList; | |
168 | } | |
169 | } | |
170 | ||
171 | /* * | |
172 | * Inserts a File Arch ive record informati on into th e "success fulFileArc hivesList" | |
173 | * whose Fil e Archive was succes sful. | |
174 | * | |
175 | * @param su ccessfulFi leArchive - the File Archive i nformation to insert ; none ins erted | |
176 | * if this input para meter is N ULL | |
177 | * / | |
178 | pu blic void addSuccess fulFileArc hive(Archi vedPdfRefe rence succ essfulFile Archive) { | |
179 | if ( successful FileArchiv e != null) { | |
180 | succes sfulFileAr chivesList .add(succe ssfulFileA rchive); | |
181 | } | |
182 | } | |
183 | ||
184 | /* * | |
185 | * Inserts a n EwvRefer ence objec t into the "ewvRefer encesList" that was successful ly | |
186 | * updated t o the Arch ived State in the da tabase. Ea ch EwvRefe rence cont ains the | |
187 | * full PDF Reference informatio n for that PDF Refer ence after its Archi ve state | |
188 | * was set t o "true". | |
189 | * | |
190 | * @param ew vReference s - the Ew vReference object to insert; n one insert ed if this | |
191 | * input parameter is NULL | |
192 | * / | |
193 | pu blic void addEwvRefe rences(Ewv References ewvRefere nces) { | |
194 | if ( ewvReferen ces != nul l) { | |
195 | ewvRef erencesLis t.add(ewvR eferences) ; | |
196 | } | |
197 | } | |
198 | ||
199 | /* * | |
200 | * Inserts a File Arch ive record informati on into th e "unSucce ssfulFileA rchivesLis t" | |
201 | * whose Fil e Archive was NOT su ccessful. | |
202 | * | |
203 | * @param un Successful FileArchiv e - the Fi le Archive informati on to inse rt; none | |
204 | * insert ed if this input par ameter is NULL | |
205 | * / | |
206 | pu blic void addUnSucce ssfulFileA rchive(Arc hivedPdfRe ference un Successful FileArchiv e) { | |
207 | if ( unSuccessf ulFileArch ive != nul l) { | |
208 | unSucc essfulFile ArchivesLi st.add(unS uccessfulF ileArchive ); | |
209 | } | |
210 | } | |
211 | ||
212 | /* * | |
213 | * Inserts a n Error Me ssage stri ng into th e "errorMe ssagesList " describi ng the rea son | |
214 | * why a fai led File A rchive in the "unSuc cessfulFil eStchivesL ist" faile d. | |
215 | * | |
216 | * @param er rorMessage - the Err or Message string to insert; n one insert ed if this | |
217 | * input p arameter i s NULL or is an empt y string | |
218 | * / | |
219 | pu blic void addErrorMe ssage(Stri ng errorMe ssage) { | |
220 | if ( errorMessa ge != null && !error Message.is Empty()) { | |
221 | errorM essagesLis t.add(erro rMessage); | |
222 | } | |
223 | } | |
224 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.