|
|||||||||
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.Role
public class Role
The Role
class represents a Splunk role, which is a collection of
permissions and capabilities. The user's role determines what the user can
see and interact with in Splunk.
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[] |
getCapabilities()
Returns an array of capabilities assigned to this role. |
java.lang.String |
getDefaultApp()
Returns the app to use as the default app for this role. |
java.lang.String[] |
getImportedCapabilities()
Returns an array of capabilities imported for this role. |
java.lang.String[] |
getImportedIndexesAllowed()
Returns an array of indexes that a user with this role has permissions to search. |
java.lang.String[] |
getImportedIndexesDefault()
Returns an array of indexes to search by default when no index is specified for a user with this role. |
int |
getImportedRealTimeSearchJobsQuota()
Returns the maximum number of concurrent real-time search jobs a user with this role is allowed to run. |
java.lang.String[] |
getImportedRoles()
Returns an array of roles to import attributes from, such as capabilities and allowed indexes to search. |
int |
getImportedRtSearchJobsQuota()
Deprecated. Use getImportedRealTimeSearchJobsQuota() instead. |
int |
getImportedSearchDiskQuota()
Returns the maximum disk space that can be used for search jobs by a user with this role. |
java.lang.String |
getImportedSearchFilter()
Returns a search string that restricts the scope of searches run by this role. |
int |
getImportedSearchJobsQuota()
Returns the maximum number of concurrent searches a user with this role is allowed to run. |
int |
getImportedSearchTimeWindow()
Returns the maximum time span of a search, in seconds. |
int |
getRealTimeSearchJobsQuota()
Returns the maximum number of concurrent real-time search jobs a user with this role is allowed to run. |
int |
getRtSearchJobsQuota()
Deprecated. Use getRealTimeSearchJobsQuota() instead. |
int |
getSearchDiskQuota()
Returns the maximum disk space that can be used for search jobs by a user with this role. |
java.lang.String |
getSearchFilter()
Returns a search string that restricts the scope of searches run by this role. |
java.lang.String[] |
getSearchIndexesAllowed()
Returns an array of indexes that a user with this role has permissions to search. |
java.lang.String[] |
getSearchIndexesDefault()
Returns an array of indexes to search by default when no index is specified for a user with this role. |
int |
getSearchJobsQuota()
Returns the maximum number of concurrent searches a user with this role is allowed to run. |
int |
getSearchTimeWin()
Deprecated. Use getSearchTimeWindow() instead. |
int |
getSearchTimeWindow()
Returns the maximum time span of a search that is allowed for users in this role. |
void |
setCapabilities(java.lang.String capability)
Assigns a single capability to this role. |
void |
setCapabilities(java.lang.String[] capabilities)
Assigns an array of capabilities to this role. |
void |
setDefaultApp(java.lang.String defaultApp)
Sets the default app for this role. |
void |
setImportedRoles(java.lang.String importedRole)
Sets a role to import attributes from, such as capabilities and allowed indexes to search. |
void |
setImportedRoles(java.lang.String[] importedRoles)
Sets a list of roles to import attributes from, such as capabilities and allowed indexes to search. |
void |
setRealTimeSearchJobsQuota(int numJobs)
Sets the maximum number of concurrent real-time search jobs a user with this role is allowed to run. |
void |
setSearchDiskQuota(int srchDiskQuota)
Sets the maximum disk space that can be used for search jobs by a user with this role. |
void |
setSearchFilter(java.lang.String srchFilter)
Sets a search string that restricts the scope of searches run by this role. |
void |
setSearchIndexesAllowed(java.lang.String indexAllowed)
Sets the index that a user with this role has permissions to search. |
void |
setSearchIndexesAllowed(java.lang.String[] indexesAllowed)
Sets the indexes that a user with this role has permissions to search. |
void |
setSearchIndexesDefault(java.lang.String srchIndexDefault)
Sets the index to search by default when no index is specified for a user with this role. |
void |
setSearchIndexesDefault(java.lang.String[] srchIndexesDefault)
Sets the indexes to search by default when no index is specified for a user with this role. |
void |
setSearchJobsQuota(int srchJobsQuota)
Sets the maximum number of concurrent searches a user with this role is allowed to run. |
void |
setSearchTimeWindow(int srchTimeWin)
Sets the maximum time span of a search that is allowed for users in this role. |
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[] getCapabilities()
public java.lang.String getDefaultApp()
public java.lang.String[] getImportedCapabilities()
public java.lang.String[] getImportedRoles()
public int getImportedRtSearchJobsQuota()
getImportedRealTimeSearchJobsQuota()
instead.
public int getImportedRealTimeSearchJobsQuota()
public int getImportedSearchDiskQuota()
public java.lang.String getImportedSearchFilter()
OR
.
public java.lang.String[] getImportedIndexesAllowed()
public java.lang.String[] getImportedIndexesDefault()
public int getImportedSearchJobsQuota()
public int getImportedSearchTimeWindow()
public int getRtSearchJobsQuota()
getRealTimeSearchJobsQuota()
instead.
public int getRealTimeSearchJobsQuota()
public int getSearchDiskQuota()
public java.lang.String getSearchFilter()
public java.lang.String[] getSearchIndexesAllowed()
public java.lang.String[] getSearchIndexesDefault()
public int getSearchJobsQuota()
public int getSearchTimeWin()
getSearchTimeWindow()
instead.
public int getSearchTimeWindow()
public void setCapabilities(java.lang.String[] capabilities)
capabilities
- An array of capabilities.public void setCapabilities(java.lang.String capability)
capability
- The capability to set.public void setDefaultApp(java.lang.String defaultApp)
defaultApp
- The default app (the name of the folder that contains
the app).public void setImportedRoles(java.lang.String[] importedRoles)
Default Splunk roles are:
You also can specify additional roles that have been created.
importedRoles
- An array of roles from which to import attributes.public void setImportedRoles(java.lang.String importedRole)
Importing other roles imports all aspects of that role, such as capabilities and allowed indexes to search.
Default Splunk roles are:
You also can specify additional roles that have been created.
importedRole
- A role from which to import attributes.public void setRealTimeSearchJobsQuota(int numJobs)
numJobs
- The maximum number of real-time search jobs.public void setSearchDiskQuota(int srchDiskQuota)
srchDiskQuota
- The maximum disk space to allocate, in megabytes.public void setSearchFilter(java.lang.String srchFilter)
OR
.
srchFilter
- The restrictive search string.public void setSearchIndexesAllowed(java.lang.String[] indexesAllowed)
indexesAllowed
- An array of allowed indexes.public void setSearchIndexesAllowed(java.lang.String indexAllowed)
indexAllowed
- The allowed index.public void setSearchIndexesDefault(java.lang.String[] srchIndexesDefault)
srchIndexesDefault
- An array of default indexes.public void setSearchIndexesDefault(java.lang.String srchIndexDefault)
srchIndexDefault
- The default index.public void setSearchJobsQuota(int srchJobsQuota)
srchJobsQuota
- The maximum number of concurrent jobs.public void setSearchTimeWindow(int srchTimeWin)
srchTimeWin
- The maximum time span of a search, in seconds.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |