Produced by Araxis Merge on 6/11/2019 10:54:14 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\report | SynchronousReportService.java | Wed May 29 15:26:02 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\report | SynchronousReportService.java | Mon Jun 10 19:27:47 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 200 |
| 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 2004 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | // Package | |
| 5 | package go v.va.med.f w.report; | |
| 6 | ||
| 7 | // Java cl asses | |
| 8 | ||
| 9 | // Library classes | |
| 10 | import org .apache.co mmons.lang .Validate; | |
| 11 | import org .springfra mework.ste reotype.Se rvice; | |
| 12 | ||
| 13 | import gov .va.med.fw .report.da ta.ReportD ata; | |
| 14 | import gov .va.med.fw .service.A bstractCom ponent; | |
| 15 | import gov .va.med.fw .service.S erviceExce ption; | |
| 16 | ||
| 17 | // ESR cla sses | |
| 18 | ||
| 19 | /** | |
| 20 | * | |
| 21 | * | |
| 22 | * Project : Framewor k</br> Cre ated on: 4 :27:51 PM </br> | |
| 23 | * | |
| 24 | * @author DN S
|
|
| 25 | */ | |
| 26 | @Service | |
| 27 | public cla ss Synchro nousReport Service ex tends Abst ractCompon ent implem ents Repor tService { | |
| 28 | ||
| 29 | /* * | |
| 30 | * An instan ce of seri alVersionU ID | |
| 31 | * / | |
| 32 | pr ivate stat ic final l ong serial VersionUID = -355795 8044224151 158L; | |
| 33 | ||
| 34 | /* * | |
| 35 | * A default construct or | |
| 36 | * / | |
| 37 | pu blic Synch ronousRepo rtService( ) { | |
| 38 | supe r(); | |
| 39 | } | |
| 40 | ||
| 41 | /* * | |
| 42 | * Generates a report using the specific r eport conf iguration. Use this | |
| 43 | * method to generate a report t hat alread y has a we ll statica lly define d | |
| 44 | * report cr iteria set , and repo rt templat e. A repor t criteria set is us ed | |
| 45 | * to query report dat a to popul ate a repo rt templat e. | |
| 46 | * | |
| 47 | * @param co nfiguratio n | |
| 48 | * A report configura tion | |
| 49 | * @return R eport that encapsula tes the ac tual forma tted repor t | |
| 50 | * / | |
| 51 | pu blic void buildRepor t(ReportCo nfiguratio n configur ation) thr ows Servic eException { | |
| 52 | this .getReport Builder(co nfiguratio n).buildRe port(confi guration); | |
| 53 | } | |
| 54 | ||
| 55 | /* * | |
| 56 | * Generates a report using the specific r eport conf iguration and data | |
| 57 | * | |
| 58 | * @param co nfiguratio n | |
| 59 | * A report configura tion | |
| 60 | * @param da ta | |
| 61 | * Data to generate a report | |
| 62 | * @return R eport that encapsula tes the ac tual forma tted repor t | |
| 63 | * / | |
| 64 | pu blic void buildRepor t(ReportCo nfiguratio n configur ation, Rep ortData da ta) | |
| 65 | throws ServiceEx ception { | |
| 66 | this .getReport Builder(co nfiguratio n).buildRe port(confi guration, data); | |
| 67 | } | |
| 68 | ||
| 69 | /* * | |
| 70 | * Returns t he specifi c report b uilder tha t knows ho w to build a report A | |
| 71 | * report bu ilder is l ooked up i n an appli cation con text using a report name | |
| 72 | * as a uniq ue ID. | |
| 73 | * | |
| 74 | * @param co nfiguratio n | |
| 75 | * A report configura tion | |
| 76 | * @return R eportBuild er a build er to buil d a report | |
| 77 | * @throws R eportExcep tion | |
| 78 | * Thrown in case of errors ob taining a builder | |
| 79 | * / | |
| 80 | pr otected Re portBuilde r getRepor tBuilder(R eportConfi guration c onfigurati on) | |
| 81 | throws ReportExc eption { | |
| 82 | ||
| 83 | Vali date.notNu ll(configu ration, "A report co nfiguratio n must not be NULL") ; | |
| 84 | Vali date.notNu ll(configu ration.get ReportName (), "A rep ort name m ust not be NULL"); | |
| 85 | ||
| 86 | Repo rtBuilder builder = null; | |
| 87 | try { | |
| 88 | builde r = (Repor tBuilder) this.getCo mponent(co nfiguratio n.getRepor tName(), | |
| 89 | ReportBuil der.class) ; | |
| 90 | } ca tch (Excep tion e) { | |
| 91 | if (lo gger.isDeb ugEnabled( )) { | |
| 92 | logger.d ebug("A bu ilder is n ot configu red for re port [" | |
| 93 | + configurat ion.getRep ortName() + "]"); | |
| 94 | logger.d ebug("Use a default builder: " + Configu rableRepor tBuilder.c lass.getNa me()); | |
| 95 | } | |
| 96 | logger .error("Fa iled to ge t a report builder", e); | |
| 97 | throw new Report Exception( "Failed to get a rep ort builde r", e); | |
| 98 | } | |
| 99 | retu rn builder ; | |
| 100 | } | |
| 101 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.