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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\model\ldap | SearchCriteria.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 | SearchCriteria.java | Wed Dec 12 22:13:29 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 300 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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.Arr ayList; | |
| 8 | import jav a.util.Lis t; | |
| 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 | /** | |
| 15 | * Class r epresentin g search c riteria us ed to sear ch for an Ldap Group or Person | |
| 16 | * | |
| 17 | * CISS ci ss_framewo rk Jun 23, 2008 | |
| 18 | * | |
| 19 | * @author
|
|
| 20 | */ | |
| 21 | public cla ss SearchC riteria im plements S erializabl e, LdapCon stants { | |
| 22 | ||
| 23 | pr ivate stat ic final l ong serial VersionUID = -426320 8255805049 113L; | |
| 24 | ||
| 25 | pu blic stati c final St ring STAFF _SEARCH = "STAFF_SEA RCH"; | |
| 26 | pu blic stati c final St ring ADMIN _SEARCH = "ADMIN_SEA RCH"; | |
| 27 | ||
| 28 | pr ivate Stri ng sAMAcco untName = ""; | |
| 29 | pr ivate Stri ng groupNa me = ""; | |
| 30 | pr ivate Stri ng lastNam e = ""; | |
| 31 | pr ivate Stri ng firstNa me = ""; | |
| 32 | pr ivate Stri ng middleN ame = ""; | |
| 33 | pr ivate Stri ng name = ""; | |
| 34 | ||
| 35 | pr ivate List <String> v isns = new ArrayList <String>() ; | |
| 36 | pr ivate List <String> s tations = new ArrayL ist<String >(); | |
| 37 | pr ivate List <String> r oles = new ArrayList <String>() ; | |
| 38 | pr ivate List <String> v endors = n ew ArrayLi st<String> (); | |
| 39 | ||
| 40 | pr ivate Stri ng searchT ype = STAF F_SEARCH; | |
| 41 | ||
| 42 | pu blic Strin g getSAMAc countName( ) { | |
| 43 | retu rn sAMAcco untName; | |
| 44 | } | |
| 45 | ||
| 46 | pu blic void setSAMAcco untName(St ring sAMAc countName) { | |
| 47 | this .sAMAccoun tName = sA MAccountNa me; | |
| 48 | } | |
| 49 | ||
| 50 | pu blic Strin g getGroup Name() { | |
| 51 | retu rn groupNa me; | |
| 52 | } | |
| 53 | ||
| 54 | pu blic void setGroupNa me(String groupName) { | |
| 55 | this .groupName = groupNa me; | |
| 56 | } | |
| 57 | ||
| 58 | pu blic Strin g getFirst Name() { | |
| 59 | retu rn firstNa me; | |
| 60 | } | |
| 61 | ||
| 62 | pu blic void setFirstNa me(String firstName) { | |
| 63 | this .firstName = firstNa me; | |
| 64 | } | |
| 65 | ||
| 66 | pu blic Strin g getLastN ame() { | |
| 67 | retu rn lastNam e; | |
| 68 | } | |
| 69 | ||
| 70 | pu blic void setLastNam e(String l astName) { | |
| 71 | this .lastName = lastName ; | |
| 72 | } | |
| 73 | ||
| 74 | pu blic Strin g getMiddl eName() { | |
| 75 | retu rn middleN ame; | |
| 76 | } | |
| 77 | ||
| 78 | pu blic void setMiddleN ame(String middleNam e) { | |
| 79 | this .middleNam e = middle Name; | |
| 80 | } | |
| 81 | ||
| 82 | pu blic Strin g getName( ) { | |
| 83 | retu rn name; | |
| 84 | } | |
| 85 | ||
| 86 | pu blic void setName(St ring name) { | |
| 87 | this .name = na me; | |
| 88 | } | |
| 89 | ||
| 90 | pu blic void setUserID( String use rID) { | |
| 91 | this .sAMAccoun tName = us erID; | |
| 92 | } | |
| 93 | ||
| 94 | pu blic Strin g getUserI D() { | |
| 95 | retu rn this.sA MAccountNa me; | |
| 96 | } | |
| 97 | ||
| 98 | pu blic List< String> ge tVisns() { | |
| 99 | retu rn visns; | |
| 100 | } | |
| 101 | ||
| 102 | pu blic void setVisns(L ist<String > visns) { | |
| 103 | this .visns = v isns; | |
| 104 | } | |
| 105 | ||
| 106 | pu blic List< String> ge tStations( ) { | |
| 107 | retu rn station s; | |
| 108 | } | |
| 109 | ||
| 110 | pu blic void setStation s(List<Str ing> stati ons) { | |
| 111 | this .stations = stations ; | |
| 112 | } | |
| 113 | ||
| 114 | pu blic List< String> ge tRoles() { | |
| 115 | retu rn roles; | |
| 116 | } | |
| 117 | ||
| 118 | pu blic void setRoles(L ist<String > roles) { | |
| 119 | this .roles = r oles; | |
| 120 | } | |
| 121 | ||
| 122 | pu blic List< String> ge tVendors() { | |
| 123 | retu rn vendors ; | |
| 124 | } | |
| 125 | ||
| 126 | pu blic void setVendors (List<Stri ng> vendor s) { | |
| 127 | this .vendors = vendors; | |
| 128 | } | |
| 129 | ||
| 130 | pu blic int h ashCode() { | |
| 131 | retu rn HashCod eBuilder.r eflectionH ashCode(th is); | |
| 132 | } | |
| 133 | ||
| 134 | pu blic boole an equals( Object obj ) { | |
| 135 | if ( obj == nul l || getCl ass() != o bj.getClas s()) | |
| 136 | return false; | |
| 137 | retu rn EqualsB uilder.ref lectionEqu als(this, obj); | |
| 138 | } | |
| 139 | ||
| 140 | pu blic Strin g getSearc hType() { | |
| 141 | retu rn searchT ype; | |
| 142 | } | |
| 143 | ||
| 144 | pu blic void setSearchT ype(String searchTyp e) { | |
| 145 | this .searchTyp e = search Type; | |
| 146 | } | |
| 147 | ||
| 148 | pu blic Strin g toString () { | |
| 149 | retu rn new ToS tringCreat or(this).a ppend(SAM_ ACCOUNT_NA ME, sAMAcc ountName). toString() ; | |
| 150 | } | |
| 151 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.