Show group details
The following sample displays the information about the group.// Fetch the group String groupId = “testgroup”; RgyGroup rgyGroup = null; try { rgyGroup = rgyRegistry.getGroup(“Default”, groupId); }catch (RgyException e) { e.printStackTrace(); System.exit(1); }// Ensure the group was found if (rgyGroup == null) { System.out.println(“Group does not exist”); System.exit(1); }System.out.println(“Group ID: “+rgyGroup.getId()); System.out.println(“LDAP DN: “+rgyGroup.getNativeId()); String description = String) rgyGroup. getOneAttributeValue(RgyAttributes.DESCRIPTION_NAME); if (description == null) { description = “”; }System.out.println(“Description: “+description); System.out.println (“LDAP CN: “+rgyGroup. getOneAttributeValue(RgyAttributes.COMMON_NAME_NAME); String isSecEntity = String) rgyGroup.getOneAttributeValue(RgyAttributes. IS_SEC_ENTITY_NAME); if (isSecEntity.equalsCaseIgnore(RgyAttributes. BOOL_TRUE_VALUE)) { isSecEntity = “Yes”; }else { isSecEntity = “No”; }System.out.println(“Is SecGroup: “+isSecEntity);
Parent topic: Groups