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

Problem while process enabling an operation

I'm trying to process enable an operation on the server by doing some thing like this in my service method

try {
if (teamAreas.length > 0) {

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

@Override
public IOperationReport run(
IBehaviorConfiguration configuration,
IProgressMonitor monitor)
throws TeamRepositoryException {
// TODO Auto-generated method stub
return null;
}

};

IServerProcess serverProcess = processServerService
.getServerProcess(teamAreas);

IOperationReport report = serverProcess
.adviseAndExecute(createOperation);
}
} catch (TeamRepositoryException e) {
System.out.println("inside exception");
System.out.println(e.getMessage());
}

Here is my related content in plugin.xml

<extension>
<category>
<operation>
<description>
The server-side view plans operation.
</description>

</operation>


</extension>


Now for every user who logs-in and tries to invoke the method, I get this output 'View Plans' failed. Missing required license.. Any Help?

0 votes



2 answers

Permanent link
Id of the operation seems to be an issue. I modified it not to use "com.ibm.*" pattern as per Matt's suggestion.

However, I still do not see the permissions being enforced. Now, all the users (roles) could access that operation although I have configured it for only certain roles. I have made sure that "default" user is not given permission for that operation. Any help?

0 votes


Permanent link
On Fri, 24 Apr 2009 13:28:02 +0000, vinaykumarreddyk wrote:

Id of the operation seems to be an issue. I modified it not to use
"com.ibm.*" pattern as per Matt's suggestion.

However, I still do not see the permissions being enforced. Now, all the
users (roles) could access that operation although I have configured it
for only certain roles. I have made sure that "default" user is not
given permission for that operation. Any help?

You need to implement AdvisableOperation#getActions().

--
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: Apr 24 '09, 7:17 a.m.

Question was seen: 5,272 times

Last updated: Apr 24 '09, 7:17 a.m.

Confirmation Cancel Confirm