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 |
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? |
Jared Burns (4.5k●2●9)
| 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 You need to implement AdvisableOperation#getActions(). -- Jared Burns Jazz Process Team |
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.