4347. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:30 PM 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.

4347.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:30 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-web\src\main\java\gov\va\nvap\web\util Constants.java Fri Apr 21 20:03:30 2017 UTC

4347.2 Comparison summary

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

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

4347.4 Active regular expressions

No regular expressions were active.

4347.5 Comparison detail

        1   package go v.va.nvap. web.util;
        2  
        3   import jav a.io.IOExc eption;
        4   import jav a.io.Input Stream;
        5   import jav a.util.Pro perties;
        6  
        7   /**
        8    * Class t o hold all  constants .
        9    * @author  Sridhar V arma Allur i
        10    * @since  12/17/2014
        11    */
        12   public cla ss Constan ts {
        13           pu blic stati c final bo olean PURP OSE_OF_USE _FLAG = tr ue;
        14       
        15       privat e static f inal Strin g APPLICAT ION_PROPER TIES_FILE  = "gov/va/ nvap/web/a pplication .propertie s";
        16       privat e static f inal Strin g ENDPOINT S_PROPERTI ES_FILE =  "gov/va/nv ap/web/end points.pro perties";
        17       privat e static f inal Strin g ORGANIZA TION_NAME  = "organiz ationName" ;
        18       privat e static f inal Strin g EXPIRED_ NOTIFICATI ON_LETTERS _MAXTIME =  "expiredN otificatio nLettersMa xTime";
        19       privat e static f inal Strin g EXPIRED_ NOTIFICATI ON_PERLETT ER_TIME =  "expiredNo tification PerLetterT ime";
        20       privat e static f inal Strin g DAS_RETR IEVEDOCUME NT = "das. retrieveDo cument";
        21       privat e static f inal Strin g DAS_RETR IEVEONEDOC UMENT = "d as.retriev eOneDocume nt";
        22       privat e static f inal Strin g DAS_USEM OCKRETRIEV E = "das.u seMockRetr ieve";
        23       
        24       privat e static S tring orga nizationNa me;
        25       privat e static S tring expi redNotific ationLette rsMaxTime;
        26       privat e static S tring expi redNotific ationPerLe tterTime;
        27       
        28       privat e static S tring dasR etrieveDoc umentEndPo int;
        29       privat e static S tring dasR etrieveOne DocumentEn dPoint;
        30       privat e static b oolean das UseMockRet rieve = tr ue;
        31       
        32       static {
        33            I nputStream  propInStr eam = 
        34                              Const ants.class .getClassL oader().ge tResourceA sStream(AP PLICATION_ PROPERTIES _FILE);
        35            
        36            P roperties  appPropert ies = new  Properties ();
        37            i f (propInS tream != n ull) {
        38                 try {
        39                     app Properties .load(prop InStream);
        40                     org anizationN ame = appP roperties. getPropert y(ORGANIZA TION_NAME) ;
        41                     exp iredNotifi cationLett ersMaxTime  = appProp erties.get Property(E XPIRED_NOT IFICATION_ LETTERS_MA XTIME);
        42                     exp iredNotifi cationPerL etterTime  = appPrope rties.getP roperty(EX PIRED_NOTI FICATION_P ERLETTER_T IME);
        43                     
        44                 } catch  (IOExcept ion ex) {
        45                     org anizationN ame = "eHe alth Excha nge";
        46                 }finall y{
        47                     try {
        48                              propI nStream.cl ose();
        49                     } c atch (IOEx ception ex ) {
        50                              organ izationNam e = "eHeal th Exchang e";
        51                     }
        52                 }              
        53            }
        54            e lse {
        55                 organiz ationName  = "eHealth  Exchange" ;
        56            }
        57            
        58            I nputStream  endPointI nStream = 
        59                              Const ants.class .getClassL oader().ge tResourceA sStream(EN DPOINTS_PR OPERTIES_F ILE);
        60            
        61            P roperties  endPointPr operties =  new Prope rties();
        62            i f (endPoin tInStream  != null) {
        63                 try {
        64                    endP ointProper ties.load( endPointIn Stream);
        65                    dasR etrieveDoc umentEndPo int = endP ointProper ties.getPr operty(DAS _RETRIEVED OCUMENT);
        66                    dasR etrieveOne DocumentEn dPoint = e ndPointPro perties.ge tProperty( DAS_RETRIE VEONEDOCUM ENT);
        67                    dasU seMockRetr ieve = Boo lean.parse Boolean(en dPointProp erties.get Property(D AS_USEMOCK RETRIEVE)) ;
        68                    endP ointInStre am.close() ;
        69                 } catch  (IOExcept ion ex) {
        70                    dasR etrieveDoc umentEndPo int = "";
        71                    dasR etrieveOne DocumentEn dPoint  =  "";
        72                    dasU seMockRetr ieve = tru e;
        73                 } final ly{
        74                     try {
        75                              endPo intInStrea m.close();
        76                     } c atch (IOEx ception ex ) {
        77                             dasRet rieveDocum entEndPoin t = "";
        78                         dasRetriev eOneDocume ntEndPoint   = "";
        79                             dasUse MockRetrie ve = true;
        80                     }
        81                 }                
        82  
        83            }
        84            e lse {
        85                    dasR etrieveDoc umentEndPo int = "";
        86                    dasR etrieveOne DocumentEn dPoint  =  "";
        87                    dasU seMockRetr ieve = tru e;
        88            }
        89            
        90       }
        91       public  Constants (){       
        92       }
        93       
        94       public  static St ring getOr ganization Name() {
        95           re turn organ izationNam e;
        96       }
        97       
        98       public  static St ring getEx piredNotif icationLet tersMaxTim e() {
        99           re turn expir edNotifica tionLetter sMaxTime;
        100       }
        101       
        102       public  static St ring getEx piredNotif icationPer LetterTime () {
        103           re turn expir edNotifica tionPerLet terTime;
        104       }
        105       
        106       public  static St ring getDa sRetrieveD ocumentEnd Point() {
        107           re turn dasRe trieveDocu mentEndPoi nt;
        108       }
        109        publi c static S tring getD asRetrieve OneDocumen tEndPoint( ) {
        110           re turn dasRe trieveOneD ocumentEnd Point;
        111       }
        112  
        113           pu blic stati c boolean  isDasUseMo ckRetrieve () {
        114                    retu rn dasUseM ockRetriev e;
        115           }       
        116   }