Produced by Araxis Merge on 12/13/2018 10:35:24 AM Eastern Standard 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 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\service\report\impl | ReportGenerationServiceImpl.java | Fri Dec 7 17:36:42 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\service\report\impl | ReportGenerationServiceImpl.java | Wed Dec 12 22:33:39 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 204 |
| 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 | // * | |
| 3 | // */ | |
| 4 | //package gov.va.med .ccht.serv ice.report .impl; | |
| 5 | // | |
| 6 | //import j ava.util.D ate; | |
| 7 | //import j ava.util.M ap; | |
| 8 | // | |
| 9 | //import o rg.apache. commons.la ng3.Valida te; | |
| 10 | //import o rg.springf ramework.b eans.facto ry.annotat ion.Autowi red; | |
| 11 | //import o rg.springf ramework.s tereotype. Service; | |
| 12 | // | |
| 13 | //import g ov.va.med. ccht.model .report.Re portSetup; | |
| 14 | //import g ov.va.med. ccht.model .report.Sc heduledRep ort; | |
| 15 | //import g ov.va.med. ccht.servi ce.report. ReportCons tants; | |
| 16 | //import g ov.va.med. ccht.servi ce.report. ReportGene rationServ ice; | |
| 17 | //import g ov.va.med. ccht.servi ce.report. StandardRe portServic e; | |
| 18 | //import g ov.va.med. fw.model.E ntityKeyFa ctory; | |
| 19 | //import g ov.va.med. fw.service .AbstractC omponent; | |
| 20 | //import g ov.va.med. fw.service .ServiceEx ception; | |
| 21 | //import g ov.va.med. fw.util.St ringUtils; | |
| 22 | // | |
| 23 | ///** | |
| 24 | // * @auth or DNS | |
| 25 | // * | |
| 26 | // */ | |
| 27 | //@Service | |
| 28 | //public c lass Repor tGeneratio nServiceIm pl extends AbstractC omponent i mplements | |
| 29 | // Repo rtGenerati onService, ReportCon stants { | |
| 30 | // | |
| 31 | // @A utowired | |
| 32 | // pr ivate Stan dardReport Service st andardRepo rtService = null; | |
| 33 | // | |
| 34 | // /* | |
| 35 | // * (non-Java doc) | |
| 36 | // * | |
| 37 | // * @see | |
| 38 | // * gov.va.me d.IHTA.ser vice.repor t.ReportGe nerationSe rvice#buil dReport(ja va | |
| 39 | // * .util.Map ) | |
| 40 | // * / | |
| 41 | // pu blic void buildRepor t(Map<Stri ng,?> repo rtData) th rows Servi ceExceptio n { | |
| 42 | // try { | |
| 43 | // Report Setup setu p = null; | |
| 44 | // | |
| 45 | // String reportSet upId = (St ring) repo rtData.get (REPORT_SE TUP_ID); | |
| 46 | // | |
| 47 | // // If the id is available get the re port setup object fr om the | |
| 48 | // // dat abase | |
| 49 | // if (St ringUtils. isNotEmpty (reportSet upId)) { | |
| 50 | // Schedule dReport sc heduledRep ort = sta ndardRepor tService.g etSchedule dReport( | |
| 51 | // En tityKeyFac tory.creat eEntityKey (new Long( reportSetu pId), Sche duledRepor t.class)); | |
| 52 | // | |
| 53 | // // updat e report g eneration date for t he schedul ed report | |
| 54 | // schedule dReport.se tReportGen erateDate( new Date() ); | |
| 55 | // try { | |
| 56 | // standardRe portServic e.saveSche duledRepor t(schedule dReport, f alse); | |
| 57 | // //convert and create report se tup | |
| 58 | // setup = ne w ReportSe tup(); | |
| 59 | // setup.setR eportParam eters(sche duledRepor t.getRepor tParameter s()); | |
| 60 | // setup.setR eportParam etersText( scheduledR eport.getR eportParam eterText() ); | |
| 61 | // setup.setR eportSched ule(schedu ledReport. getReportS chedule()) ; | |
| 62 | // setup.setR eportSched uleText(sc heduledRep ort.getRep ortSchedul eText()); | |
| 63 | // setup.setS etupUser(s cheduledRe port.getUs erName()); | |
| 64 | // setup.setE mailAddres s(schedule dReport.ge tEmail()); | |
| 65 | // setup.setF ileType(sc heduledRep ort.getFil eType()); | |
| 66 | // setup.setS tandardRep ort(schedu ledReport. getStandar dReport()) ; | |
| 67 | // } catch (Exception dae) { | |
| 68 | // logger.err or("Could not update run date on schedul ed reports id:" | |
| 69 | // + re portSetupI d); | |
| 70 | // throw new ServiceExc eption("Co uld not up date run d ate on sch eduled rep orts id:" | |
| 71 | // + re portSetupI d, dae); | |
| 72 | // } | |
| 73 | // } else { | |
| 74 | // setup = (ReportSet up) report Data.get(R EPORT_SETU P); | |
| 75 | // } | |
| 76 | // //Save the crite ria if the export ty pe is DATA | |
| 77 | // if (se tup.getFil eType() == null || s etup.getFi leType().g etCode().e quals("9") ) { | |
| 78 | // standard ReportServ ice.saveRe portCriter ia(setup); | |
| 79 | // }else { | |
| 80 | // standard ReportServ ice.buildR eport(setu p); | |
| 81 | // } | |
| 82 | // } ca tch (Excep tion e) { | |
| 83 | // logger .error("Co uld not ge nerate the report " + e.getMes sage()); | |
| 84 | // throw new Servic eException ("Could no t generate the repor t ", e); | |
| 85 | // } | |
| 86 | // } | |
| 87 | // | |
| 88 | // pu blic Stand ardReportS ervice get StandardRe portServic e() { | |
| 89 | // retu rn standar dReportSer vice; | |
| 90 | // } | |
| 91 | // | |
| 92 | // pu blic void setStandar dReportSer vice(Stand ardReportS ervice sta ndardRepor tService) { | |
| 93 | // this .standardR eportServi ce = stand ardReportS ervice; | |
| 94 | // } | |
| 95 | // | |
| 96 | // @O verride | |
| 97 | // pu blic void afterPrope rtiesSet() throws Ex ception { | |
| 98 | // // T ODO Auto-g enerated m ethod stub | |
| 99 | // supe r.afterPro pertiesSet (); | |
| 100 | // Vali date.notNu ll(this.st andardRepo rtService, "A standa rd report service mu st be conf igured"); | |
| 101 | // } | |
| 102 | // | |
| 103 | //} |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.