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

setting the visibilty of a stream using the java api 3.014

I am setting the owner of a stream to a team using

stream.setOwnerAndVisibility(teamArea, <project visibility> , MONITOR);

I want to set the visibility to the project.

How do I get the IReadScope of a project using the java API.

0 votes



2 answers

Permanent link
IReadScope.FACTORY has methods to create the different scopes for your visibility. The javadoc for IReadScope will explain the read scopes that can be applied to each type of owner. For your case, you set the visibility of the team area to the process area scope. Process area scope defers the visibility to the owning project area.

0 votes


Permanent link
ProcessAreaScope pas = (ProcessAreaScope) IReadScope.FACTORY.createProcessAreaScope();
pas.setProcessArea(processarea);
wc.setOwnerAndVisibility(teamArea,(IReadScope) pas, MONITOR);


You would think their is a simpler way.

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
× 411

Question asked: Nov 06 '12, 8:34 a.m.

Question was seen: 4,964 times

Last updated: Nov 06 '12, 11:43 a.m.

Confirmation Cancel Confirm