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

Get the role of a contributor

How to get the roles assigned to a user(contributor) given a contributor handle? I had a glance at IContributor and IContributorDetails but could not find any such api.

After some search, I find this in IServerProcess

IRole[] getContributorRoles(IContributorHandle contributor, IProcessArea processArea) throws TeamRepositoryException;

Now, how do I know what IProcessAreas a contributor is associated with? This leads me to the question of api to get IProcessAreas given a IContributorHandle. Help plz.

0 votes



5 answers

Permanent link
Solved. Sorry for the dummy question, it was mainly a plugins dependencies problem.

In case it helps other people:

- from "AdvisableOperation operation" parameter I can get the Process Area
- from "IProcessServerService" I can an object implementing "IServerProcess " to use "getContributorRoles" method

Regards,

Jorge.

1 vote


Permanent link
Hi
On the client, you can use
IProcessItemService#findProcessAreas
and on the server
IProcessService#findProcessAreas


Regards

Marcel
Jazz Work Item team

0 votes


Permanent link
Is this the api what you are referring to?

public IProcessArea findProcessArea(String areaURI, String[] properties) throws TeamRepositoryException;


If so, how to get the areaURI given a contributor?

Alternatively I find ContributorDTO which has some info about user roles. However it seems to be present in an internal package. Any suggestion?

0 votes


Permanent link
No, I was referring to:

IProcessArea[] findProcessAreas(IContributor user, IProjectAreaHandle projectAreaHandle, String[] properties) throws TeamRepositoryException;

which takes an IContributor and the project area as argument. The result is an array with ITeamArea elements and mabye the IProjectArea, too (if the contributor is also member of the project area itself).

Regards

Marcel
Jazz Work Item team

0 votes


Permanent link
No, I was referring to:

IProcessArea[] findProcessAreas(IContributor user, IProjectAreaHandle projectAreaHandle, String[] properties) throws TeamRepositoryException;

which takes an IContributor and the project area as argument. The result is an array with ITeamArea elements and mabye the IProjectArea, too (if the contributor is also member of the project area itself).

Regards

Marcel
Jazz Work Item team


Is it possible to get the same information (role assigned to contributor) from within a Process Advisor execution? From the AdvisableOperation object I can get ProcessArea information (getNewProcessArea) but there I have no information bout roles.

Thanks!

Regards,

Jorge

0 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
× 10,927

Question asked: Mar 25 '09, 2:36 p.m.

Question was seen: 10,110 times

Last updated: Mar 25 '09, 2:36 p.m.

Confirmation Cancel Confirm