예제 #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);
 }