It's all about the answers!

Ask a question

Permissions issue when process area is a project area


vinay reddy (171205) | asked Aug 03 '09, 12:21 p.m.
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");
}

2 answers



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

permanent link
vinay reddy (171205) | answered Aug 04 '09, 1:04 p.m.
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

Your answer


Register or to post your answer.