You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Sven Pfeiffer <sv...@innoface.de> on 2005/01/31 16:56:10 UTC
propfind to element group-member-set is null
Hi List
I am still trying to add automatically created users to groups.
I subclassed SubjectNode.
I am trying the following:
Vector props = new Vector();
//props.add(new PropertyName("DAV:", "group-member-set"));//tried both
props.add("group-member-set");
HttpURL url = new HttpURL("http://localhost:8080/slide/roles/user");
url.setUserinfo("@adminsystem", "initial");
WebdavResource resource = new WebdavResource(url);
System.out.println("soweit so gut");
Enumeration enu = resource.propfindMethod(
DepthSupport.DEPTH_INFINITY, props);
if (!enu.hasMoreElements())
return;
ResponseEntity ent = (ResponseEntity) enu.nextElement();
enu = ent.getProperties();
if (!enu.hasMoreElements())
return;
Property property = (Property) enu.nextElement();
// Property property = PropertyFactory.create(ent, );
org.w3c.dom.Element propele = property.getElement();
System.out.println("-----------------------------------------");
System.out.println(propele);
System.out.println("-----------------------------------------");
I am always getting:
-----------------------------------------
[D:group-member-set: null]
-----------------------------------------
And when using the DAVExplorer, as described in the howto-create-users.html the property group-member-set (among others) is not
displayed.
Can someone explain to me why I can't read this property?
Thanks in advance
SVen
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org