private void getAdminRoleDetails(String adminRoleName) {
//initialize admin role service
AdminRoleService adminRoleSvc = Platform.getService(AdminRoleService.class);
//get admin role object
AdminRole adminRole = adminRoleSvc.getAdminRole(adminRoleName);
System.out.println("Admin Role ID :: " + adminRole.getRoleId());
System.out.println("Admin Role Name :: " + adminRole.getRoleName());
System.out.println("Admin Role Display Name :: " + adminRole.getRoleDisplayName());
System.out.println("Admin Role Description :: " + adminRole.getRoleDescription());
}
//initialize admin role service
AdminRoleService adminRoleSvc = Platform.getService(AdminRoleService.class);
//get admin role object
AdminRole adminRole = adminRoleSvc.getAdminRole(adminRoleName);
System.out.println("Admin Role ID :: " + adminRole.getRoleId());
System.out.println("Admin Role Name :: " + adminRole.getRoleName());
System.out.println("Admin Role Display Name :: " + adminRole.getRoleDisplayName());
System.out.println("Admin Role Description :: " + adminRole.getRoleDescription());
}
No comments:
Post a Comment