It's all about the answers!

Ask a question

Is there any API to find Access control details of projectarea?


ast java (45233) | asked May 05 '16, 8:01 a.m.
edited May 06 '16, 12:35 a.m.
 Hi,

In RTC project area there is a element called "Access Control".

Which contains the accessing permission to a project area.

This is used to set the access permissions for the users in the project area.

These are the below optional fields are available.

Grant read access to:

Can anyone please help me on this?

Comments
ast java commented May 06 '16, 12:37 a.m. | edited May 06 '16, 12:38 a.m.

Can anyone help me to get any workaround to fetch these details? 

2 answers



permanent link
Bharat Malge (213427) | answered May 06 '16, 1:25 a.m.

 Hello,

These are the project level permissions and user can get errors like com.ibm.team.repository.common.PermissionDeniedException: CRJAZ1319E Read access

is not permitted. The user, bharat, tried to read one or more items that have the following type: WorkItem,baselineset,project area.

You can use PermissionAware API when retrieving the info from project area.

You can refer this link : https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/


Comments
ast java commented May 06 '16, 5:32 a.m.

 Hi Bharath,


Thanks for your response. But the mentioned API is used to find workitem related information's.

As I mentioned in my query I am looking for the read access for the  project area. 

i.e. which field has been selected kind of information. 

Please let me know if there are any API's to get these information's.

 


permanent link
ast java (45233) | answered May 13 '16, 12:19 a.m.
 Finally I had found the solution for this.

Hope it might help someone.

If you have the project area instance then follow the below steps,.

ProjectAreaImpl projectAreaImpl = (ProjectAreaImpl) this.projectArea.getWorkingCopy();

    projectAreaImpl.isInternalVisibleToAccessList();
    projectAreaImpl.isInternalVisibleToMembers();
    projectAreaImpl.isInternalPublic();

By using the above method calls you can easily fetch these access control information's.

Your answer


Register or to post your answer.