Ejemplo n.º 1
0
 /** {@inheritDoc} */
 public void deleteRole(String roleName) {
   try {
     m_groupManager.deleteRole(roleName);
   } catch (Throwable e) {
     throw new WebRolesException("Error deleting role " + roleName + ". " + e.getMessage(), e);
   }
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 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);
   }
 }
Ejemplo n.º 4
0
 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);
   }
 }
Ejemplo n.º 5
0
 private Role getBackingRole(String roleName) {
   return m_groupManager.getRole(roleName);
 }