congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Group.getUsers
Code IndexAdd Tabnine to your IDE (free)

How to use
getUsers
method
in
org.apache.catalina.Group

Best Java code snippets using org.apache.catalina.Group.getUsers (Showing top 9 results out of 315)

origin: codefollower/Tomcat-Research

/**
 * Return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  ArrayList<String> results = new ArrayList<>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname =
        MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException
        ("Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * @return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  List<String> results = new ArrayList<>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException(
          "Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  ArrayList<String> results = new ArrayList<String>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname =
        MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException
        ("Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * @return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  List<String> results = new ArrayList<>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException(
          "Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  ArrayList<String> results = new ArrayList<String>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname =
        MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException
        ("Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  ArrayList<String> results = new ArrayList<String>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname =
        MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException
        ("Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  ArrayList<String> results = new ArrayList<String>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname =
        MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException
        ("Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  ArrayList<String> results = new ArrayList<String>();
  Iterator<User> users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = users.next();
      ObjectName oname =
        MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException
        ("Cannot create object name for user " + user);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
origin: tomcat/catalina

/**
 * Return the MBean Names of all users that are members of this group.
 */
public String[] getUsers() {
  Group group = (Group) this.resource;
  ArrayList results = new ArrayList();
  Iterator users = group.getUsers();
  while (users.hasNext()) {
    User user = null;
    try {
      user = (User) users.next();
      ObjectName oname =
        MBeanUtils.createObjectName(managed.getDomain(), user);
      results.add(oname.toString());
    } catch (MalformedObjectNameException e) {
      IllegalArgumentException iae = new IllegalArgumentException
        ("Cannot create object name for user " + user);
      jdkCompat.chainException(iae, e);
      throw iae;
    }
  }
  return ((String[]) results.toArray(new String[results.size()]));
}
org.apache.catalinaGroupgetUsers

Javadoc

Return the set of Users that are members of this group.

Popular methods of Group

  • getRoles
  • addRole
    Add a new Role to those assigned specifically to this group.
  • getGroupname
  • getUserDatabase
  • isInRole
    Is this group specifically assigned the specified Role?
  • removeRole
    Remove a Role from those assigned to this group.

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now