87. EPMO Open Source Coordination Office Redaction File Detail Report

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.

87.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\ARS_Backend\ars_app\src\main\java\gov\va\med\ewv\service IEwvPdfReferenceService.java Wed Mar 27 19:21:14 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\ARS_Backend\ars_app\src\main\java\gov\va\med\ewv\service IEwvPdfReferenceService.java Thu Mar 28 17:51:04 2019 UTC

87.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 208
Changed 1 2
Inserted 0 0
Removed 0 0

87.3 Comparison options

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

87.4 Active regular expressions

No regular expressions were active.

87.5 Comparison detail

  1   package go v.va.med.e wv.service ;
  2  
  3   import jav a.util.Lis t;
  4  
  5   import org .springfra mework.web .multipart .Multipart File;
  6  
  7   import gov .va.med.ar s.exceptio ns.Generic Exception;
  8   import gov .va.med.do main.ewv.E wvReferenc es;
  9   import gov .va.med.ew v.bean.Arc hivedPdfRe ference;
  10   import gov .va.med.ew v.model.re sponse.Ewd PdfReferen cesFileArc hiveRespon se;
  11   import gov .va.med.ew v.model.re sponse.Ewd PdfReferen cesFileUpl oadRespons e;
  12   import gov .va.med.ew v.model.re sponse.Ewv PdfReferen cesRespons e;
  13  
  14   /**
  15    * Interfa ce for var ious metho ds pertain ing to the  PDF Refer ences that
  16    * are sto red in the  database.
  17    * 
  18    * @author   DN S      PEREZF
  19    *
  20    */
  21   public int erface IEw vPdfRefere nceService  {
  22           
  23           /* *
  24            *  Gets all  the PDF Re ferences t hat are in  the datab ase.
  25            *  
  26            *  @return -  the RESTF ul Web Ser vice Respo nse for al l the PDF  References  that are  in the dat abase
  27            *  @throws G enericExce ption - th rown if an y type of  Exception  occurs
  28            * /
  29           Ew vPdfRefere ncesRespon se getAllP dfReferenc es() throw s GenericE xception;
  30           
  31           /* *
  32            *  Inserts a  PDF Refer ence into  the databa se having  the inform ation as i n the give
  33            *  "ewvRefer ences" inp ut paramet er.
  34            *  
  35            *  The metho d will do  the follow ing:
  36            *  1) Check  for valid  inputs. Th e followin g constitu tes invali d inputs a nd an Exce ption will  be thrown
  37            *     for an y of the f ollowing i nvalid inp uts:
  38            *     a) "ew vReference s" is null
  39            *     b) Ref erence Nam e of "ewvR eferences"  is null
  40            *     c) Ref erence Nam e of "ewvR eferences"  is an emp ty string  or is comp osed of sp aces
  41            *     d) Ref erence Fil e Name of  "ewvRefere nces" is n ull
  42            *     e) Ref erence Fil e Name of  "ewvRefere nces" is a n empty st ring or is  composed  of spaces
  43            *     f) An  un-archive d PDF Refe rence exis ts in the  database t hat has th e same Ref erence Nam e (Trimmed
  44            *        val ue of "ewv References "
  45            *     g) An  un-archive d PDF Refe rence exis ts in the  database t hat has th e same Ref erence Fil e Name (Tr immed) 
  46            *        val ue of "ewv References " input
  47            *  2) Sets t he "guid"  value of " ewvReferen ces" to nu ll
  48            *  3) Sets t he "archiv e" value t o "false",  since onl y un-archi ved PDF Re ferences w ill be per mitted to  be
  49            *     insert ed into th e database
  50            *  4) Trims  the Refere nce Name a nd Referen ce File Na me values  of the "ew vReference s" input
  51            *  5) Insert s a PDF Re ference in to the dat abase from  the infor mation in  the "ewvRe ference" i nput param eter
  52            *  
  53            *  @param ew vReference s - the in put parame ter that c ontains th e PDF Refe rences inf ormation t o be inser ted
  54            *                           into t he databas e
  55            *  @param co mmitToData base - boo lean flag  to indicat e if the i nsert shou ld be comm itted to t he databas e;
  56            *                              boo lean "true " means to  commit to  the datab ase; 
  57            *                              boo lean "fals e" means t o NOT comm it to the  database
  58            *                              
  59            *  @return -  a referen ce to the  EwvRefernc es object  inserted i nto the da tabase; it  will have  the infor mation tha t
  60            *             was store d in the d atabase in cluding th e unique n on-null "g uid" value .
  61            *  
  62            *  @throws E xception -  an Except ion is thr ows in one  of the fo llowing sc enarios:
  63            *                        1) The "e wvReferenc es" input  parameter  has invali d input va lue(s)
  64            *                        2) Insert  of PDF Re ference in to the dat abase was  not succes sful
  65            * /
  66           // public Ewv References  insertPdf Reference( EwvReferen ces ewvRef erences) t hrows Exce ption;
  67           
  68       /**
  69        * Upl oads (i.e. , saves th e contents  into the  server fil e system)  a list of  "files" in to the ser ver file s ystem as 
  70        * wel l as inser t PDF Refe rences of  those file s into the  database.
  71        * 
  72        * @pa ram files  - a list o f Multipar tFile obje cts; each  such objec t contains  the appro priate inf ormation f or one 
  73        *                  file tha t will be  used to sa ve its con tents into  the serve r file sys tem as wel l as its P DF
  74        *                  Referenc e informat ion in the  database
  75        * 
  76        * @re turn - ins tance of E wdPdfRefer encesFileU ploadRespo nse Java c lass; it w ill show w hich Files  
  77            *             have had  their cont ents store d successf ully into  the server  file syst em as well  as their  PDF Refere nce 
  78            *             informati on in the  database a nd which h ave not. I n those in stances th at are uns uccessful,  the reaso
  79            *             for not b eing succe ssful will  be includ ed in the  response
  80        */
  81       public  EwdPdfRef erencesFil eUploadRes ponse save UploadedFi les(List<M ultipartFi le> files) ;
  82       
  83       /**
  84        * Mar ks one or  more PDF R eferences  to the Arc hived stat e.
  85        * 
  86        * @pa ram archiv edPdfRefer ences - a  list of Ar chivedPdfR eference o bjects; ea ch such ob ject conta ins the ap propriate 
  87        *                  informat ion to ide ntify whic h PDF Refe rence in t he databas e will be  marked as  archived
  88        * 
  89        * @re turn - Ewv ClaimDetai lResponse  Java class  instance;  it will s how which  PDF Refere nces have  been place
  90            *             successfu lly in the  Archived  state and  which have  not. In t hose insta nces that  are unsucc essful, th
  91            *             reason fo r not bein g successf ul will be  included  in the res ponse
  92        */
  93       public  EwdPdfRef erencesFil eArchiveRe sponse upd ateUploade dFiles(Lis t<Archived PdfReferen ce> archiv edPdfRefer ences);
  94       
  95           /* *
  96            *  Gets the  Reference  File Name  of an EWV_ REFERENCE  record giv en it's GU ID Id.
  97            *  
  98            *  @param fi leId - the  GUID that  uniquely  identifies  a record  in the EWV _REFERENCE S table
  99            *  
  100            *  @return -  the Refer ence File  Name assoc iated with  the EWV_R EFERENCE t able recor d
  101            *  
  102            *  @throws G enericExce ption - th rown if so me error o ccurs
  103            * /
  104           pu blic Strin g getPathF orTheAttac hment(Stri ng fileId)  throws Ge nericExcep tion;
  105   }