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

Getting members and roles programmatically for team area

Hello,

I'm trying to use the RTC API to get members and their roles programmatically for a team area. I'm using ITeamRepository and IProjectArea interfaces but I don't know how to handle the array of IContributorHandle returned by the getMembers method... I need to get all informations regarding these members. Moreover how to get roles then?

Are there any samples or documentations on how to use the RTC API?

Thanks very much for your help!
Thierry

2

0 votes



One answer

Permanent link
Hello,

I'm trying to use the RTC API to get members and their roles programmatically for a team area. I'm using ITeamRepository and IProjectArea interfaces but I don't know how to handle the array of IContributorHandle returned by the getMembers method... I need to get all informations regarding these members. Moreover how to get roles then?

Are there any samples or documentations on how to use the RTC API?

Thanks very much for your help!
Thierry


Hi Thierry,

I think something like this might help:

 IItem[] items = fItemService.fetchItems(processArea.getMembers(), IRepositoryItemService.COMPLETE);

for (IItem item : items) {
IContributor contributor = (IContributor) item;
if (contributor != null) {
IRole[] contributorRoles = serverProcess.getContributorRoles(contributor, processArea);


Where processArea can be your IProjectArea that you already have.
and the serverProcess is an IServerProcess (IProcessServerService)

2 votes

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: Feb 18 '11, 6:07 a.m.

Question was seen: 5,625 times

Last updated: Feb 18 '11, 6:07 a.m.

Confirmation Cancel Confirm