Produced by Araxis Merge on 12/13/2018 10:35:28 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\persistent\ldap | GroupContextMapper.java | Fri Dec 7 17:36:34 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\persistent\ldap | GroupContextMapper.java | Wed Dec 12 22:13:29 2018 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.