Examples of XMLTree


Examples of org.apache.tomcat.util.XMLTree

  Enumeration e = null;

  // Process the associated group memberships
  e = element.getElements(Constants.Element.GROUP_MEMBER).elements();
  while (e.hasMoreElements()) {
      XMLTree gm = (XMLTree) e.nextElement();
      String groupname =
    (String) gm.getAttribute(Constants.Attribute.NAME);
      FileRealmGroup group = getGroup(groupname);
      if (group != null)
    group.addRole(role);
  }

  // Process the associated user memberships
  e = element.getElements(Constants.Element.USER_MEMBER).elements();
  while (e.hasMoreElements()) {
      XMLTree um = (XMLTree) e.nextElement();
      String username =
    (String) um.getAttribute(Constants.Attribute.NAME);
      FileRealmUser user = getUser(username);
      if (user != null)
    user.addRole(role);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.