/** {@inheritDoc} */ public void deleteRole(String roleName) { try { m_groupManager.deleteRole(roleName); } catch (Throwable e) { throw new WebRolesException("Error deleting role " + roleName + ". " + e.getMessage(), e); } }
/** * getRoles * * @return a {@link java.util.Collection} object. */ public Collection<WebRole> getRoles() { Collection<Role> roles = m_groupManager.getRoles(); List<WebRole> webRoles = new ArrayList<WebRole>(roles.size()); for (Role role : roles) { webRoles.add(getWebRole(role)); } return webRoles; }
private Group getBackingGroup(String groupName) { try { return m_groupManager.getGroup(groupName); } catch (MarshalException e) { throw new WebRolesException("Error marshalling groups.xml config file", e); } catch (ValidationException e) { throw new WebRolesException("Error validating groups.xml config file", e); } catch (IOException e) { throw new WebRolesException("Error reading groups.xml config file", e); } }
private Collection<Group> getBackingGroups() { try { return m_groupManager.getGroups().values(); } catch (MarshalException e) { throw new WebRolesException("Error marshalling groups.xml config file", e); } catch (ValidationException e) { throw new WebRolesException("Error validating groups.xml config file", e); } catch (IOException e) { throw new WebRolesException("Error reading groups.xml config file", e); } }
private Role getBackingRole(String roleName) { return m_groupManager.getRole(roleName); }