Determine project area access control configuration via API
I try to read the "Access control" configuration of a specific project area via API (Everyone, No one, Member of the project area hierarchy, etc...). There is a method "IProjectArea.getReadAccessList()" which gets me the list for the optional access list (so this API gets into this domain), but not more.
Accepted answer
https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi
Best regards,
-Vlad
Comments
As I have written, the java API IProjectArea.getReadAccessList() gets the access list and allows modifications.
And your right, I can get the information I need from the rest-service.
...
<jp06:access-public>true</jp06:access-public>
<jp06:access-visible-to-access-list>false</jp06:access-visible-to-access-list>
<jp06:access-visible-to-members>false</jp06:access-visible-to-members>
...
Should be enough to map to the 5 selections available in the "access control" tab of the project area editor.
Sadly in my program I already have fully resolved IProjectArea objects, and now I have to call a rest service (with complete handshake, etc...) just for this piece of information... could be easier.
Since process sharing is exposed in the Eclipse Client, you should be able to locate the API using the Plug In Spy. See http://ryehle.wordpress.com/2011/11/21/finding-the-right-service-api-for-your-process-extension/ for a hint.
Open the process area editor and plugin Spy that. It is most likely internal API though.