81. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/25/2019 8:58:05 AM 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.

81.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IMAG_Source\VISA\Java\ViewerImagingWebApp\main\src\java\gov\va\med\imaging\viewer\commands GetImageFiltersCommand.java Mon Mar 18 20:39:08 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\ViewerImagingWebApp\main\src\java\gov\va\med\imaging\viewer\commands GetImageFiltersCommand.java Tue Mar 19 12:04:12 2019 UTC

81.2 Comparison summary

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

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

81.4 Active regular expressions

No regular expressions were active.

81.5 Comparison detail

  1   package go v.va.med.i maging.vie wer.comman ds;
  2  
  3   import gov .va.med.Pa tientIdent ifier;
  4   import gov .va.med.Ro utingToken ;
  5   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  6   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  7   import gov .va.med.im aging.core .interface s.exceptio ns.Patient NotFoundEx ception;
  8   import gov .va.med.im aging.exch ange.Routi ngTokenHel per;
  9   import gov .va.med.im aging.exch ange.trans lation.exc eptions.Tr anslationE xception;
  10   import gov .va.med.im aging.view er.busines s.CaptureU serResult;
  11   import gov .va.med.im aging.view er.busines s.ImageFil terResult;
  12   import gov .va.med.im aging.view er.datasou rce.Viewer ImagingDat aSourceSer vice;
  13   import gov .va.med.im aging.view er.rest.tr anslator.V iewerImagi ngRestTran slator;
  14   import gov .va.med.im aging.view er.rest.ty pes.Captur eUserResul tsType;
  15   import gov .va.med.im aging.view er.rest.ty pes.ImageF ilterResul tsType;
  16   import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField;
  17  
  18   import jav a.util.Has hMap;
  19   import jav a.util.Lis t;
  20   import jav a.util.Map ;
  21  
  22   import org .apache.lo gging.log4 j.LogManag er;
  23   import org .apache.lo gging.log4 j.Logger;
  24  
  25   /**
  26    * @author   DNS     tjahjb
  27    * @param  List<Image FilterResu lt>
  28    * @param  ImageFilte rResultsTy pe
  29    *
  30    */
  31   public cla ss GetImag eFiltersCo mmand
  32   extends Ab stractView erImagingC ommands<Li st<ImageFi lterResult >, ImageFi lterResult sType>
  33   {
  34           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(View erImagingD ataSourceS ervice.cla ss);
  35  
  36           pr ivate Stri ng siteNum ber;
  37           pr ivate Stri ng userId;
  38           pr ivate Stri ng interfa ceVersion;
  39  
  40           pu blic GetIm ageFilters Command(
  41                             String  siteNumbe r,
  42                             String  userId,
  43                             String  interface Version)
  44           {
  45                    supe r("GetImag eFiltersCo mmand");
  46                    this .siteNumbe r = siteNu mber;
  47                    this .userId =  userId;
  48                    this .interface Version =  interfaceV ersion;
  49           }
  50  
  51           @O verride
  52           pr otected Li st<ImageFi lterResult > executeR outerComma nd() 
  53           th rows Metho dException , Connecti onExceptio n
  54           {
  55                    try
  56                    {
  57                             logger .info("Get ImageFilte rsCommand  parameters : " + getM ethodParam eterValues String());
  58                             Routin gToken rou tingToken  = RoutingT okenHelper .createSit eAppropria teRoutingT oken(getSi teId());
  59  
  60                             return  getRouter ().getImag eFilters(
  61                                               routingTok en, 
  62                                               getUserId( ));
  63  
  64                    }
  65                    catc h(Exceptio n e)
  66                    {
  67                             // log ging and t ransaction  context s etting han dled by ca lling meth od
  68                             throw  new Method Exception( e);
  69                    }
  70           }
  71  
  72           pr ivate Stri ng getSite Id() {
  73                    retu rn siteNum ber;
  74           }
  75  
  76           /* *
  77            *  @return t he userId
  78            * /
  79           pu blic Strin g getUserI d()
  80           {
  81                    retu rn this.us erId;
  82           }
  83           
  84           @O verride
  85           pu blic Strin g getInter faceVersio n()
  86           {
  87                    retu rn interfa ceVersion;
  88           }
  89  
  90           
  91           /*  (non-Java doc)
  92            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getMet hodParamet erValuesSt ring()
  93            * /
  94           @O verride
  95           pr otected St ring getMe thodParame terValuesS tring()
  96           {
  97                    retu rn "Site N umber [" +  getSiteId () + ", Us er ID [" +  getUserId () + "] ";
  98           }
  99  
  100  
  101           @O verride
  102           pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField,  String> g etTransact ionContext Fields()
  103           {
  104                    Map< Webservice InputParam eterTransa ctionConte xtField, S tring> tra nsactionCo ntextField s = 
  105                             new Ha shMap<Webs erviceInpu tParameter Transactio nContextFi eld, Strin g>();
  106                    
  107                    tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.quality , transact ionContext NaValue);
  108                    tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.queryFi lter, tran sactionCon textNaValu e);
  109  
  110                    retu rn transac tionContex tFields;
  111           }
  112           
  113  
  114           @O verride
  115           pu blic Integ er getEntr iesReturne d(ImageFil terResults Type res) 
  116           {
  117                    retu rn res.get ImageFilte rs().lengt h; 
  118           }
  119  
  120           /*  (non-Java doc)
  121            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#transl ateRouterR esult(java .lang.Obje ct)
  122            * /
  123           @O verride
  124           pr otected Im ageFilterR esultsType  translate RouterResu lt(
  125                             List<I mageFilter Result> ro uterResult )
  126           th rows Trans lationExce ption, Met hodExcepti on 
  127           {
  128                    retu rn ViewerI magingRest Translator .translate (routerRes ult);
  129           }
  130  
  131           @O verride
  132           pr otected Cl ass<ImageF ilterResul tsType> ge tResultCla ss() {
  133                    retu rn ImageFi lterResult sType.clas s;
  134           }
  135  
  136   }
  137  
  138  
  139