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, partialPath, path, refreshArgs, service, title
 
Method Summary
 User create(java.lang.String name, java.lang.String password, java.lang.String role)
          Creates a new user entity from a username, password, and role.
 User create(java.lang.String name, java.lang.String password, java.lang.String[] roles)
          Creates a new user entity 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 user entity 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 user entity 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
getActions, 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 user entity 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 entity.
password - The password for the new user entity.
role - The role to assign to the new entity.
Returns:
The new user entity.

create

public User create(java.lang.String name,
                   java.lang.String password,
                   java.lang.String[] roles)
Creates a new user entity 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 entity.
password - The password for the new user entity.
roles - Array of roles to assign to the new user entity.
Returns:
The new user entity.

create

public User create(java.lang.String name,
                   java.lang.String password,
                   java.lang.String role,
                   java.util.Map args)
Creates a new user entity 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 entity.
password - The password for the new user entity.
role - The role to assign to the new user entity.
args - A map of additional arguments for the new user entity.
Returns:
The new user entity.

create

public User create(java.lang.String name,
                   java.lang.String password,
                   java.lang.String[] roles,
                   java.util.Map args)
Creates a new user entity 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 entity.
password - The password for the new user entity.
roles - Array of roles to assign to the new user entity.
args - A map of additional arguments for the new user entity.
Returns:
The new user entity.