Hi,
I have created a Role using
IRoleFactory roleFactory = UMFactory.getRoleFactory(); | ||
IRole newRole = roleFactory.newRole(uniqueName); | ||
newRole.save(); | ||
newRole.commit(); |
This is visible on the NW administrator console.
Now i want to add some Actions to this Role.
Using the following.
IPrincipalMaint principalMaint = principalFactory.getMutablePrincipal(newRole.getUniqueID());
principalMaint.setAttribute("com.sap.security.role", "actions", {"SomeAction"}); | ||||
principalMaint.save(); | ||||
principalMaint.commit(); |
This adds the attribute to the Role. But it doesnt come as Action when viewed in the Action TAB on the Role Page of the NW web administrator page.
Is the API used for creating Role different from creating and setting Attributes?
-Dixit