276. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/13/2018 10:35:27 AM Eastern Standard 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.

276.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\model\ldap LdapPerson.java Fri Dec 7 17:36:36 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\model\ldap LdapPerson.java Wed Dec 12 22:13:29 2018 UTC

276.2 Comparison summary

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

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

276.4 Active regular expressions

No regular expressions were active.

276.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2008 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4   package go v.va.med.f w.model.ld ap;
  5  
  6   import jav a.io.Seria lizable;
  7   import jav a.util.Set ;
  8   import jav a.util.Tre eSet;
  9  
  10   import org .apache.co mmons.lang .builder.E qualsBuild er;
  11   import org .apache.co mmons.lang .builder.H ashCodeBui lder;
  12   import org .springfra mework.cor e.style.To StringCrea tor;
  13  
  14   import gov .va.med.fw .util.Stri ngUtils;
  15  
  16   /**
  17    * Class r epresentin g an Ldap  person
  18    * 
  19    * CISS ci ss_framewo rk Jun 23,  2008
  20    * 
  21    * @author  
D NS
  22    */
  23  
  24   public cla ss LdapPer son implem ents Seria lizable {
  25           pr ivate stat ic final l ong serial VersionUID  = -895386 2790009843 528L;
  26           
  27           pu blic stati c String D ISABLED_US ERS = "OU= Disabled U sers";
  28       public  static St ring DISAB LED_ACCOUN TS = "OU=D isabled Ac counts";
  29       
  30           pr ivate Stri ng dn;
  31           pr ivate Stri ng shortDn ; // dn mi nus base
  32           pr ivate Stri ng samAcco untName;
  33           pr ivate Stri ng userPri ncipalName ;
  34           pr ivate Stri ng fullNam e;
  35           pr ivate Stri ng display Name;
  36           pr ivate Stri ng lastNam e;
  37           pr ivate Stri ng firstNa me;
  38           pr ivate Stri ng middleN ame;
  39           pr ivate Stri ng badPass wordCount;
  40           pr ivate Stri ng title;
  41           pr ivate Stri ng departm ent;
  42           pr ivate Stri ng descrip tion;
  43           pr ivate Stri ng office;
  44           pr ivate Stri ng telepho neNumber;
  45           pr ivate Stri ng email;
  46           pr ivate Set< String> gr oups = new  TreeSet<S tring>();
  47           pr ivate Set< String> ci ssGroups =  new TreeS et<String> ();
  48           pr ivate Set< String> ne wGroups =  new TreeSe t<String>( );
  49           pr ivate Set< String> de letedGroup s = new Tr eeSet<Stri ng>();
  50  
  51           /* *
  52            *  @return R eturns the  Distingui shed Name  of the Lda p Person.
  53            * /
  54           pu blic Strin g getDn()  {
  55                    retu rn dn;
  56           }
  57  
  58           /* *
  59            *  @param dn
  60            *              The full  Distingui shed Name  to set.
  61            * /
  62           pu blic void  setDn(Stri ng dn) {
  63                    this .dn = dn;
  64           }
  65  
  66           /* *
  67            *  @return R eturns the  Distingui shed Name  of the Lda p Person n ot includi ng
  68            *          t he base po rtion of t he DN, spe cifically:
  69            *          D C=vha,DC=m ed,DC=va,D C=gov.
  70            * /
  71           pu blic Strin g getShort Dn() {
  72                    retu rn shortDn ;
  73           }
  74  
  75           /* *
  76            *  @param sh ortDn
  77            *              The Dist inguished  Name to se t not incl uding the  base porti on
  78            *              specific ally DC=vh a,DC=med,D C=va,DC=go v.
  79            * /
  80           pu blic void  setShortDn String(Str ing shortD n) {
  81                    this .shortDn =  shortDn;
  82           }
  83  
  84           /* *
  85            *  @return R eturns the  Last Name  of the Ld ap Person.
  86            * /
  87           pu blic Strin g getLastN ame() {
  88                    retu rn lastNam e;
  89           }
  90  
  91           /* *
  92            *  @param la stName
  93            *              The Last  Name to s et.
  94            * /
  95           pu blic void  setLastNam e(String l astName) {
  96                    this .lastName  = lastName ;
  97           }
  98  
  99           /* *
  100            *  @return R eturns the  First Nam e of the L dap Person .
  101            * /
  102           pu blic Strin g getFirst Name() {
  103                    retu rn firstNa me;
  104           }
  105  
  106           /* *
  107            *  @param fi rstName
  108            *              The Firs t Name to  set.
  109            * /
  110           pu blic void  setFirstNa me(String  firstName)  {
  111                    this .firstName  = firstNa me;
  112           }
  113  
  114           /* *
  115            *  @return R eturns the  Middle Na me of the  Ldap Perso n.
  116            * /
  117           pu blic Strin g getMiddl eName() {
  118                    retu rn middleN ame;
  119           }
  120  
  121           /* *
  122            *  @param mi ddleName
  123            *              The Midd le Name to  set.
  124            * /
  125           pu blic void  setMiddleN ame(String  middleNam e) {
  126                    this .middleNam e = middle Name;
  127           }
  128  
  129           /* *
  130            *  @return R eturns the  Middle Na me of the  Ldap Perso n.
  131            * /
  132           pu blic Strin g getBadPa sswordCoun t() {
  133                    retu rn badPass wordCount;
  134           }
  135  
  136           /* *
  137            *  @param mi ddleName
  138            *              The Midd le Name to  set.
  139            * /
  140           pu blic void  setBadPass wordCount( String bad PasswordCo unt) {
  141                    this .badPasswo rdCount =  badPasswor dCount;
  142           }
  143  
  144           /* *
  145            *  @return R eturns the  sAMAccoun tName of t he Ldap Pe rson.
  146            * /
  147           pu blic Strin g getSamAc countName( ) {
  148                    retu rn samAcco untName;
  149           }
  150  
  151           /* *
  152            *  @param sa mAccountNa me
  153            *              The sAMA ccountName  to set.
  154            * /
  155           pu blic void  setSamAcco untName(St ring samAc countName)  {
  156                    this .samAccoun tName = sa mAccountNa me;
  157           }
  158  
  159           /* *
  160            *  @return R eturns the  sAMAccoun tName of t he Ldap Pe rson.
  161            * /
  162           pu blic Strin g getUserP rincipalNa me() {
  163                    retu rn userPri ncipalName ;
  164           }
  165  
  166           /* *
  167            *  @param sa mAccountNa me
  168            *              The sAMA ccountName  to set.
  169            * /
  170           pu blic void  setUserPri ncipalName (String us erPrincipa lName) {
  171                    this .userPrinc ipalName =  userPrinc ipalName;
  172           }
  173  
  174           /* *
  175            *  @return R eturns the  Full Name  of the Ld ap Person.
  176            * /
  177           pu blic Strin g getFullN ame() {
  178                    retu rn fullNam e;
  179           }
  180  
  181           /* *
  182            *  @param fu llName
  183            *              The Full  Name to s et.
  184            * /
  185           pu blic void  setFullNam e(String f ullName) {
  186                    this .fullName  = fullName ;
  187           }
  188  
  189           pu blic Strin g getDepar tment() {
  190                    retu rn departm ent;
  191           }
  192  
  193           pu blic void  setDepartm ent(String  departmen t) {
  194                    this .departmen t = depart ment;
  195           }
  196  
  197           pu blic Strin g getDescr iption() {
  198                    retu rn descrip tion;
  199           }
  200  
  201           pu blic void  setDescrip tion(Strin g descript ion) {
  202                    this .descripti on = descr iption;
  203           }
  204  
  205           pu blic Strin g getTitle () {
  206                    retu rn title;
  207           }
  208  
  209           pu blic void  setTitle(S tring titl e) {
  210                    this .title = t itle;
  211           }
  212  
  213           pu blic Strin g getOffic e() {
  214                    retu rn office;
  215           }
  216  
  217           pu blic void  setOffice( String off ice) {
  218                    this .office =  office;
  219           }
  220  
  221           pu blic Strin g getDispl ayName() {
  222                    retu rn display Name;
  223           }
  224  
  225           pu blic void  setDisplay Name(Strin g displayN ame) {
  226                    this .displayNa me = displ ayName;
  227           }
  228  
  229           pu blic Strin g getTelep honeNumber () {
  230                    retu rn telepho neNumber;
  231           }
  232  
  233           pu blic void  setTelepho neNumber(S tring tele phoneNumbe r) {
  234                    this .telephone Number =
  235                         (StringUti ls.isNotBl ank(teleph oneNumber)  && teleph oneNumber. length() >  30) ? tel ephoneNumb er.substri ng(0,30) :  telephone Number;
  236           }
  237  
  238           pu blic Strin g getEmail () {
  239                    retu rn email;
  240           }
  241  
  242           pu blic void  setEmail(S tring emai l) {
  243                    this .email = e mail;
  244           }
  245  
  246           /* *
  247            *  @return R eturns a s et of Grou p DNs or w hich the L dap Person  is a memb er.
  248            * /
  249           pu blic Set<S tring> get Groups() {
  250                    retu rn groups;
  251           }
  252  
  253           /* *
  254            *  @param gr oups
  255            *              The set  of Group D Ns to set.
  256            * /
  257           pu blic void  setGroups( Set<String > groups)  {
  258                    this .groups =  groups;
  259           }
  260  
  261           /* *
  262            *  @return R eturns a s et of CISS  Group CNs  of which  the Ldap P erson is a
  263            *          m ember. The  group CN  is the sam e as the g roup sAMAc countName.
  264            * /
  265           pu blic Set<S tring> get CissGroups () {
  266                    retu rn cissGro ups;
  267           }
  268  
  269           /* *
  270            *  @param gr oups
  271            *              The set  of CISS Gr oup CNs to  set. The  group CN i s the same  as
  272            *              the grou p sAMAccou ntName.
  273            * /
  274           pu blic void  setCissGro ups(Set<St ring> ciss Groups) {
  275                    this .cissGroup s = cissGr oups;
  276           }
  277  
  278           /* *
  279            *  @return R eturns a s et of newl y added CI SS Group C Ns of whic h the Ldap
  280            *          P erson is a  member. T he CN is t he same as  the sAMAc countName.
  281            * /
  282           pu blic Set<S tring> get NewGroups( ) {
  283                    retu rn newGrou ps;
  284           }
  285  
  286           /* *
  287            *  @param gr oups
  288            *              The set  of newly a dded CISS  Group CNs  to set. Th e CN is th e
  289            *              same as  the sAMAcc ountName.
  290            * /
  291           pu blic void  setNewGrou ps(Set<Str ing> newGr oups) {
  292                    this .newGroups  = newGrou ps;
  293           }
  294  
  295           /* *
  296            *  @return R eturns a s et of CISS  Group CNs  to remove  the ldapP erson from .
  297            *          T he CN is t he same as  the sAMAc countName.
  298            * /
  299           pu blic Set<S tring> get DeletedGro ups() {
  300                    retu rn deleted Groups;
  301           }
  302  
  303           /* *
  304            *  @param gr oups
  305            *              The set  of deleted  CISS Grou p CNs to s et. The CN  is the sa me
  306            *              as the s AMAccountN ame.
  307            * /
  308           pu blic void  setDeleted Groups(Set <String> d eletedGrou ps) {
  309                    this .deletedGr oups = del etedGroups ;
  310           }
  311  
  312           pu blic boole an isDisab led() {
  313                    if(g roups != n ull && (gr oups.conta ins(DISABL ED_USERS)  || groups. contains(D ISABLED_AC COUNTS)))  {
  314                             return  true;
  315                    }
  316                    retu rn false;
  317           }
  318           
  319           pu blic boole an equals( Object obj ) {
  320                    if ( obj == nul l || getCl ass() != o bj.getClas s()) {
  321                             return  false;
  322                    }
  323                    retu rn EqualsB uilder.ref lectionEqu als(this,  obj);
  324           }
  325  
  326           pu blic int h ashCode()  {
  327                    retu rn HashCod eBuilder.r eflectionH ashCode(th is);
  328           }
  329  
  330           pu blic Strin g toString () {
  331                    retu rn new ToS tringCreat or(this).t oString();
  332           }
  333   }