It's all about the answers!

Ask a question

Problem while process enabling an operation


vinay reddy (1711205) | asked Apr 24 '09, 7:17 a.m.
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?

2 answers



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

permanent link
vinay reddy (1711205) | answered Apr 24 '09, 9:19 a.m.
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?

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.