4288. EPMO Open Source Coordination Office Redaction File Detail Report

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

4288.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:26 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\helper\facility FacilityHelper.java Fri Apr 21 20:03:30 2017 UTC

4288.2 Comparison summary

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

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

4288.4 Active regular expressions

No regular expressions were active.

4288.5 Comparison detail

        1   package go v.va.nvap. web.helper .facility;
        2  
        3   import gov .va.nvap.c ommon.vali dation.Nul lChecker;
        4   import gov .va.nvap.s vc.facilit y.data.Fac ility;
        5   import gov .va.nvap.s vc.facilit y.intf.Ent ityDoesNot ExistExcep tion;
        6   import gov .va.nvap.s vc.facilit y.intf.Fac ilityServi ce;
        7  
        8   import jav a.util.Col lection;
        9   import jav a.util.Col lections;
        10   import jav a.util.Com parator;
        11   import jav a.util.Has hMap;
        12   import jav a.util.Lis t;
        13   import jav a.util.Map ;
        14   import jav a.util.log ging.Level ;
        15   import jav a.util.log ging.Logge r;
        16  
        17   import org .springfra mework.bea ns.factory .Initializ ingBean;
        18   import org .springfra mework.bea ns.factory .annotatio n.Required ;
        19  
        20   /**
        21    * A Utili ty class t o get the  assigning  authority  name based  on a orga nization
        22    * oid.
        23    * 
        24    * @author  Asha Amri traj
        25    * 
        26    */
        27   public cla ss Facilit yHelper im plements I nitializin gBean {
        28  
        29           pr ivate stat ic final L ogger logg er = Logge r.getLogge r(Facility Helper.cla ss
        30                             .getNa me());
        31  
        32           //  Keep a ca che of nam es - they  would not  change.
        33           pr ivate fina l Map<Stri ng, String > aaNames  = new Hash Map<String , String>( );
        34           pr ivate Faci lityServic e facility Service;
        35           
        36           // Collection <Facility>  allFacili ties = nul l;
        37           // Collection <Facility>  supported Facilities  = null;
        38  
        39           @O verride
        40           pu blic void  afterPrope rtiesSet()  throws Ex ception {
        41                    // P re-load if  needed!
        42           //       allF acilities  = this.fac ilityServi ce.getAllV istAFacili ties();
        43           //       supp ortedFacil ities = th is.facilit yService.g etAllowedV istAFacili ties();
        44           }
        45  
        46           /* *
        47            *  Get the a llowed Vis tA Facilit ies.
        48            * /
        49           pu blic Colle ction<Faci lity> getA llowedVist AFacilitie s() {
        50                    retu rn this.fa cilityServ ice.getAll owedVistAF acilities( );
        51                    //re turn this. supportedF acilities;
        52           }
        53           
        54           /* *
        55            *  Get the A ll VistA F acilities.
        56            * /
        57           pu blic Colle ction<Faci lity> getA llVistAFac ilities()  {
        58                    retu rn this.fa cilityServ ice.getAll VistAFacil ities();
        59                    //re turn this. allFacilit ies;
        60           }
        61  
        62           /* *
        63            *  Get the a uthority n ame by the  organizat ion oid. C alls the P IP to get  the
        64            *  informati on.
        65  
        66           pu blic Strin g getAutho rityName(f inal Strin g oid) {
        67                    if ( this.aaNam es.contain sKey(oid))  {
        68                             return  this.aaNa mes.get(oi d);
        69                    } el se {
        70                             final  String val ue = this. pip.getAut horityName (oid);
        71                             this.a aNames.put (oid, valu e);
        72                             return  value;
        73                    }
        74  
        75           }
        76            * /
        77           pu blic Facil ity getFac ilityBySta tionId(fin al String  stationId)  {
        78                    Faci lity fac =  null;
        79                    if ( NullChecke r.isNullOr Empty(stat ionId)) {
        80                             return  fac;
        81                    }
        82                    try  {
        83                             fac =  this.facil ityService .getFacili tyByStatio nNumber(st ationId);
        84                    } ca tch (final  Exception  ex) {
        85                             //Faci lityHelper .logger
        86                             //                .warning(" Exception  thrown try ing to exe cute getFa cilityBySt ationId["
        87                             //                                 + st ationId +  "] -" + ex .getMessag e());
        88                             Facili tyHelper.l ogger
        89                             .warni ng("Except ion thrown  trying to  execute g etFacility ByStationI d");                    
        90                    }
        91                    retu rn fac;
        92  
        93           }
        94  
        95           pu blic Strin g getFacil ityNameByS tationId(f inal Strin g stationI d) {
        96                    fina l Facility  fac = thi s.getFacil ityByStati onId(stati onId);
        97                    Stri ng facilit yName = "" ;
        98                    if ( fac != nul l) {
        99                             facili tyName = f ac.getFaci lityName() ;
        100                    }
        101                    retu rn facilit yName;
        102           }
        103           
        104           @R equired
        105           pu blic void  setFacilit yService(f inal Facil ityService  facilityS ervice) {
        106                    this .facilityS ervice = f acilitySer vice;
        107           }
        108           
        109           pu blic  Stri ng getFaci ltyStation IdByUserId (final Str ing userId ) {
        110                    Stri ng facilit yStationId  = "";
        111                    Faci lity fac =  getFacili tyStationB yVHAUserId (userId);
        112                    if ( fac != nul l) {
        113                             facili tyStationI d = fac.ge tFacilityS tation();
        114                    }
        115                    retu rn facilit yStationId ;
        116           }
        117           
        118  
        119           pu blic Facil ity getFac ilityStati onByVHAUse rId(final  String use rId) {
        120                    Faci lity fac =  null;
        121                    try  {
        122                             fac =  this.facil ityService .getVHAUse rFacility( userId);
        123                    } ca tch (Illeg alArgument Exception  e) {
        124                             // TOD O Auto-gen erated cat ch block
        125                             //e.pr intStackTr ace();
        126                    } ca tch (Entit yDoesNotEx istExcepti on e) {
        127                             // TOD O Auto-gen erated cat ch block
        128                             //e.pr intStackTr ace();
        129                    }
        130                    retu rn fac;
        131           }
        132  
        133   }