RoleCategoryManager service

Java API

RoleCategoryManager

Tables

  1. ROLE_CATEGORY

Create

Create a new Role Category with the given name and description, return database key as string.

RoleCategoryManager rcm = (RoleCategoryManager)oimClient.getService(RoleCategoryManager.class);
RoleCategory rc = new RoleCategory("this may be any string, OIM doesn't use it anyway");
rc.setAttribute(RoleManagerConstants.ROLE_CATEGORY_NAME, "Test role category");
rc.setAttribute(RoleManagerConstants.ROLE_CATEGORY_DESCRIPTION, "Test role category description");
RoleManagerResult result = rcm.create(rc);
System.out.println(result.getEntityId());

Delete

Delete a Role Category by id=4 (returned by the create() call).

RoleCategoryManager rcm = (RoleCategoryManager)getService(RoleCategoryManager.class);
rcm.delete("4");
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License