3921. EPMO Open Source Coordination Office Redaction File Detail Report

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

3921.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:50:59 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-server\src\main\java\gov\va\nvap\server\service\privacy ExpiringConsentServicePort.java Fri Apr 21 20:03:28 2017 UTC

3921.2 Comparison summary

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

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

3921.4 Active regular expressions

No regular expressions were active.

3921.5 Comparison detail

        1   package go v.va.nvap. server.ser vice.priva cy;
        2  
        3   import gov .va.nvap.p rivacy.Con sentDirect iveDetaile dExpiratio nRequest;
        4   import gov .va.nvap.p rivacy.Exp iringConse ntConfigur ationReque st;
        5   import gov .va.nvap.p rivacy.Exp iringConse ntConfigur ationRespo nse;
        6   import gov .va.nvap.p rivacy.Exp iringConse ntLetterRe sponse;
        7   import gov .va.nvap.s erver.auth .ServiceAu thenticati on;
        8   import gov .va.nvap.s ervice.aut h.ServiceA udit;
        9   import gov .va.nvap.s ervice.aut h.ServiceA uthenticat ionExcepti on;
        10   import gov .va.nvap.s ervice.pri vacy.Expir ingConsent Service;
        11   import jav ax.annotat ion.Resour ce;
        12   import jav ax.ejb.Rem ote;
        13   import jav ax.ejb.Sta teless;
        14   import jav ax.ejb.Tra nsactionAt tribute;
        15   import jav ax.ejb.Tra nsactionAt tributeTyp e;
        16   import jav ax.interce ptor.Inter ceptors;
        17   import jav ax.jws.Web Method;
        18   import jav ax.jws.Web Param;
        19   import jav ax.jws.Web Result;
        20   import jav ax.jws.Web Service;
        21   import jav ax.jws.soa p.SOAPBind ing;
        22   import jav ax.xml.ws. BindingTyp e;
        23   import jav ax.xml.ws. WebService Context;
        24   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
        25   import org .springfra mework.bea ns.factory .annotatio n.Qualifie r;
        26   import org .springfra mework.con text.Appli cationCont ext;
        27   import org .springfra mework.ejb .intercept or.SpringB eanAutowir ingInterce ptor;
        28  
        29   @SuppressW arnings("a ll")
        30   @WebServic e(portName  = "Expiri ngConsentP ort", name  = "Expiri ngConsentP ortType", 
        31           se rviceName  = "Expirin gConsentSe rvice", ta rgetNamesp ace = "htt p://gov.va .nvap.serv ice.privac y/", 
        32           ws dlLocation  = "META-I NF/xml-res ources/web -services/ ConsentMan agementSer vice/wsdl/ ExpiringCo nsentServi ce.wsdl")
        33   @BindingTy pe("http:/ /schemas.x mlsoap.org /wsdl/soap /http")
        34   @SOAPBindi ng(paramet erStyle =  SOAPBindin g.Paramete rStyle.BAR E)
        35   @Stateless (name = "E xpiringCon sentServic e", mapped Name = "Ex piringCons entService ")
        36   @Remote(Ex piringCons entService .class)
        37   @Intercept ors(Spring BeanAutowi ringInterc eptor.clas s)
        38   @Transacti onAttribut e(Transact ionAttribu teType.REQ UIRED)
        39   public cla ss Expirin gConsentSe rvicePort  implements  ExpiringC onsentServ ice {
        40  
        41           /* *
        42            *  Inject Sp ring bean,  so that w e have all  dependenc ies inject ed.
        43            * /
        44           @A utowired
        45           @Q ualifier(v alue = "Ex piringCons entService ")
        46           pr ivate Expi ringConsen tService e xpiringCon sentServic e;
        47           @A utowired
        48           pr ivate Appl icationCon text appli cationCont ext;
        49           @R esource
        50           pr ivate WebS erviceCont ext contex t;
        51           pr ivate Serv iceAuthent ication au th = new S erviceAuth entication ();
        52           
        53           pu blic Expir ingConsent ServicePor t() {
        54           }
        55           /* *
        56            *  @param ex piringCons entConfigu rationRequ est
        57            *  @return r eturns gov .va.nvap.p rivacy.
        58            *          E xpiringCon sentConfig urationRes ponseType
        59            * /
        60           @W ebMethod(o perationNa me = "GetC onfigurati on")
        61           @W ebResult(n ame = "Exp iringConse ntConfigur ationRespo nse", targ etNamespac e = "http: //gov.va.n vap.servic e.privacy/ ", partNam e = "Expir ingConsent Configurat ionRespons e")
        62           pu blic Expir ingConsent Configurat ionRespons e getConfi guration(
        63                             @WebPa ram(name =  "Expiring ConsentCon figuration Request",  targetName space = "h ttp://gov. va.nvap.se rvice.priv acy/", par tName = "E xpiringCon sentConfig urationReq uest") fin al Expirin gConsentCo nfiguratio nRequest e xpiringCon sentConfig urationReq uest)
        64                             {
        65           Se rviceAudit  sa = new  ServiceAud it();
        66           In teger succ ess = 1;
        67                    
        68           tr y {
        69                sa = aut h.checkAut h(context,  applicati onContext,  "getConfi guration") ;
        70           }  catch (Ser viceAuthen ticationEx ception ex ) {
        71                return n ull;
        72           }
        73           
        74           lo ng startTi me = Syste m.currentT imeMillis( );
        75           
        76                    try  {
        77                             return  this.expi ringConsen tService.g etConfigur ation(expi ringConsen tConfigura tionReques t);
        78                    } ca tch (final  Exception  ex) {
        79                             succes s = 0;
        80                             return  null;
        81                    } fi nally {
        82                if (sa ! = null) {
        83                    sa.s etSuccess( success);
        84                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        85                    auth .persist(a pplication Context, s a);
        86                }
        87           }
        88           }
        89           
        90           @W ebMethod(o perationNa me = "Upda teConfigur ation")
        91           pu blic void  updateConf iguration(
        92                             @WebPa ram(name =  "Expiring ConsentCon figuration Request",  targetName space = "h ttp://gov. va.nvap.se rvice.priv acy/", par tName = "E xpiringCon sentConfig urationReq uest") fin al Expirin gConsentCo nfiguratio nRequest e xpiringCon sentConfig urationReq uest)
        93           {
        94           Se rviceAudit  sa = new  ServiceAud it();
        95           In teger succ ess = 1;
        96           
        97           tr y {
        98                sa = aut h.checkAut h(context,  applicati onContext,  "updateCo nfiguratio n");
        99           }  catch (Ser viceAuthen ticationEx ception ex ) {
        100                return;
        101           }
        102           
        103           lo ng startTi me = Syste m.currentT imeMillis( );
        104           
        105                    try  {
        106                             this.e xpiringCon sentServic e.updateCo nfiguratio n(expiring ConsentCon figuration Request);
        107                    } ca tch (final  Exception  ex) {
        108                             succes s = 0;    
        109                    } fi nally {
        110                if (sa ! = null) {
        111                    sa.s etSuccess( success);
        112                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        113                    auth .persist(a pplication Context, s a);
        114                }
        115           }
        116           }
        117           
        118           @W ebMethod(o perationNa me = "Send Report")
        119           pu blic void  sendReport (
        120                             @WebPa ram(name =  "Expiring ConsentCon figuration Request",  targetName space = "h ttp://gov. va.nvap.se rvice.priv acy/", par tName = "E xpiringCon sentConfig urationReq uest") fin al Expirin gConsentCo nfiguratio nRequest e xpiringCon sentConfig urationReq uest)
        121           {
        122           Se rviceAudit  sa = new  ServiceAud it();
        123           In teger succ ess = 1;
        124           
        125           tr y {
        126                sa = aut h.checkAut h(context,  applicati onContext,  "sendRepo rt");
        127           }  catch (Ser viceAuthen ticationEx ception ex ) {
        128                return;
        129           }
        130           
        131           lo ng startTi me = Syste m.currentT imeMillis( );
        132           
        133                    try  {
        134                             this.e xpiringCon sentServic e.sendRepo rt(expirin gConsentCo nfiguratio nRequest);
        135                    } ca tch (final  Exception  ex) {
        136                             succes s = 0;
        137                    } fi nally {
        138                if (sa ! = null) {
        139                    sa.s etSuccess( success);
        140                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        141                    auth .persist(a pplication Context, s a);
        142                }
        143           }
        144           }
        145       
        146       @WebMe thod(opera tionName =  "GetRepor tLetters")
        147       @Overr ide
        148       @WebRe sult(name  = "Expirin gConsentLe tterRespon se", targe tNamespace  = "http:/ /gov.va.nv ap.service .privacy/" , partName  = "Expiri ngConsentL etterRespo nse")
        149           pu blic Expir ingConsent LetterResp onse getRe portLetter s(
        150                             @WebPa ram(name =  "ConsentD irectiveEx pirationRe quest", ta rgetNamesp ace = "htt p://gov.va .nvap.serv ice.privac y/", partN ame = "Con sentDirect iveExpirat ionRequest ") final C onsentDire ctiveDetai ledExpirat ionRequest  consentDi rectiveExp irationReq uest)
        151           {
        152           Se rviceAudit  sa = new  ServiceAud it();
        153           In teger succ ess = 1;
        154           
        155           tr y {
        156                sa = aut h.checkAut h(context,  applicati onContext,  "getRepor tLetters") ;
        157           }  catch (Ser viceAuthen ticationEx ception ex ) {
        158                return n ull;
        159           }
        160           
        161           lo ng startTi me = Syste m.currentT imeMillis( );
        162           
        163                    try  {
        164                             return  this.expi ringConsen tService.g etReportLe tters(cons entDirecti veExpirati onRequest) ;
        165                    } ca tch (final  Exception  ex) {
        166                success  = 0;
        167                return n ull;
        168                    } fi nally {
        169                if (sa ! = null) {
        170                    sa.s etSuccess( success);
        171                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        172                    auth .persist(a pplication Context, s a);
        173                }
        174           }
        175           }
        176   }