Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get Role name using java API

I am adding a new Pre-condition for RTC plug-in development, and I want to list all role name in a list, but I only get IRole by API, and IRole only have ID and description field, but name field can not be found. how can I get the Role name by java api?

Please help me.

Thanks!!

0 votes


Accepted answer

Permanent link
I haven't tried this myself, but I can see another Class called IRole2 which is a direct subinterface.

Can you try to cast to this type instead?

like:

IRole2 role2 = (IRole2) irole1;

/Cheers, M.
silencehill wu selected this answer as the correct answer

1 vote

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 01 '12, 5:03 a.m.

Question was seen: 4,183 times

Last updated: Nov 01 '12, 7:21 a.m.

Confirmation Cancel Confirm