Hi all,
One way I see how to do this is to traverse the project tree and its content items to assign the group, but it doesn't appear that using the ProjectData API is the way to do it. Any ideas?
Thank you in advance!
-AB
Actually, the Project API is exactly howyou do this. Basically all you need to do is:
Project p = Project.findProjectByPath(projectPath);
p.getProjectData().setAuthorizedGroups(newString[] { “authorizedGroup1”, “authorizedGroup2” });
p.commit();
While it is possible to set the authorizedgroups directly on a CI or SF, it’s recommended that you always do itthrough the containing project. This is because the authorized groups willalways be adjusted to those of the containing project when a CI/SF is moved orthe authorized groups on the project are changed, so any changes you makedirectly to a content item can be lost.
From: eLink Entry:Vignette V7 Web Content Management[mailto:v7webcontentmanagement@elinkkc.opentext.com] Sent: Monday, May 10, 2010 6:52 PMTo: eLink RecipientSubject: How to assign groups toproject and its CIs
How to assign groups to project and its CIs
Posted by abarabe@behr.com (Barabe, Anita) On 2010/05/10 19:50
[To post a comment, use the normal reply function]
Forum:
Vignette V7 Web Content Management
Livelink Server:
knowledge-wlweb01
About the problem on assigning the security directly on the CI or SF, how do I "do it through the containing project" ? I am traversing the project tree and directly changing the security to the project and its content, using Project and ProjectData for that.
That’s what I already explained. Ifyou’re using the Project API then you’re already doing it throughthe containing project since you aren’t doing it directly to the CIs/SFs.
From: eLink Entry:Vignette V7 Web Content Management[mailto:v7webcontentmanagement@elinkkc.opentext.com] Sent: Wednesday, May 12, 201012:53 PMTo: eLink RecipientSubject: RE How to assign groupsto project and its CIs
RE How to assign groups to project and its CIs
Posted by abarabe@behr.com (Barabe, Anita) On 2010/05/12 13:48
Topic:
That's right, all CIs under the project will inherit the new security and the same API takes case of that. Thank you a lot for pointing this out.