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

3919.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 ConsentManagementServicePort.java Fri Apr 21 20:03:28 2017 UTC

3919.2 Comparison summary

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

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

3919.4 Active regular expressions

No regular expressions were active.

3919.5 Comparison detail

        1   package go v.va.nvap. server.ser vice.priva cy;
        2  
        3   import gov .va.nvap.c ommon.vali dation.Nul lChecker;
        4   import gov .va.nvap.p rivacy.Con sentDirect iveAuthori zationRequ est;
        5   import gov .va.nvap.p rivacy.Con sentDirect iveAuthori zationResp onse;
        6   import gov .va.nvap.p rivacy.Con sentDirect iveDetaile dExpiratio nRequest;
        7   import gov .va.nvap.p rivacy.Con sentDirect iveDetaile dExpiratio nResponse;
        8   import gov .va.nvap.p rivacy.Con sentDirect iveDocumen tRetrieveR equest;
        9   import gov .va.nvap.p rivacy.Con sentDirect iveDocumen tRetrieveR esponse;
        10   import gov .va.nvap.p rivacy.Con sentDirect iveQueryRe quest;
        11   import gov .va.nvap.p rivacy.Con sentDirect iveQueryRe sponse;
        12   import gov .va.nvap.p rivacy.Con sentDirect iveRevocat ionRequest ;
        13   import gov .va.nvap.p rivacy.Con sentDirect iveRevocat ionRespons e;
        14   import gov .va.nvap.p rivacy.Con sentDirect iveUpdateR equest;
        15   import gov .va.nvap.p rivacy.Con sentDirect iveUpdateR esponse;
        16   import gov .va.nvap.p rivacy.Con sentManage mentServic eFaultType ;
        17   import gov .va.nvap.p rivacy.Org anizationT rustedSour ceRequest;
        18   import gov .va.nvap.p rivacy.Org anizationT rustedSour ceResponse ;
        19   import gov .va.nvap.p rivacy.Org anizations QueryReque st;
        20   import gov .va.nvap.p rivacy.Org anizations QueryRespo nse;
        21   import gov .va.nvap.p rivacy.Res trictionsQ ueryReques t;
        22   import gov .va.nvap.p rivacy.Res trictionsQ ueryRespon se;
        23   import gov .va.nvap.p rivacy.Sta tusQueryRe quest;
        24   import gov .va.nvap.p rivacy.Sta tusQueryRe sponse;
        25   import gov .va.nvap.s erver.auth .ServiceAu thenticati on;
        26   import gov .va.nvap.s ervice.aut h.ServiceA udit;
        27   import gov .va.nvap.s ervice.aut h.ServiceA uthenticat ionExcepti on;
        28   import gov .va.nvap.s ervice.pri vacy.Conse ntManageme ntService;
        29   import gov .va.nvap.s ervice.pri vacy.Conse ntManageme ntServiceE xception;
        30   import gov .va.nvap.s ervice.pri vacy.Conse ntManageme ntServiceF aultMessag e;
        31   import gov .va.nvap.s vc.consent mgmt.stub. data.Conse ntDirectiv e;
        32   import jav ax.annotat ion.Resour ce;
        33   import jav ax.ejb.Rem ote;
        34   import jav ax.ejb.Sta teless;
        35   import jav ax.ejb.Tra nsactionAt tribute;
        36   import jav ax.ejb.Tra nsactionAt tributeTyp e;
        37   import jav ax.interce ptor.Inter ceptors;
        38   import jav ax.jws.Web Method;
        39   import jav ax.jws.Web Param;
        40   import jav ax.jws.Web Result;
        41   import jav ax.jws.Web Service;
        42   import jav ax.jws.soa p.SOAPBind ing;
        43   import jav ax.xml.ws. BindingTyp e;
        44   import jav ax.xml.ws. WebService Context;
        45   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
        46   import org .springfra mework.bea ns.factory .annotatio n.Qualifie r;
        47   import org .springfra mework.con text.Appli cationCont ext;
        48   import org .springfra mework.ejb .intercept or.SpringB eanAutowir ingInterce ptor;
        49   //import g ov.va.nvap .server.en dpoint.mvi .MviSoapEn dpoint;
        50  
        51   /**
        52    * Consent  Managemen t WebServi ce.
        53    * 
        54    * @author  Asha Amri traj
        55    */
        56   @SuppressW arnings("a ll")
        57   @WebServic e(portName  = "Consen tManagemen tPort", na me = "Cons entManagem entPortTyp e", servic eName = "C onsentMana gementServ ice", targ etNamespac e = "http: //gov.va.n vap.servic e.privacy/ ", wsdlLoc ation = "M ETA-INF/xm l-resource s/web-serv ices/Conse ntManageme ntService/ wsdl/Conse ntManageme ntService. wsdl")
        58   @BindingTy pe("http:/ /schemas.x mlsoap.org /wsdl/soap /http")
        59   @SOAPBindi ng(paramet erStyle =  SOAPBindin g.Paramete rStyle.BAR E)
        60   @Stateless (name = "C onsentMana gementServ ice", mapp edName = " ConsentMan agementSer vice")
        61   @Remote(Co nsentManag ementServi ce.class)
        62   @Intercept ors(Spring BeanAutowi ringInterc eptor.clas s)
        63   @Transacti onAttribut e(Transact ionAttribu teType.REQ UIRED)
        64   public cla ss Consent Management ServicePor t implemen ts Consent Management Service {
        65  
        66           /* *
        67            *  Inject Sp ring bean,  so that w e have all  dependenc ies inject ed.
        68            * /
        69           @A utowired
        70           @Q ualifier(v alue = "Co nsentManag ementServi ce")
        71           pr ivate Cons entManagem entService  consentMa nagementSe rvice;
        72       @Autow ired
        73       privat e Applicat ionContext  applicati onContext;
        74       //@Aut owired
        75       //priv ate MviSoa pEndpoint  mviSoapEnd point;
        76       @Resou rce
        77       privat e WebServi ceContext  context;
        78       privat e ServiceA uthenticat ion auth =  new Servi ceAuthenti cation();
        79       
        80           pu blic Conse ntManageme ntServiceP ort() {
        81           }
        82  
        83           /* *
        84            *  @param co nsentDirec tiveDocume ntRetrieve Request
        85            *  @return r eturns gov .va.nvap.p rivacy.
        86            *          C onsentDire ctiveDocum entRetriev eResponseT ype
        87            *  @throws C onsentMana gementServ iceFaultMe ssage
        88            * /
        89           @W ebMethod(o perationNa me = "GetC onsentDire ctiveDocum ents")
        90           @W ebResult(n ame = "Con sentDirect iveDocumen tRetrieveR esponse",  targetName space = "h ttp://gov. va.nvap.se rvice.priv acy/", par tName = "C onsentDire ctiveDocum entRetriev eResponse" )
        91           pu blic Conse ntDirectiv eDocumentR etrieveRes ponse getC onsentDire ctiveDocum ents(
        92                             @WebPa ram(name =  "ConsentD irectiveDo cumentRetr ieveReques t", target Namespace  = "http:// gov.va.nva p.service. privacy/",  partName  = "Consent DirectiveD ocumentRet rieveReque st") final  ConsentDi rectiveDoc umentRetri eveRequest  consentDi rectiveDoc umentRetri eveRequest )
        93                             throws  ConsentMa nagementSe rviceFault Message {
        94           Se rviceAudit  sa = new  ServiceAud it();
        95           In teger succ ess = 1;
        96           
        97           //  Check to  see if we  have a DoD  EDIPI ins tead of IC N
        98           St ring ident ifier = th is.transla tePatientI dentifier( consentDir ectiveDocu mentRetrie veRequest. getConsent DirectiveR eference() .getPatien tIen());
        99           co nsentDirec tiveDocume ntRetrieve Request.ge tConsentDi rectiveRef erence().s etPatientI en(identif ier);
        100           
        101           tr y {
        102                sa = aut h.checkAut h(context,  applicati onContext,  "getConse ntDirectiv eDocuments ");
        103           }  catch (Ser viceAuthen ticationEx ception ex ) {
        104                return n ull;
        105           }
        106                
        107           lo ng startTi me = Syste m.currentT imeMillis( );
        108           
        109                    try  {
        110                             return  this.cons entManagem entService .getConsen tDirective Documents( consentDir ectiveDocu mentRetrie veRequest) ;
        111                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        112                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        113                success  = 0;
        114                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        115                    } fi nally {
        116                if (sa ! = null) {
        117                    sa.s etSuccess( success);
        118                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        119                    auth .persist(a pplication Context, s a);
        120                }
        121           }
        122           }
        123  
        124           /* *
        125            *  @param co nsentDirec tiveQueryR equest
        126            *  @return r eturns gov .va.nvap.p rivacy.Con sentDirect iveQueryRe sponseType
        127            *  @throws C onsentMana gementServ iceFaultMe ssage
        128            * /
        129           @W ebMethod(o perationNa me = "GetC onsentDire ctives")
        130           @W ebResult(n ame = "Con sentDirect iveQueryRe sponse", t argetNames pace = "ht tp://gov.v a.nvap.ser vice.priva cy/", part Name = "Co nsentDirec tiveQueryR esponse")
        131           pu blic Conse ntDirectiv eQueryResp onse getCo nsentDirec tives(
        132                             @WebPa ram(name =  "ConsentD irectiveQu eryRequest ", targetN amespace =  "http://g ov.va.nvap .service.p rivacy/",  partName =  "ConsentD irectiveQu eryRequest ") final C onsentDire ctiveQuery Request co nsentDirec tiveQueryR equest)
        133                             throws  ConsentMa nagementSe rviceFault Message {
        134           Se rviceAudit  sa = new  ServiceAud it();
        135           In teger succ ess = 1;
        136           
        137           //  Check to  see if we  have a DoD  EDIPI ins tead of IC N
        138           St ring ident ifier = th is.transla tePatientI dentifier( consentDir ectiveQuer yRequest.g etPatientI d());
        139           co nsentDirec tiveQueryR equest.set PatientId( identifier );
        140           
        141           tr y {
        142                sa = aut h.checkAut h(context,  applicati onContext,  "getConse ntDirectiv es");
        143           }  catch (Ser viceAuthen ticationEx ception ex ) {
        144                return n ull;
        145           }
        146           
        147                    long  startTime  = System. currentTim eMillis();
        148           
        149           tr y {
        150                             return  this.cons entManagem entService .getConsen tDirective s(consentD irectiveQu eryRequest );
        151                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        152                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        153                success  = 0;
        154                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(),err orType);
        155                    } fi nally {
        156                if (sa ! = null) {
        157                    sa.s etSuccess( success);
        158                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        159                    auth .persist(a pplication Context, s a);
        160                }
        161           }
        162           }
        163           
        164           /* *
        165            *  @param co nsentDirec tiveExpira tionReques t
        166            *  @return r eturns gov .va.nvap.p rivacy.Con sentDirect iveQueryRe sponseType
        167            *  @throws C onsentMana gementServ iceFaultMe ssage
        168            * /
        169           @W ebMethod(o perationNa me = "GetE xpiringCon sentDirect ives")
        170           @W ebResult(n ame = "Con sentDirect iveExpirat ionRespons e", target Namespace  = "http:// gov.va.nva p.service. privacy/",  partName  = "Consent DirectiveE xpirationR esponse")
        171           pu blic Conse ntDirectiv eDetailedE xpirationR esponse ge tAllExpiri ngConsentD irectives(
        172                             @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)
        173                             throws  ConsentMa nagementSe rviceFault Message {
        174           Se rviceAudit  sa = new  ServiceAud it();
        175           In teger succ ess = 1;
        176           
        177           tr y {
        178                sa = aut h.checkAut h(context,  applicati onContext,  "getAllEx piringCons entDirecti ves");
        179           }  catch (Ser viceAuthen ticationEx ception ex ) {
        180                return n ull;
        181           }
        182           
        183                    long  startTime  = System. currentTim eMillis();
        184           
        185           tr y {
        186                             return  this.cons entManagem entService .getAllExp iringConse ntDirectiv es(consent DirectiveE xpirationR equest);
        187                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        188                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        189                success  = 0;
        190                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(),err orType);
        191                    } fi nally {
        192                if (sa ! = null) {
        193                    sa.s etSuccess( success);
        194                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        195                    auth .persist(a pplication Context, s a);
        196                }
        197           }
        198           }
        199       
        200       @WebMe thod(opera tionName =  "GetExpir ingDetaile dConsentDi rectives")
        201           @W ebResult(n ame = "Con sentDirect iveExpirat ionRespons e", target Namespace  = "http:// gov.va.nva p.service. privacy/",  partName  = "Consent DirectiveE xpirationR esponse")
        202           pu blic Conse ntDirectiv eDetailedE xpirationR esponse ge tAllExpiri ngDetailed ConsentDir ectives(
        203                             @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)
        204                             throws  ConsentMa nagementSe rviceFault Message {
        205           Se rviceAudit  sa = new  ServiceAud it();
        206           In teger succ ess = 1;
        207           
        208           tr y {
        209                sa = aut h.checkAut h(context,  applicati onContext,  "getAllEx piringDeta iledConsen tDirective s");
        210           }  catch (Ser viceAuthen ticationEx ception ex ) {
        211                   retur n null;
        212           }
        213           
        214           lo ng startTi me = Syste m.currentT imeMillis( );
        215           
        216                    try  {
        217                             return  this.cons entManagem entService .getAllExp iringDetai ledConsent Directives (consentDi rectiveExp irationReq uest);
        218                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        219                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        220                success  = 0;
        221                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        222                    } fi nally {
        223                if (sa ! = null) {
        224                    sa.s etSuccess( success);
        225                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        226                    auth .persist(a pplication Context, s a);
        227                }
        228           }
        229           }
        230       
        231       @WebMe thod(opera tionName =  "GetAutho rizedConse ntForSumma ry")
        232           @W ebResult(n ame = "Con sentDirect iveExpirat ionRespons e", target Namespace  = "http:// gov.va.nva p.service. privacy/",  partName  = "Consent DirectiveE xpirationR esponse")
        233           pu blic Conse ntDirectiv eDetailedE xpirationR esponse ge tAuthorize dConsentFo rSummary(
        234                             @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)
        235                             throws  ConsentMa nagementSe rviceFault Message {
        236           Se rviceAudit  sa = new  ServiceAud it();
        237           In teger succ ess = 1;
        238           
        239           tr y {
        240                sa = aut h.checkAut h(context,  applicati onContext,  "getAutho rizedConse ntForSumma ry");
        241           }  catch (Ser viceAuthen ticationEx ception ex ) {
        242                return n ull;
        243           }
        244           
        245                    long  startTime  = System. currentTim eMillis();
        246           
        247           tr y {
        248                             return  this.cons entManagem entService .getAuthor izedConsen tForSummar y(consentD irectiveEx pirationRe quest);
        249                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        250                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        251                success  = 0;
        252                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        253                    } fi nally {
        254                if (sa ! = null) {
        255                    sa.s etSuccess( success);
        256                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        257                    auth .persist(a pplication Context, s a);
        258                }
        259           }
        260           }
        261  
        262           /* *
        263            *  @param or ganization sQueryRequ est
        264            *  @return r eturns gov .va.nvap.p rivacy.Org anizations QueryRespo nseType
        265            *  @throws C onsentMana gementServ iceFaultMe ssage
        266            * /
        267           @W ebMethod(o perationNa me = "GetO rganizatio ns")
        268           @W ebResult(n ame = "Org anizations QueryRespo nse", targ etNamespac e = "http: //gov.va.n vap.servic e.privacy/ ", partNam e = "Organ izationsQu eryRespons e")
        269           pu blic Organ izationsQu eryRespons e getOrgan izations(
        270                             @WebPa ram(name =  "Organiza tionsQuery Request",  targetName space = "h ttp://gov. va.nvap.se rvice.priv acy/", par tName = "O rganizatio nsQueryReq uest") fin al Organiz ationsQuer yRequest o rganizatio nsQueryReq uest)
        271                             throws  ConsentMa nagementSe rviceFault Message {
        272           Se rviceAudit  sa = new  ServiceAud it();
        273           In teger succ ess = 1;
        274           
        275           tr y {
        276                sa = aut h.checkAut h(context,  applicati onContext,  "getOrgan izations") ;
        277           }  catch (Ser viceAuthen ticationEx ception ex ) {
        278                return n ull;
        279           } 
        280           
        281                    long  startTime  = System. currentTim eMillis();
        282           
        283           tr y {             
        284                             return  this.cons entManagem entService .getOrgani zations(or ganization sQueryRequ est);
        285                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        286                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        287                success  = 0;
        288                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        289                    } fi nally {
        290                if (sa ! = null) {
        291                    sa.s etSuccess( success);
        292                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        293                    auth .persist(a pplication Context, s a);
        294                }
        295           }
        296           }
        297       
        298       /**
        299        * @pa ram organi zationTrus tedSourceR equest
        300            *  @return r eturns gov .va.nvap.p rivacy.Org anizationT rustedSour ceResponse Type
        301            *  @throws C onsentMana gementServ iceFaultMe ssage
        302            * /
        303       @WebMe thod(opera tionName =  "GetIsOrg anizationT rustedSour ce")
        304       @WebRe sult(name  = "Organiz ationTrust edSourceRe sponse", t argetNames pace = "ht tp://gov.v a.nvap.ser vice.priva cy/", part Name = "Or ganization TrustedSou rceRespons e")
        305       public  Organizat ionTrusted SourceResp onse getIs Organizati onTrustedS ource(@Web Param(name  = "Organi zationTrus tedSourceR equest", t argetNames pace = "ht tp://gov.v a.nvap.ser vice.priva cy/", part Name = "Or ganization TrustedSou rceRequest ") final O rganizatio nTrustedSo urceReques t organiza tionTruste dSourceReq uest) thro ws Consent Management ServiceFau ltMessage  {
        306           Se rviceAudit  sa = new  ServiceAud it();
        307           In teger succ ess = 1;
        308           
        309           tr y {
        310                sa = aut h.checkAut h(context,  applicati onContext,  "getIsOrg anizationT rustedSour ce");
        311           }  catch (Ser viceAuthen ticationEx ception ex ) {
        312                return n ull;
        313           }
        314           
        315           lo ng startTi me = Syste m.currentT imeMillis( );
        316           
        317           tr y {
        318                if (Null Checker.is Empty(orga nizationTr ustedSourc eRequest.g etOrganiza tionId()))  {
        319                    fina l ConsentM anagementS erviceFaul tType erro rType = ne w ConsentM anagementS erviceFaul tType();
        320                    thro w new Cons entManagem entService FaultMessa ge("Organi zationId i s required .", errorT ype);
        321                }
        322                return t his.consen tManagemen tService.g etIsOrgani zationTrus tedSource( organizati onTrustedS ourceReque st);
        323           }  catch(fina l ConsentM anagementS erviceExce ption ex)  {
        324                final Co nsentManag ementServi ceFaultTyp e errorTyp e = new Co nsentManag ementServi ceFaultTyp e();
        325                success  = 0;
        326                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        327           }  finally {
        328                if (sa ! = null) {
        329                    sa.s etSuccess( success);
        330                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        331                    auth .persist(a pplication Context, s a);
        332                }
        333           }
        334       }
        335       
        336           /* *
        337            *  @param co nsentDirec tiveAuthor izationReq uest
        338            *  @return r eturns gov .va.nvap.p rivacy.
        339            *          C onsentDire ctiveAutho rizationRe sponseType
        340            *  @throws C onsentMana gementServ iceFaultMe ssage
        341            * /
        342           @W ebMethod(o perationNa me = "Proc essConsent DirectiveA uthorizati on")
        343           @W ebResult(n ame = "Con sentDirect iveAuthori zationResp onse", tar getNamespa ce = "http ://gov.va. nvap.servi ce.privacy /", partNa me = "Cons entDirecti veAuthoriz ationRespo nse")
        344           pu blic Conse ntDirectiv eAuthoriza tionRespon se process ConsentDir ectiveAuth orization(
        345                             @WebPa ram(name =  "ConsentD irectiveAu thorizatio nRequest",  targetNam espace = " http://gov .va.nvap.s ervice.pri vacy/", pa rtName = " ConsentDir ectiveAuth orizationR equest") f inal Conse ntDirectiv eAuthoriza tionReques t consentD irectiveAu thorizatio nRequest)
        346                             throws  ConsentMa nagementSe rviceFault Message {
        347           Se rviceAudit  sa = new  ServiceAud it();
        348           In teger succ ess = 1;
        349           
        350           tr y {
        351                sa = aut h.checkAut h(context,  applicati onContext,  "processC onsentDire ctiveAutho rization") ;
        352           }  catch (Ser viceAuthen ticationEx ception ex ) {
        353                return n ull;
        354           }
        355           
        356                    long  startTime  = System. currentTim eMillis();
        357           
        358           tr y {
        359                             return  this.cons entManagem entService .processCo nsentDirec tiveAuthor ization(co nsentDirec tiveAuthor izationReq uest);
        360                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        361                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        362                success  = 0;
        363                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        364                    } fi nally {
        365                if (sa ! = null) {
        366                    sa.s etSuccess( success);
        367                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        368                    auth .persist(a pplication Context, s a);
        369                }
        370           }
        371           }
        372  
        373           /* *
        374            *  @param co nsentDirec tiveRevoca tionReques t
        375            *  @return r eturns gov .va.nvap.p rivacy.
        376            *          C onsentDire ctiveRevoc ationRespo nseType
        377            *  @throws C onsentMana gementServ iceFaultMe ssage
        378            * /
        379           @W ebMethod(o perationNa me = "Proc essConsent DirectiveR evocation" )
        380           @W ebResult(n ame = "Con sentDirect iveRevocat ionRespons e", target Namespace  = "http:// gov.va.nva p.service. privacy/",  partName  = "Consent DirectiveR evocationR esponse")
        381           pu blic Conse ntDirectiv eRevocatio nResponse  processCon sentDirect iveRevocat ion(
        382                             @WebPa ram(name =  "ConsentD irectiveRe vocationRe quest", ta rgetNamesp ace = "htt p://gov.va .nvap.serv ice.privac y/", partN ame = "Con sentDirect iveRevocat ionRequest ") final C onsentDire ctiveRevoc ationReque st consent DirectiveR evocationR equest)
        383                             throws  ConsentMa nagementSe rviceFault Message {
        384           Se rviceAudit  sa = new  ServiceAud it();
        385           In teger succ ess = 1;
        386           
        387           tr y {
        388                sa = aut h.checkAut h(context,  applicati onContext,  "processC onsentDire ctiveRevoc ation");
        389           }  catch (Ser viceAuthen ticationEx ception ex ) {
        390                return n ull;
        391           }
        392           
        393           lo ng startTi me = Syste m.currentT imeMillis( );
        394           
        395                    try  {
        396                             return  this.cons entManagem entService .processCo nsentDirec tiveRevoca tion(conse ntDirectiv eRevocatio nRequest);
        397                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        398                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        399                success  = 0;
        400                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        401                    } fi nally {
        402                if (sa ! = null) {
        403                    sa.s etSuccess( success);
        404                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        405                    auth .persist(a pplication Context, s a);
        406                }
        407           }
        408           }
        409  
        410           
        411                             
        412           
        413           /* *
        414            *  @param co nsentDirec tiveRevoca tionReques t
        415            *  @return r eturns gov .va.nvap.p rivacy.
        416            *          C onsentDire ctiveRevoc ationRespo nseType
        417            *  @throws C onsentMana gementServ iceFaultMe ssage
        418            * /
        419           @W ebMethod(o perationNa me = "Proc essConsent DirectiveU pdate")
        420           @W ebResult(n ame = "Con sentDirect iveUpdateR esponse",  targetName space = "h ttp://gov. va.nvap.se rvice.priv acy/", par tName = "C onsentDire ctiveUpdat eResponse" )
        421           pu blic Conse ntDirectiv eUpdateRes ponse proc essConsent DirectiveU pdate(
        422                             @WebPa ram(name =  "ConsentD irectiveUp dateReques t", target Namespace  = "http:// gov.va.nva p.service. privacy/",  partName  = "Consent DirectiveR evocationR equest") f inal Conse ntDirectiv eUpdateReq uest conse ntDirectiv eUpdateReq uest)
        423                             throws  ConsentMa nagementSe rviceFault Message {
        424           Se rviceAudit  sa = new  ServiceAud it();
        425           In teger succ ess = 1;
        426           
        427           tr y {
        428                sa = aut h.checkAut h(context,  applicati onContext,  "processC onsentDire ctiveUpdat e");
        429           }  catch (Ser viceAuthen ticationEx ception ex ) {
        430                return n ull;
        431           }
        432           
        433           lo ng startTi me = Syste m.currentT imeMillis( );
        434                    
        435           tr y {
        436                             return  this.cons entManagem entService .processCo nsentDirec tiveUpdate (consentDi rectiveUpd ateRequest );
        437                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        438                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        439                success  = 0;
        440                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        441                    } fi nally {
        442                if (sa ! = null) {
        443                    sa.s etSuccess( success);
        444                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        445                    auth .persist(a pplication Context, s a);
        446                }
        447           }
        448           }
        449              /**
        450            *  @param Re strictions QueryReque st
        451            *  @return r eturns gov .va.nvap.p rivacy.Res trictionsQ ueryRespon seType
        452            *  @throws C onsentMana gementServ iceFaultMe ssage
        453            * /
        454           @W ebMethod(o perationNa me = "GetR estriction s")
        455           @W ebResult(n ame = "Res trictionsQ ueryRespon se", targe tNamespace  = "http:/ /gov.va.nv ap.service .privacy/" , partName  = "Restri ctionsQuer yResponse" )
        456           pu blic Restr ictionsQue ryResponse  getRestri ctions(
        457                             @WebPa ram(name =  "Restrict ionsQueryR equest", t argetNames pace = "ht tp://gov.v a.nvap.ser vice.priva cy/", part Name = "Re strictions QueryReque st") final  Restricti onsQueryRe quest rest rictionsQu eryRequest )
        458                             throws  ConsentMa nagementSe rviceFault Message {
        459           Se rviceAudit  sa = new  ServiceAud it();
        460           In teger succ ess = 1;
        461           
        462           tr y {
        463                sa = aut h.checkAut h(context,  applicati onContext,  "GetRestr ictions");
        464           }  catch (Ser viceAuthen ticationEx ception ex ) {
        465                return n ull;
        466           }
        467                    
        468           lo ng startTi me = Syste m.currentT imeMillis( );
        469           
        470                    try  {
        471                             return  this.cons entManagem entService .getRestri ctions(res trictionsQ ueryReques t);
        472                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        473                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        474                success  = 0;
        475                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        476                    } fi nally {
        477                if (sa ! = null) {
        478                    sa.s etSuccess( success);
        479                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        480                    auth .persist(a pplication Context, s a);
        481                }
        482           }
        483           }
        484            / **
        485            *  @param St atusQueryR equest
        486            *  @return r eturns gov .va.nvap.p rivacy.Sta tusQueryRe sponseType
        487            *  @throws C onsentMana gementServ iceFaultMe ssage
        488            * /
        489           @W ebMethod(o perationNa me = "GetS tatus")
        490           @W ebResult(n ame = "Sta tusQueryRe sponse", t argetNames pace = "ht tp://gov.v a.nvap.ser vice.priva cy/", part Name = "St atusQueryR esponse")
        491           pu blic Statu sQueryResp onse getSt atus(
        492                             @WebPa ram(name =  "StatusQu eryRequest ", targetN amespace =  "http://g ov.va.nvap .service.p rivacy/",  partName =  "StatusQu eryRequest ") final S tatusQuery Request st atusQueryR equest)
        493                             throws  ConsentMa nagementSe rviceFault Message {
        494           Se rviceAudit  sa = new  ServiceAud it();
        495           In teger succ ess = 1;
        496           
        497           tr y {
        498                sa = aut h.checkAut h(context,  applicati onContext,  "getStatu s");
        499           }  catch (Ser viceAuthen ticationEx ception ex ) {
        500                return n ull;
        501           }
        502           
        503                    long  startTime  = System. currentTim eMillis();
        504           
        505           tr y {
        506                             return  this.cons entManagem entService .getStatus (statusQue ryRequest) ;
        507                    } ca tch (final  ConsentMa nagementSe rviceExcep tion ex) {
        508                             final  ConsentMan agementSer viceFaultT ype errorT ype = new  ConsentMan agementSer viceFaultT ype();
        509                success  = 0;
        510                             throw  new Consen tManagemen tServiceFa ultMessage (ex.getMes sage(), er rorType);
        511                    } fi nally {
        512                if (sa ! = null) {
        513                    sa.s etSuccess( success);
        514                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        515                    auth .persist(a pplication Context, s a);
        516                }
        517           }
        518           }
        519  
        520       @Overr ide
        521       @SOAPB inding(par ameterStyl e=SOAPBind ing.Parame terStyle.W RAPPED)
        522       @WebMe thod(exclu de = true) //internal  only
        523       public  ConsentDi rectiveRev ocationRes ponse proc essOldCons entDirecti veRevocati on(Consent DirectiveR evocationR equest con sentDirect iveRevocat ionRequest , Object o ldConsent)  throws Co nsentManag ementServi ceExceptio n {
        524           re turn this. consentMan agementSer vice.proce ssOldConse ntDirectiv eRevocatio n(consentD irectiveRe vocationRe quest, old Consent);
        525       }
        526  
        527       @WebMe thod(exclu de = true) //internal  only
        528       privat e String t ranslatePa tientIdent ifier(Stri ng identif ier) {
        529           St ring ident ifierToUse  = "";
        530  
        531   //         if (identi fier != nu ll && iden tifier.len gth() == 1 0) {
        532   //             identi fierToUse  = this.mvi SoapEndpoi nt.findICN (identifie r);
        533   //         } else {
        534                identifi erToUse =  identifier ;
        535   //         }
        536  
        537           re turn ident ifierToUse ;
        538       }
        539       
        540   }