18. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/2/2019 1:06:54 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.

18.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller ArchiveRestController.java Wed Mar 27 19:21:11 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller ArchiveRestController.java Thu Mar 28 17:50:40 2019 UTC

18.2 Comparison summary

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

18.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

18.4 Active regular expressions

No regular expressions were active.

18.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.a rs.control ler;
  5  
  6   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  7   import org .springfra mework.htt p.HttpStat us;
  8   import org .springfra mework.htt p.Response Entity;
  9   import org .springfra mework.web .bind.anno tation.Pos tMapping;
  10   import org .springfra mework.web .bind.anno tation.Req uestBody;
  11   import org .springfra mework.web .bind.anno tation.Req uestMappin g;
  12   import org .springfra mework.web .bind.anno tation.Res tControlle r;
  13  
  14   import gov .va.med.ar s.exceptio ns.Generic Exception;
  15   import gov .va.med.ar s.model.re quest.Json ArrayModel ;
  16   import gov .va.med.ar s.service. IArchiveSe rvice;
  17   import net .minidev.j son.JSONOb ject;
  18  
  19   /**
  20    * @author  
D NS     GANGAV
  21    *
  22    */
  23   @RestContr oller
  24   @RequestMa pping("/ap i/v1/archi ve")
  25   public cla ss Archive RestContro ller {
  26  
  27           @A utowired
  28           IA rchiveServ ice archiv eService;
  29  
  30           @P ostMapping
  31           pu blic Respo nseEntity< ?> getAtta chmentsArc hived(@Req uestBody J sonArrayMo del archiv eAttachmen ts) throws  GenericEx ception {
  32                    JSON Object res ponse = nu ll;
  33                    bool ean archiv ed = archi veService. archiveAtt achments(a rchiveAtta chments);
  34                    if ( archived)  {
  35                             respon se = new J SONObject( );
  36                             respon se.put("re sponse", a rchived);
  37                             return  new Respo nseEntity< >(response , HttpStat us.OK);
  38                    } el se {
  39                             respon se = new J SONObject( );
  40                             respon se.put("er rorCode",  "Invalid R equest");
  41                             respon se.put("me ssage", "P lease arch ive valid  Attachment  Id's.");
  42                             return  new Respo nseEntity< >(response , HttpStat us.BAD_REQ UEST);
  43                    }
  44           }
  45  
  46   }