Produced by Araxis Merge on 6/11/2019 10:54:13 AM 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\persistent\ldap | GroupContextMapper.java | Wed May 29 15:26:04 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\persistent\ldap | GroupContextMapper.java | Tue Jun 11 11:39:48 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 78 |
| 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.persiste nt.ldap; | |
| 5 | ||
| 6 | import jav a.util.Arr ays; | |
| 7 | import jav a.util.Lis t; | |
| 8 | import jav a.util.Tre eSet; | |
| 9 | ||
| 10 | import org .springfra mework.lda p.core.Con textMapper ; | |
| 11 | import org .springfra mework.lda p.core.Dir ContextOpe rations; | |
| 12 | ||
| 13 | import gov .va.med.fw .model.lda p.LdapCons tants; | |
| 14 | import gov .va.med.fw .model.lda p.LdapGrou p; | |
| 15 | ||
| 16 | /** | |
| 17 | * Maps at tributes f rom DirCon textOperat ions to pr operties o f LdapGrou p. | |
| 18 | * | |
| 19 | * CISS ci ss_framewo rk Jun 23, 2008 | |
| 20 | * | |
| 21 | * @author
|
|
| 22 | */ | |
| 23 | public cla ss GroupCo ntextMappe r implemen ts Context Mapper, Ld apConstant s { | |
| 24 | ||
| 25 | pu blic Objec t mapFromC ontext(Obj ect ctx) { | |
| 26 | DirC ontextOper ations dir Context = (DirContex tOperation s) ctx; | |
| 27 | Ldap Group grou p = new Ld apGroup(); | |
| 28 | grou p.setCnNam e(dirConte xt.getStri ngAttribut e(CN)); | |
| 29 | grou p.setDisti nguishedNa me(dirCont ext.getStr ingAttribu te(DISTING UISHED_NAM E)); | |
| 30 | grou p.setSamAc countName( dirContext .getString Attribute( SAM_ACCOUN T_NAME)); | |
| 31 | ||
| 32 | Stri ng[] membe rsArray = dirContext .getString Attributes (MEMBER); | |
| 33 | if ( membersArr ay != null ) { | |
| 34 | List l ist = Arra ys.asList( membersArr ay); | |
| 35 | group. setMembers (new TreeS et(list)); | |
| 36 | } | |
| 37 | ||
| 38 | retu rn group; | |
| 39 | } | |
| 40 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.