Setting Restricted Access programmatically
Hi All,
Am using Restricted Access feature provided in RTC v3.0 for controlling view access for couple of work items for list of users. I understand that we can have it enabled on web client by including "Restricted Access" attribute in our editor presentation. Now I have a scenario wherein, I would need to create work items programmatically. I would want these newly created ones also to be set for access controlling by default. Can I set this attribute "Restricted Access" also in my program to achieve this?? Any pointers in this direction would greatly help. Thanks Thanks & regards, Mohan |
One answer
Hello Mohan,
yes you can set the Restricted Access att of a WorkItem programmatically. You basically need to get the UUID from the Project Area you want to set the value for and set the contextId attribute. Here I add you some snippets to try to help out:
Hope this eskeleton snippets help. Regads, Jorge Comments I'm using 4.0.3, and I'd like to programatically set Restricted Access to an Access Group. Is this possible? I haven't figured out how to return the UUID for the Access Group.
The code above would work for 4.0.3 as well.
Neal McKegney
commented Jul 04 '13, 1:50 p.m.
That code is getting the UUID for the Project Area though... I'm trying to get the UUID for an Access Group. Or am I missing something?
See https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ and look into how I get the SecurityContextProvider that actually uses them. Look into the code.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.