It's all about the answers!

Ask a question

How to check permission for iteration in AdvisableOperation?


Ashutosh Buxi (631) | asked Jul 30 '10, 7:41 a.m.
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??

2 answers



permanent link
Dancy Xia (11632) | answered Aug 03 '10, 12:58 a.m.
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

permanent link
Jared Burns (4.5k29) | answered Aug 11 '10, 9:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

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.