It's all about the answers!

Ask a question

How to get Role name using java API


silencehill wu (5022732) | asked Nov 01 '12, 5:03 a.m.

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!!

Accepted answer


permanent link
Morten Madsen (3053250) | answered Nov 01 '12, 7:21 a.m.
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

Your answer


Register or 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.