Does Web Services supports to create new group? If yes, Please share sample code.
Thanks
VRao
Yes, you can create a group using the MemberService's CreateMember method. Pass the method a Group object to create a group.
The C# Tree View sample makes use of this method.
Thanks,
Scott
Many thanks,
I have another issue regarding setting node permission using setACLRights(), below API document says the Class NodeRights has setACLRights() method but in webreferences.jar file the Class NodeRights has no setACLRights() method.
Thanks In Adv.
Vrao
You can add instances of NodeRight to the ACLRights property like this:
myNodeRights.getACLRights().add( myNewNodeRight );
Thanks Scott,
Its working fine.
Scott,
I am trying to add Group to folder with following code, its doing nothing(No errors).
DocumentManagement documentManagement = serviceUtil.getDMService(DocLocation, token); //42628 is folder id
NodeRights nodeRights = documentManagement.getNodeRights(42628); NodeRight nodeRight = new NodeRight(); NodePermissions permissions = new NodePermissions(); permissions.setSeeContentsPermission(true); permissions.setEditAttributesPermission(true); nodeRight.setType("ACL");
// 42848 is Group Id nodeRight.setRightID(42848); nodeRight.setPermissions(permissions); nodeRights.getACLRights().add(nodeRight);
what worng i am doing?
To add a new group to a node's ACL, use the DocumentManagement.AddNodeRight() method. Just pass it the NodeRight object you've created. There are also UpdateNodeRight() and RemoveNodeRight() methods.
How can I apply the current noderights to all the subnodes by using web service?
Thanks!
Yun
Hi, Yun.
Take a look at the DocumentManagement service's UpdateNodeRightsContext and UpdateNodeRights methods. You call the first one to get a context ID and then (repeatedly) call the latter to perform the updates in chunks.
https://knowledge.opentext.com/knowledge/Livelink.exe/wiki/15622433/com.opentext.livelink.service.docman.DocumentManagement_JAXWS
thanks,
If I have a node with a tree structure children nodes (a mother tempate), I want to create an instance of this structure.
I use the docman web service to make a node copy based on the template node, how can I also pass all the ACLRights in the template Correspondingly to the instance? The ACLRights for each subfolder is different.
The DocumentManagement.SetNodeRights() method should work for you. If you want to only add a set ACL rights, then calling the AddNodeRight() method for each ACL right might also work.