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

How to check permission for iteration in AdvisableOperation?

Hi,

I am looking for the way in which I can check the permission for iteration level in an Advisable Operation.
Currently the Constructor of AdvisableOperation object is :
public AdvisableOperation(String operationId, Object operationData, IProcessArea processArea, IDevelopmentLine line)

Here, the determining factors are precessArea and DevLine only.

How to check the permission for iteration (for all iterations; current as well as all other iterations) in AdvisableOperation?

Is there any way to include the iteration (any one of the iterations available for a project area) as determining factor along with processArea and Devline? or any other way round to do this??

0 votes



2 answers

Permanent link
How to check the permission for iteration (for all iterations; current as well as all other iterations) in AdvisableOperation?


You can get current iteration/all iterations from IDevelopmentLine. It provides functions like IIterationHandle getCurrentIteration(), IIterationHandle[] getIterations().

Dancy
Jazz Process Authoring Team

0 votes


Permanent link
On Tue, 03 Aug 2010 05:07:53 +0000, dancy wrote:

abuxiwrote:
How to check the permission for iteration (for all iterations; current
as well as all other iterations) in AdvisableOperation?

You can get current iteration/all iterations from IDevelopmentLine. It
provides functions like IIterationHandle getCurrentIteration(),
IIterationHandle[] getIterations().

Dancy
Jazz Process Authoring Team

When you implement an AdvisableOperation, you do not (in fact, must not)
do any checking of permissions yourself. You should give the advisable
operation the appropriate team area in the constructor and pass the
operation to the IClientProcess or IServerProcess to adviseAndExecute.
The process runtime will take care of checking permissions as appropriate.

Please don't follow the advice given in the previous reply.

- Jared
----------------------
Jazz Team Process

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

Question asked: Jul 30 '10, 7:41 a.m.

Question was seen: 5,419 times

Last updated: Jul 30 '10, 7:41 a.m.

Confirmation Cancel Confirm