public class HandlerOfResources extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DISALLOWED_SHARED_UPDATES |
| Constructor and Description |
|---|
HandlerOfResources() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allowedProperties(Properties toCheck,
List<String> disallowed)
Checks a list of properties to see if they are allowed
It actually checks if the property starts with any value in the List
|
static Properties |
extractCustomProperties(org.apache.solr.common.params.SolrParams params)
Extracts Custom Properties from SolrParams
|
static boolean |
getSafeBoolean(org.apache.solr.common.params.SolrParams params,
String paramName)
Safely gets a boolean from SolrParams
|
static Long |
getSafeLong(org.apache.solr.common.params.SolrParams params,
String paramName)
Safely gets a Long from SolrParams
|
static InputStream |
openResource(String solrHome,
String resource)
Opens an InputStream
|
static void |
updatePropertiesFile(org.apache.solr.common.params.SolrParams params,
File config,
List<String> disallowed)
Updates a properties file using the SolrParams
|
static void |
updateSharedProperties(org.apache.solr.common.params.SolrParams params,
File config,
boolean disallow)
Updates a properties file using the SolrParams
|
public static InputStream openResource(String solrHome, String resource)
solrHome - resource - public static void updateSharedProperties(org.apache.solr.common.params.SolrParams params,
File config,
boolean disallow)
throws IOException
params - config - IOExceptionpublic static void updatePropertiesFile(org.apache.solr.common.params.SolrParams params,
File config,
List<String> disallowed)
params - config - IOExceptionpublic static boolean allowedProperties(Properties toCheck, List<String> disallowed)
toCheck - disallowed - public static Properties extractCustomProperties(org.apache.solr.common.params.SolrParams params)
params - public static boolean getSafeBoolean(org.apache.solr.common.params.SolrParams params,
String paramName)
params - paramName - Copyright © 2005–2020 Alfresco Software. All rights reserved.