I was trying to remove public right from object with following code:
NodeRights rights = GetObjectRights(docID);
NodeRight nr = rights.PublicRight;
OpenText.Livelink.Service.DocMan.DocumentManagement docManagement = new DocumentManagement();
docManagement.Authentication = adminAuth;
docManagement.RemoveNodeRight(docID, nr);
I got error: "Cannot remove right - invalid Type."
Does anyone know what is the problem?
Finally I managed to do the following:
NodeRights rights = GetObjectRights(docID);
NodeRight nr = rights.PublicRight;
OpenText.Livelink.Service.DocMan.DocumentManagement docManagement = new DocumentManagement();
docManagement.Authentication = adminAuth;
nr.Permissions.SeeContentsPermission = false;
nr.Permissions.SeePermission = false;
docManagement.UpdateNodeRight(docID, nr);
But that is update, so publich right is not removed, just permissions are taken away.
So how to remove public right?
Thx