63. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/27/2018 2:59:09 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.

63.1 Files compared

# Location File Last Modified
1 v2.0_Sprint_15_Build_5.zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller ArchiveRestController.java Tue Apr 24 14:49:54 2018 UTC
2 v2.0_Sprint_15_Build_5..zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\controller ArchiveRestController.java Thu Apr 26 14:58:18 2018 UTC

63.2 Comparison summary

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

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

63.4 Active regular expressions

No regular expressions were active.

63.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.Get Mapping;
  10   import org .springfra mework.web .bind.anno tation.Pat hVariable;
  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.service. IArchiveSe rvice;
  15   import gov .va.med.ar s.validato rs.NumberV alidator;
  16   import net .minidev.j son.JSONOb ject;
  17  
  18   /**
  19    * @author   PI I
  20    *
  21    */
  22   @RestContr oller
  23   @RequestMa pping("/ap i/v1/archi ve")
  24   public cla ss Archive RestContro ller {
  25  
  26           @A utowired
  27           IA rchiveServ ice archiv eService;
  28  
  29           @G etMapping( "/{attachI d}")
  30           pu blic Respo nseEntity< ?> archive Elements(@ PathVariab le("attach Id") Long  attachId)  {
  31                    JSON Object res ponse = nu ll;
  32                    if ( attachId ! = null) {
  33                             boolea n archived  = archive Service.ar chiveAttac hmentId(at tachId);
  34                             if (ar chived) {
  35                                      response  = new JSO NObject();
  36                                      response .put("resp onse", arc hived);
  37                                      return n ew Respons eEntity<>( response,  HttpStatus .OK);
  38                             } else  {
  39                                      response  = new JSO NObject();
  40                                      response .put("erro rCode", "I nvalid Req uest");
  41                                      response .put("mess age", "Ple ase enter  in a valid  Claim ID  or PDI.");
  42                                      return n ew Respons eEntity<>( response,  HttpStatus .BAD_REQUE ST);
  43                             }
  44                    } el se {
  45                             respon se = new J SONObject( );
  46                             respon se.put("er rorCode",  "Invalid R equest");
  47                             respon se.put("me ssage", "C laim ID or  PDI canno t be null. ");
  48                             return  new Respo nseEntity< >(response , HttpStat us.BAD_REQ UEST);
  49                    }
  50           }
  51  
  52   }