4332. EPMO Open Source Coordination Office Redaction File Detail Report

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

4332.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:29 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\user\document UserDocument.java Fri Apr 21 20:03:30 2017 UTC

4332.2 Comparison summary

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

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

4332.4 Active regular expressions

No regular expressions were active.

4332.5 Comparison detail

        1   /*
        2    * To chan ge this te mplate, ch oose Tools  | Templat es
        3    * and ope n the temp late in th e editor.
        4    */
        5  
        6   package go v.va.nvap. web.user.d ocument;
        7  
        8   import jav a.io.Seria lizable;
        9   import jav a.util.Dat e;
        10  
        11   import jav ax.persist ence.Basic ;
        12   import jav ax.persist ence.Colum n;
        13   import jav ax.persist ence.Entit y;
        14   import jav ax.persist ence.Gener atedValue;
        15   import jav ax.persist ence.Gener ationType;
        16   import jav ax.persist ence.Id;
        17   import jav ax.persist ence.Lob;
        18   import jav ax.persist ence.Named Queries;
        19   import jav ax.persist ence.Named Query;
        20   import jav ax.persist ence.Table ;
        21   import jav ax.persist ence.Tempo ral;
        22   import jav ax.persist ence.Tempo ralType;
        23  
        24   /**
        25    *
        26    * @author  Zack Pete rson
        27    */
        28   @Entity
        29   @Table(nam e = "USER_ DOCUMENT")
        30   @NamedQuer ies({
        31                    @Nam edQuery(na me = "User Document.f indAll", q uery = "SE LECT d FRO M UserDocu ment d"),
        32                    @Nam edQuery(na me = "User Document.f indByDocum entId", qu ery = "SEL ECT d FROM  UserDocum ent d WHER E d.docume ntId = :do cumentId") ,
        33                    @Nam edQuery(na me = "User Document.f indByUserI d", query  = "SELECT  d FROM Use rDocument  d WHERE d. userId = : userId"),
        34                    @Nam edQuery(na me = "User Document.f indByTitle ", query =  "SELECT d  FROM User Document d  WHERE d.t itle = :ti tle"),
        35           @N amedQuery( name = "Us erDocument .findByUse rIdAndTitl e", query  = "SELECT  d FROM Use rDocument  d WHERE d. userId = : userId AND  d.title =  :title"),
        36           @N amedQuery( name = "Us erDocument .findByCre ationDate" , query =  "SELECT d  FROM UserD ocument d  WHERE d.cr eationDate  = :creati onDate"),
        37           @N amedQuery( name = "Us erDocument .findByBef oreDate",  query = "S ELECT d FR OM UserDoc ument d WH ERE d.crea tionDate <  :cutoffDa te")})
        38   public cla ss UserDoc ument impl ements Ser ializable  {
        39           pr ivate stat ic final l ong serial VersionUID  = 1L;
        40  
        41           @I d
        42           @G eneratedVa lue(strate gy = Gener ationType. AUTO)
        43           @B asic(optio nal = fals e)
        44           @C olumn(name  = "DOCUME NT_ID")
        45           pr ivate Long  documentI d;
        46       @Basic (optional  = false)
        47           @C olumn(name  = "USER_I D")
        48           pr ivate Stri ng userId;
        49       @Basic (optional  = false)
        50       @Colum n(name = " CREATION_D ATE")
        51       @Tempo ral(Tempor alType.TIM ESTAMP)
        52       privat e Date cre ationDate;
        53       @Basic (optional  = false)
        54       @Colum n(name = " TITLE")
        55           pr ivate Stri ng title;
        56           @L ob
        57           @C olumn(name  = "CONTEN T")
        58           pr ivate Seri alizable c ontent;
        59       @Colum n(name = " STATUS")
        60           pr ivate Stri ng status;
        61       @Colum n(name = " FORMAT")
        62           pr ivate Stri ng format;
        63  
        64           pu blic UserD ocument()  {
        65           }
        66  
        67       public  UserDocum ent(final  String tit le, final  Date creat ionDate, f inal Strin g userId)  {
        68                    this .title = t itle;
        69           th is.creatio nDate = cr eationDate ;
        70           th is.userId  = userId;
        71           }
        72  
        73       public  UserDocum ent(final  String tit le, final  Date creat ionDate,
        74                final St ring userI d, final S erializabl e content)  {
        75                    this .title = t itle;
        76           th is.creatio nDate = cr eationDate ;
        77           th is.userId  = userId;
        78           th is.content  = content ;
        79           }
        80  
        81       public  UserDocum ent(final  String tit le, final  Date creat ionDate,
        82                final St ring userI d, final S erializabl e content,  final Str ing status ) {
        83                    this .title = t itle;
        84           th is.creatio nDate = cr eationDate ;
        85           th is.userId  = userId;
        86           th is.content  = content ;
        87           th is.status  = status;
        88           }
        89  
        90       public  UserDocum ent(final  String tit le, final  Date creat ionDate, f inal Strin g userId,
        91                final Se rializable  content,  final Stri ng status,  final Str ing format ) {
        92                    this .title = t itle;
        93           th is.creatio nDate = cr eationDate ;
        94           th is.userId  = userId;
        95           th is.content  = content ;
        96           th is.status  = status;
        97           th is.format  = format;
        98           }
        99  
        100           pu blic UserD ocument(fi nal Long d ocumentId)  {
        101                    this .documentI d = docume ntId;
        102           }
        103  
        104           pu blic UserD ocument(fi nal Long d ocumentId,  final Ser ializable  content) {
        105                    this .documentI d = docume ntId;
        106                    this .content =  content;
        107           }
        108  
        109       public  UserDocum ent(final  Long docum entId, fin al String  title, fin al Date cr eationDate ,
        110                final St ring userI d, final S erializabl e content)  {
        111           th is.documen tId = docu mentId;
        112                    this .title = t itle;
        113           th is.creatio nDate = cr eationDate ;
        114           th is.userId  = userId;
        115           th is.content  = content ;
        116           }
        117  
        118       public  UserDocum ent(final  Long docum entId, fin al String  title, fin al Date cr eationDate ,
        119                final St ring userI d, final S erializabl e content,  final Str ing status ) {
        120           th is.documen tId = docu mentId;
        121                    this .title = t itle;
        122           th is.creatio nDate = cr eationDate ;
        123           th is.userId  = userId;
        124           th is.content  = content ;
        125           th is.status  = status;
        126           }
        127  
        128       public  UserDocum ent(final  Long docum entId, fin al String  title, fin al Date cr eationDate ,
        129                final St ring userI d, final S erializabl e content,  final Str ing status , final St ring forma t) {
        130           th is.documen tId = docu mentId;
        131                    this .title = t itle;
        132           th is.creatio nDate = cr eationDate ;
        133           th is.userId  = userId;
        134           th is.content  = content ;
        135           th is.status  = status;
        136           th is.format  = format;
        137           }
        138  
        139           @O verride
        140           pu blic boole an equals( final Obje ct object)  {
        141                    // T ODO: Warni ng - this  method won 't work in  the case  the id fie lds are
        142                    // n ot set
        143                    if ( !(object i nstanceof  UserDocume nt)) {
        144                             return  false;
        145                    }
        146                    fina l UserDocu ment other  = (UserDo cument) ob ject;
        147                    if ( ((this.doc umentId ==  null) &&  (other.doc umentId !=  null))
        148                                      || ((thi s.document Id != null ) && !this .documentI d
        149                                                       .e quals(othe r.document Id))) {
        150                             return  false;
        151                    }
        152                    retu rn true;
        153           }
        154  
        155           pu blic Seria lizable ge tContent()  {
        156                    retu rn this.co ntent;
        157           }
        158  
        159           pu blic Long  getDocumen tId() {
        160                    retu rn this.do cumentId;
        161           }
        162  
        163       public  String ge tUserId()  {
        164           re turn userI d;
        165       }
        166  
        167       public  String ge tTitle() {
        168           re turn title ;
        169       }
        170  
        171           @O verride
        172           pu blic int h ashCode()  {
        173                    int  hash = 0;
        174                    hash  += (this. documentId  != null ?  this.docu mentId.has hCode() :  0);
        175                    retu rn hash;
        176           }
        177  
        178           pu blic void  setContent (final Ser ializable  content) {
        179                    this .content =  content;
        180           }
        181  
        182           pu blic void  setDocumen tId(final  Long docum entId) {
        183                    this .documentI d = docume ntId;
        184           }
        185  
        186       public  void setU serId(Stri ng userId)  {
        187           th is.userId  = userId;
        188       }
        189  
        190       public  void setT itle(Strin g title) {
        191           th is.title =  title;
        192       }
        193  
        194       public  Date getC reationDat e() {
        195           re turn creat ionDate;
        196       }
        197  
        198       public  void setC reationDat e(Date cre ationDate)  {
        199           th is.creatio nDate = cr eationDate ;
        200       }
        201  
        202       public  String ge tStatus()  {
        203           re turn statu s;
        204       }
        205  
        206       public  void setS tatus(Stri ng status)  {
        207           th is.status  = status;
        208       }
        209  
        210       public  String ge tFormat()  {
        211           re turn forma t;
        212       }
        213  
        214       public  void setF ormat(Stri ng format)  {
        215           th is.format  = format;
        216       }
        217  
        218           @O verride
        219           pu blic Strin g toString () {
        220                    retu rn "gov.va .nvap.web. user.docum ent.UserDo cument[doc umentId="
        221                                      + this.d ocumentId  + "]";
        222           }
        223   }