Topic
1 reply Latest Post - ‏2009-07-29T18:54:47Z by ishields
brobbsnet
brobbsnet
1 Post
ACCEPTED ANSWER

Pinned topic creating new static role at org Root as admin

‏2009-07-29T18:40:22Z |
i am trying to create a new static role at the ORG_ROOT. i do have admin access.
what is wrong with this code ?

//testing
Map iMap =new HashMap();
iMap.put("errolename","OroleRemote");
iMap.put("description","O_role_Remote");
System.out.println("creating a role ..... ");
com.ibm.itim.common.AttributeValues attrVals=
new com.ibm.itim.common.AttributeValues(iMap);
System.out.println("created AttributeValues ..... ");
//create a role
com.ibm.itim.dataservices.model.domain.Role role=
new com.ibm.itim.dataservices.model.domain.Role(attrVals);
System.out.println("created role ..... ");
//create a role manager
com.ibm.itim.apps.identity.RoleManager roleMgr=
new com.ibm.itim.apps.identity.RoleManager(platform,lc.getSubject());
System.out.println("created RoleManager ..... ");
com.ibm.itim.apps.Request request=
roleMgr.createRole(ocmo,role,new java.util.Date());
System.out.println("EXPI:role request sent ID "+request.getID());
System.out.println("EXPI:role request status "+request.getStatus());
System.out.println("EXPI:role request scheduled Time: "+request.getScheduledTime());

This is the exception i am getting:
com.ibm.itim.apps.ApplicationException: com.ibm.itim.apps.ejb.role.FINDER_ERROR
at com.ibm.itim.apps.identity.RoleManager.createRole(RoleManager.java:157)
at com.cigna.cip.oroles.ItimRoleCreator.createStaticRole(ItimRoleCreator.java:71)
at com.cigna.cip.oroles.ItimRoleCreator.main(ItimRoleCreator.java:33)
Caused by: com.ibm.itim.apps.ApplicationException: com.ibm.itim.apps.ejb.role.FINDER_ERROR
Updated on 2009-07-29T18:54:47Z at 2009-07-29T18:54:47Z by ishields
  • ishields
    ishields
    988 Posts
    ACCEPTED ANSWER

    Re: creating new static role at org Root as admin

    ‏2009-07-29T18:54:47Z  in response to brobbsnet
    I'd suggest asking in the Security Management forum as it deals with Tivoli security software products.

    Ian Shields