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?
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
2 answers
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?
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?
On Fri, 24 Apr 2009 13:28:02 +0000, vinaykumarreddyk wrote:
You need to implement AdvisableOperation#getActions().
--
Jared Burns
Jazz Process Team
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