Produced by Araxis Merge on 6/11/2019 10:54:11 AM Eastern 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 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\batchprocess | BatchProcessDetailStatus.java | Wed May 29 15:26:02 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\batchprocess | BatchProcessDetailStatus.java | Mon Jun 10 19:30:04 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 216 |
| 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 | /********* ********** ********** ********** ********** ********** ********* | |
| 2 | * Copyrii ght 2006 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | ||
| 5 | package go v.va.med.f w.batchpro cess; | |
| 6 | ||
| 7 | import jav a.util.Dat e; | |
| 8 | ||
| 9 | import org .apache.co mmons.lang .StringUti ls; | |
| 10 | import org .apache.co mmons.lang .builder.T oStringBui lder; | |
| 11 | ||
| 12 | import gov .va.med.fw .model.Abs tractEntit y; | |
| 13 | import gov .va.med.fw .schedulin g.TriggerS tatus; | |
| 14 | ||
| 15 | /** | |
| 16 | * Dynamic summary i nformation about a b atch proce ss job. | |
| 17 | * | |
| 18 | * Created Jun 26, 2 006 1:17:0 1 PM | |
| 19 | * | |
| 20 | * @author DNS DN S
|
|
| 21 | */ | |
| 22 | public cla ss BatchPr ocessDetai lStatus ex tends Abst ractEntity implement s Comparab le { | |
| 23 | ||
| 24 | pr ivate stat ic final l ong serial VersionUID = -744066 6543833035 774L; | |
| 25 | pr ivate Batc hProcessDe tail batch ProcessDet ail; | |
| 26 | pr ivate Trig gerStatus triggerSta tus; | |
| 27 | pr ivate Stri ng emailDi stribution List = nul l; | |
| 28 | ||
| 29 | /* * | |
| 30 | * @return R eturns the batchProc essDetail. | |
| 31 | * / | |
| 32 | pu blic Batch ProcessDet ail getBat chProcessD etail() { | |
| 33 | retu rn batchPr ocessDetai l; | |
| 34 | } | |
| 35 | ||
| 36 | /* * | |
| 37 | * @param ba tchProcess Detail | |
| 38 | * The batc hProcessDe tail to se t. | |
| 39 | * / | |
| 40 | pu blic void setBatchPr ocessDetai l(BatchPro cessDetail batchProc essDetail) { | |
| 41 | this .batchProc essDetail = batchPro cessDetail ; | |
| 42 | } | |
| 43 | ||
| 44 | /* | |
| 45 | * (non-Java doc) | |
| 46 | * | |
| 47 | * @see | |
| 48 | * gov.va.me d.fw.model .AbstractE ntity#buil dToString( org.apache .commons.l ang | |
| 49 | * .builder. ToStringBu ilder) | |
| 50 | * / | |
| 51 | pr otected vo id buildTo String(ToS tringBuild er builder ) { | |
| 52 | buil der.append ("batchPro cessDetail ", batchPr ocessDetai l); | |
| 53 | buil der.append ("triggerS tatus", tr iggerStatu s); | |
| 54 | } | |
| 55 | ||
| 56 | /* * | |
| 57 | * @return R eturns the triggerSt atus. | |
| 58 | * / | |
| 59 | pu blic Trigg erStatus g etTriggerS tatus() { | |
| 60 | retu rn trigger Status; | |
| 61 | } | |
| 62 | ||
| 63 | /* * | |
| 64 | * @param tr iggerStatu s | |
| 65 | * The trig gerStatus to set. | |
| 66 | * / | |
| 67 | pu blic void setTrigger Status(Tri ggerStatus triggerSt atus) { | |
| 68 | this .triggerSt atus = tri ggerStatus ; | |
| 69 | } | |
| 70 | ||
| 71 | pu blic boole an isTrigg erExist() { | |
| 72 | retu rn trigger Status != null && St ringUtils. isNotBlank (triggerSt atus.getSt atus()); | |
| 73 | } | |
| 74 | ||
| 75 | pu blic boole an isActiv e() { | |
| 76 | retu rn trigger Status != null ? tri ggerStatus .isActive( ) : false; | |
| 77 | } | |
| 78 | ||
| 79 | pu blic Strin g getEmail Distributi onList() { | |
| 80 | retu rn emailDi stribution List; | |
| 81 | } | |
| 82 | ||
| 83 | pu blic void setEmailDi stribution List(Strin g emailDis tributionL ist) { | |
| 84 | this .emailDist ributionLi st = email Distributi onList; | |
| 85 | } | |
| 86 | ||
| 87 | /* | |
| 88 | * (non-Java doc) | |
| 89 | * | |
| 90 | * @see java .lang.Comp arable#com pareTo(jav a.lang.Obj ect) | |
| 91 | * / | |
| 92 | pu blic int c ompareTo(O bject o) { | |
| 93 | if ( o instance of BatchPr ocessDetai lStatus) { | |
| 94 | BatchP rocessDeta ilStatus o ther = (Ba tchProcess DetailStat us) o; | |
| 95 | Date o therDate = other.get TriggerSta tus().getN extFireTim e(); | |
| 96 | Date m yDate = tr iggerStatu s.getNextF ireTime(); | |
| 97 | if (ot herDate == null && m yDate != n ull) | |
| 98 | return - 1; // if o ther guy h as no date , I should be deemed | |
| 99 | // bef ore him | |
| 100 | if (ot herDate == null && m yDate == n ull) | |
| 101 | return 0 ; | |
| 102 | ||
| 103 | if (ot herDate != null && m yDate == n ull) | |
| 104 | return 1 ; | |
| 105 | return myDate.co mpareTo(ot herDate); | |
| 106 | } | |
| 107 | retu rn 1; | |
| 108 | } | |
| 109 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.