List principalList = GroupControllerProxy.getController().getInfoGluePrincipals(groupName);
Iterator principalListIterator = principalList.iterator();
while(principalListIterator.hasNext())
{
InfoGluePrincipal principal = (InfoGluePrincipal)principalListIterator.next();
InfoGluePrincipalBean bean = new InfoGluePrincipalBean();
bean.setName(principal.getName());
bean.setDisplayName(principal.getDisplayName());
bean.setEmail(principal.getEmail());
bean.setFirstName(principal.getFirstName());
bean.setLastName(principal.getLastName());
bean.setAdministrator(false);
bean.setMetaInformation(principal.getMetaInformation());
List groups = new ArrayList();
Iterator groupsListIterator = principal.getGroups().iterator();
while(groupsListIterator.hasNext())
{
InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
groupBean.setName(group.getName());
groupBean.setDisplayName(group.getDisplayName());
groupBean.setDescription(group.getDescription());
groups.add(groupBean);
}
bean.setGroups(groups);
List roles = new ArrayList();
Iterator rolesListIterator = principal.getRoles().iterator();
while(rolesListIterator.hasNext())
{
InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
roleBean.setName(role.getName());