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

Permissions issue when process area is a project area

Permissions seem to work only when the user is at team area level but not at project area level i.e. when the process area is a project area, permissions do not work but when the process area is a team area, permissions work.Can some one suggest what is missing in the following code?

//get all the process areas i.e. either a project area or team areas to which the user belongs in this project
IProcessArea[] processAreas = processService.findProcessAreas(currentUser, projAreaHandle,
null);


if (processAreas.length > 0) {

System.out.println(processAreas.getName());

createOperation = new AdvisableOperation(OPERATION_ID_GETPLANS,
null, processAreas) {

@Override
public IOperationReport run(
IBehaviorConfiguration configuration,
IProgressMonitor monitor)
throws TeamRepositoryException {


return null;
}

@Override
public String[] getActions() throws TeamRepositoryException {
return new String[] { ACTION_ID_PLAN };
}

};

IServerProcess serverProcess = processServerService
.getServerProcess(processAreas);

IOperationReport report = serverProcess
.adviseAndExecute(createOperation);
System.out.println(report);
}
//if the user does not belong to any team area or even the project area
else
{
throw new TeamRepositoryException(null, "You are not a member of this project");
}

0 votes



2 answers

Permanent link
On Mon, 03 Aug 2009 16:23:00 +0000, vinaykumarreddyk wrote:

Permissions seem to work only when the user is at team area level but
not at project area level i.e. when the process area is a project area,
permissions do not work but when the process area is a team area,
permissions work.Can some one suggest what is missing in the following
code?

The code looks fine. Why do you say that permissions aren't working at
the project area level? How are you configuring your process in the
project?

Something to keep in mind is that the "Team Configuration" section of the
process spec applies to all operations which can be configured on a per-
team basis. So if you've got an operation that can be run for either a
team or project area, it will be configured in the Team Configuration
section, not the "Project Configuration". (We recognize that this is
confusing and hope to address it in a future release.)

--
Jared Burns
Jazz Process Team

0 votes


Permanent link
That is because a user who is a member of project area and with valid role gets permission denied exception when he tries to execute that operation. But for a user who is a member of team area and with valid role, it works well. Is that expected?

Am using Team Configuration-> Permissions to configure the permissions for the operation.

On Mon, 03 Aug 2009 16:23:00 +0000, vinaykumarreddyk wrote:

Permissions seem to work only when the user is at team area level but
not at project area level i.e. when the process area is a project area,
permissions do not work but when the process area is a team area,
permissions work.Can some one suggest what is missing in the following
code?

The code looks fine. Why do you say that permissions aren't working at
the project area level? How are you configuring your process in the
project?

Something to keep in mind is that the "Team Configuration" section of the
process spec applies to all operations which can be configured on a per-
team basis. So if you've got an operation that can be run for either a
team or project area, it will be configured in the Team Configuration
section, not the "Project Configuration". (We recognize that this is
confusing and hope to address it in a future release.)

--
Jared Burns
Jazz Process Team

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,939

Question asked: Aug 03 '09, 12:21 p.m.

Question was seen: 4,614 times

Last updated: Aug 03 '09, 12:21 p.m.

Confirmation Cancel Confirm