com.splunk
Class UserCollection

java.lang.Object
  extended by com.splunk.Resource
      extended by com.splunk.ResourceCollection<T>
          extended by com.splunk.EntityCollection<User>
              extended by com.splunk.UserCollection
All Implemented Interfaces:
java.util.Map<java.lang.String,User>

public class UserCollection
extends EntityCollection<User>

The UserCollection class represents a collection of Splunk users who are registered on the current Splunk server.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class com.splunk.ResourceCollection
itemClass, items
 
Fields inherited from class com.splunk.Resource
actions, path, refreshArgs, service, title
 
Method Summary
 User create(java.lang.String name, java.lang.String password, java.lang.String role)
          Creates a new Splunk user from a username, password, and role.
 User create(java.lang.String name, java.lang.String password, java.lang.String[] roles)
          Creates a new Splunk user from a username, password, and array of roles.
 User create(java.lang.String name, java.lang.String password, java.lang.String[] roles, java.util.Map args)
          Creates a new Splunk user from a username, password, array of roles, and additional arguments.
 User create(java.lang.String name, java.lang.String password, java.lang.String role, java.util.Map args)
          Creates a new Splunk user from a username, password, role, and additional arguments.
 
Methods inherited from class com.splunk.EntityCollection
create, create, remove, remove
 
Methods inherited from class com.splunk.ResourceCollection
clear, containsKey, containsKey, containsValue, createItem, createItem, entrySet, equals, get, get, hashCode, isEmpty, itemKey, itemPath, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize
 
Methods inherited from class com.splunk.Resource
getName, getPath, getService, getTitle, invalidate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public User create(java.lang.String name,
                   java.lang.String password,
                   java.lang.String role)
Creates a new Splunk user from a username, password, and role. Usernames must be unique on the system, and are used by the user to log in to Splunk.

Parameters:
name - The username for the new user.
password - The password for the new user.
role - The role to assign to the new user.
Returns:
The new user.

create

public User create(java.lang.String name,
                   java.lang.String password,
                   java.lang.String[] roles)
Creates a new Splunk user from a username, password, and array of roles. Usernames must be unique on the system, and are used by the user to log in to Splunk.

Parameters:
name - The username for the new user.
password - The password for the new user.
roles - Array of roles to assign to the new user.
Returns:
The new user.

create

public User create(java.lang.String name,
                   java.lang.String password,
                   java.lang.String role,
                   java.util.Map args)
Creates a new Splunk user from a username, password, role, and additional arguments. Usernames must be unique on the system, and are used by the user to log in to Splunk.

Parameters:
name - The username for the new user.
password - The password for the new user.
role - The role to assign to the new user.
args - A map of additional arguments. For a list of available parameters, see User authentication parameters on dev.splunk.com.
Returns:
The new user.

create

public User create(java.lang.String name,
                   java.lang.String password,
                   java.lang.String[] roles,
                   java.util.Map args)
Creates a new Splunk user from a username, password, array of roles, and additional arguments. Usernames must be unique on the system, and are used by the user to log in to Splunk.

Parameters:
name - The username for the new user.
password - The password for the new user.
roles - Array of roles to assign to the new user.
args - A map of additional arguments. For a list of available parameters, see User authentication parameters on dev.splunk.com .
Returns:
The new user.