67. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/18/2017 5:22:15 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.

67.1 Files compared

# Location File Last Modified
1 Caregivers-Title_1.zip\docroot\WEB-INF\src\gov\va\caret\controller\dashboard\config VisnDashboardConfig.java Mon Apr 17 14:03:16 2017 UTC
2 Caregivers-Title_1.zip\docroot\WEB-INF\src\gov\va\caret\controller\dashboard\config VisnDashboardConfig.java Tue Apr 18 16:33:59 2017 UTC

67.2 Comparison summary

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

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

67.4 Active regular expressions

No regular expressions were active.

67.5 Comparison detail

  1   package go v.va.caret .controlle r.dashboar d.config;
  2  
  3   import jav a.util.Arr ays;
  4   import jav a.util.Has hSet;
  5   import jav a.util.Map ;
  6  
  7   import jav ax.portlet .PortletRe quest;
  8  
  9   import gov .va.caret. Applicatio nWorkFlowE xception;
  10   import gov .va.caret. model.supp ort.WorkTy pe;
  11   import gov .va.caret. security.C Action;
  12   import gov .va.caret. security.C Action.Car etCan;
  13   import gov .va.caret. service.Ca retLocalSe rviceUtil;
  14   import gov .va.caret. util.Caret StrPool;
  15   import gov .va.caret. util.Toolb ox;
  16   import gov .va.caret. view.Adhoc Report;
  17   import gov .va.caret. view.Cache dReport;
  18   import gov .va.caret. view.Gener icReport;
  19   import gov .va.caret. view.Repor tParameter ;
  20   import gov .va.caret. view.Resul tMap;
  21  
  22   public cla ss VisnDas hboardConf ig extends  CscDashbo ardConfig  {
  23  
  24           pr ivate stat ic final l ong serial VersionUID  = 1L;
  25           pr ivate stat ic Generic Report APP _DELAY = n ew AdhocRe port( "app Delay", Re portParame ter.classP k ){
  26                    publ ic String  getPageNam e() {
  27                             return  "appDelay ";
  28                    }
  29                    publ ic String  getOrderBy () {
  30                             return  "creation Date";
  31                    }
  32                    publ ic boolean  isDesc()  {
  33                             return  true;
  34                    }
  35                    publ ic boolean  isLazy(){
  36                             return  true;
  37                    }
  38           };
  39           
  40           pu blic VisnD ashboardCo nfig() {
  41                    this .reports =  new Gener icReport[]
  42                                      APP_DELA Y, 
  43                                      new Gene ricReport( "myApplica tionWork",  true, "cr eationDate ", true, R eportParam eter.userI d, ReportP arameter.q ueId ),
  44                                      new Gene ricReport( "myNotes",  true, "cr eationDate ", true, G enericRepo rt.NOTES_Q UERY_NDX,  ReportPara meter.user Id ),
  45                                      new Cach edReport(" persnAudit "),
  46                                      new Cach edReport(" persn"),
  47                                      new Cach edReport(" workAudit" ),
  48                                      new Cach edReport(" vcgAudit") ,
  49                                      new Cach edReport(" assmtAudit "),
  50                                      new Cach edReport(" assmtAudit All"),
  51                                      new Cach edReport(" assmtAudit PeriodicAl l"),
  52                                      new Cach edReport(" periodicAs sessmentsA ll"),
  53                                      new Cach edReport(" vcgSupport ingDocsAll "),
  54                                      new Cach edReport(" vcgDocsHis toryAll")
  55                             };
  56           
  57                    sear chableWork  = new Has hSet<Strin g>(Arrays. asList(new  String[]{
  58                                      WorkType .CSC_APP.n ame(), 
  59                                      WorkType .ONLINE_AP P.name(), 
  60                                      WorkType .CSC_WAIVE R.name(), 
  61                                      WorkType .APP_DELAY .name()})) ;
  62           }
  63           
  64           pu blic Gener icReport g etReport ( String nam e){
  65                    for  ( GenericR eport repo rt: enable dSearch.ge tCachedRep orts() ){
  66                             if ( n ame.equals ( report.g etName() )  ){
  67                                      return r eport;
  68                             }
  69                    }
  70                    for  ( GenericR eport repo rt: report s ){
  71                             if ( n ame.equals ( report.g etName() )  ){
  72                                      return r eport;
  73                             }
  74                             if ( n ame.starts With("appD elay") ){
  75                                      return A PP_DELAY;
  76                             }
  77                    }
  78                    retu rn null;
  79           }
  80           
  81           pu blic void  configureF acility(Po rtletReque st request ) throws A pplication WorkFlowEx ception {
  82                    supe r.configur eFacility( request);
  83                    if (  CAction.c anDoCaret( request, C Action.Car etCan.VISN _CSC_WAIVE R_Q ) ){
  84                             reques t.setAttri bute("appD elay", tru e );
  85                             search ableWork.a dd( WorkTy pe.APP_DEL AY.name()  );
  86                    }
  87                     ResultMap. getCaretMa p(request) .put( "CRE ATE_ DNS  _WAIVER",  CAction.ca nDoCaret(  request, C Action.Car etCan.CREA TE_ DNS  _WAIVER )  );
  88           }
  89           
  90           
  91           @O verride
  92           pu blic void  loadReport s(PortletR equest req uest) thro ws Applica tionWorkFl owExceptio n {
  93                    supe r.loadRepo rts(reques t);
  94                    if (  request.g etPortletS ession().g etAttribut e(CaretStr Pool.DASHB OARD_CONFI G) instanc eof Facili tyDashboar dConfig )  {
  95                             Map<Lo ng, String > orgMap =  Toolbox.g etVhaOrgLi st( reques t );
  96                             Result Map.getCar etMap(requ est).put(  CaretStrPo ol.VHA_MEM BER, orgMa p );
  97                             for (  Long orgId  : orgMap. keySet() ) {
  98                                      ResultMa p.getResul tTotalMap(  request ) .put( "app Delay"+org Id, 
  99                                               CaretLocal ServiceUti l.getRepor tCount( "a ppDelay",  orgId) );
  100                             }
  101                    }
  102           }
  103           
  104           pu blic CActi on.CaretCa n[] getCre ateActions (){
  105                    retu rn new CAc tion.Caret Can[]{};
  106           }
  107           
  108           @O verride
  109           pu blic Caret Can[] getT oolsAction s() {
  110                    retu rn new CAc tion.Caret Can[]{};
  111           }
  112           
  113           @O verride
  114           pu blic Strin g getView( ) {
  115                    retu rn "/jsp/d ashboard/v isn.jsp";
  116           }
  117   }