|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Resource com.splunk.Entity com.splunk.User
public class User
The User
class represents a Splunk user who is 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.Entity |
---|
content, toUpdate |
Fields inherited from class com.splunk.Resource |
---|
actions, path, refreshArgs, service, title |
Method Summary | |
---|---|
java.lang.String |
getDefaultApp()
Returns the user's default app. |
boolean |
getDefaultAppIsUserOverride()
Indicates whether the user's default app was set specifically by the user. |
java.lang.String |
getDefaultAppSourceRole()
Returns the name of the role that the default app was inherited from, or system if it was inherited from the default system setting. |
java.lang.String |
getEmail()
Returns the user's email address. |
java.lang.String |
getPassword()
Returns the user's password. |
java.lang.String |
getRealName()
Returns the full name associated with this user. |
java.lang.String[] |
getRoles()
Returns an array of roles assigned to this user. |
java.lang.String |
getType()
Returns the authentication method responsible for this user. |
java.lang.String |
getTz()
Returns the time zone to use when displaying dates for this user. |
void |
setDefaultApp(java.lang.String defaultApp)
Sets the default app for this user. |
void |
setEmail(java.lang.String email)
Sets the email address for this user. |
void |
setPassword(java.lang.String password)
Sets this user's password. |
void |
setRealName(java.lang.String realname)
Sets this user's real name. |
void |
setRestartBackgroundJobs(boolean restart_background_jobs)
Sets whether to restart background search jobs when Splunk restarts. |
void |
setRoles(java.lang.String role)
Sets this user's role. |
void |
setRoles(java.lang.String[] roles)
Sets the roles for this user. |
void |
setTz(java.lang.String tz)
Sets this user's time zone, which is used for display purposes. |
Methods inherited from class com.splunk.Entity |
---|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public java.lang.String getDefaultApp()
public boolean getDefaultAppIsUserOverride()
true
if the default app was set by the user,
false
if not.public java.lang.String getDefaultAppSourceRole()
system
if it was inherited from the default system setting.
system
if it was inherited from the default system
settings.public java.lang.String getEmail()
public java.lang.String getPassword()
public java.lang.String getRealName()
public java.lang.String[] getRoles()
public java.lang.String getType()
public java.lang.String getTz()
public void setDefaultApp(java.lang.String defaultApp)
defaultApp
- The default app.public void setEmail(java.lang.String email)
email
- The email address.public void setPassword(java.lang.String password)
password
- The password.public void setRealName(java.lang.String realname)
realname
- The real name.public void setRestartBackgroundJobs(boolean restart_background_jobs)
true
, a background search job for this user that has not
completed is restarted when Splunk restarts.
restart_background_jobs
- true
to restart background
search jobs, false
if not.public void setRoles(java.lang.String[] roles)
roles
- An array of roles.public void setRoles(java.lang.String role)
role
- The role.public void setTz(java.lang.String tz)
Note: This attribute is valid in Splunk 4.3 and later.
tz
- The timezone.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |