Package org.apache.solr.handler.admin
Class SecurityConfHandler.SecurityConfig
- java.lang.Object
-
- org.apache.solr.handler.admin.SecurityConfHandler.SecurityConfig
-
- Enclosing class:
- SecurityConfHandler
public static class SecurityConfHandler.SecurityConfig extends Object
Object to hold security.json as nestedMap<String,Object>
and optionally its version. The version property is optional and defaults to -1 if not initialized. The data object defaults to EMPTY_MAP if not set
-
-
Constructor Summary
Constructors Constructor Description SecurityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getData()
int
getVersion()
SecurityConfHandler.SecurityConfig
setData(InputStream securityJsonInputStream)
Set data from input streamSecurityConfHandler.SecurityConfig
setData(Object data)
Sets the data as an Object, but the object needs to be of type MapSecurityConfHandler.SecurityConfig
setData(Map<String,Object> data)
Sets the data as a MapSecurityConfHandler.SecurityConfig
setVersion(int version)
Sets versionString
toString()
-
-
-
Method Detail
-
setData
public SecurityConfHandler.SecurityConfig setData(Map<String,Object> data)
Sets the data as a Map- Parameters:
data
- a Map- Returns:
- SecurityConf object (builder pattern)
-
setData
public SecurityConfHandler.SecurityConfig setData(Object data)
Sets the data as an Object, but the object needs to be of type Map- Parameters:
data
- an Object of type Map<String,Object>- Returns:
- SecurityConf object (builder pattern)
-
setVersion
public SecurityConfHandler.SecurityConfig setVersion(int version)
Sets version- Parameters:
version
- integer for version. Depends on underlying storage- Returns:
- SecurityConf object (builder pattern)
-
getVersion
public int getVersion()
-
setData
public SecurityConfHandler.SecurityConfig setData(InputStream securityJsonInputStream)
Set data from input stream- Parameters:
securityJsonInputStream
- an input stream for security.json- Returns:
- this (builder pattern)
-
-