How can I delete values of an multi-value attribute?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Markus_Niemann
Posted On:   Monday, August 18, 2003 01:47 AM

Hey all,


i got a multi-value attribute "member" and want to delete one or more of its values. ADD / REMOVE / REPLACE are clear to me, but how can i remove just one value of the member attribute?



Any help appreciate,

Markus

Re: How can I delete values of an multi-value attribute?

Posted By:   Markus_Niemann  
Posted On:   Monday, August 18, 2003 02:27 AM

ok, forget it. it is very simple. just take the REMOVE_ATTRIBUTE method of the class DirContext.


Attribute mod1 = new BasicAttribute("member", "uid=Name");
mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE, mod1);





Markus
About | Sitemap | Contact