Пример #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);
   }
 }
Пример #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;
 }
Пример #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);
   }
 }
Пример #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);
   }
 }
Пример #5
0
 private Role getBackingRole(String roleName) {
   return m_groupManager.getRole(roleName);
 }