Package org.alfresco.solr
Class HandlerOfResources
- java.lang.Object
-
- org.alfresco.solr.HandlerOfResources
-
public class HandlerOfResources extends Object
Methods taken from AlfrescoCoreAdminHandler that deal with I/O resources
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>DISALLOWED_SHARED_UPDATES
-
Constructor Summary
Constructors Constructor Description HandlerOfResources()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanallowedProperties(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 Listdisallowed. static PropertiesextractCustomProperties(org.apache.solr.common.params.SolrParams params)Extracts Custom Properties from SolrParamsstatic booleangetSafeBoolean(org.apache.solr.common.params.SolrParams params, String paramName)Safely gets a boolean from SolrParamsstatic LonggetSafeLong(org.apache.solr.common.params.SolrParams params, String paramName)Safely gets a Long from SolrParamsstatic InputStreamopenResource(String solrHome, String resource)Opens an InputStreamstatic voidupdatePropertiesFile(org.apache.solr.common.params.SolrParams params, File config, List<String> disallowed)Updates a properties file using the SolrParamsstatic voidupdateSharedProperties(org.apache.solr.common.params.SolrParams params, File config, boolean disallow)Updates a properties file using the SolrParams
-
-
-
Method Detail
-
openResource
public static InputStream openResource(String solrHome, String resource)
Opens an InputStream- Parameters:
solrHome-resource-- Returns:
- InputStream
-
updateSharedProperties
public static void updateSharedProperties(org.apache.solr.common.params.SolrParams params, File config, boolean disallow) throws IOExceptionUpdates a properties file using the SolrParams- Parameters:
params-config-- Throws:
IOException
-
updatePropertiesFile
public static void updatePropertiesFile(org.apache.solr.common.params.SolrParams params, File config, List<String> disallowed)Updates a properties file using the SolrParams- Parameters:
params-config-- Throws:
IOException
-
allowedProperties
public 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 Listdisallowed. - Parameters:
toCheck-disallowed-- Returns:
-
extractCustomProperties
public static Properties extractCustomProperties(org.apache.solr.common.params.SolrParams params)
Extracts Custom Properties from SolrParams- Parameters:
params-- Returns:
- Properties
-
getSafeBoolean
public static boolean getSafeBoolean(org.apache.solr.common.params.SolrParams params, String paramName)Safely gets a boolean from SolrParams- Parameters:
params-paramName-- Returns:
- boolean
-
-