Package org.alfresco.solr
Class HandlerOfResources
java.lang.Object
org.alfresco.solr.HandlerOfResources
Methods taken from AlfrescoCoreAdminHandler that deal with I/O resources
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Field Details
-
DISALLOWED_SHARED_UPDATES
-
-
Constructor Details
-
HandlerOfResources
public HandlerOfResources()
-
-
Method Details
-
openResource
Opens an InputStream- Parameters:
solrHome-resource-- Returns:
- InputStream
-
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
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
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
-
getSafeLong
Safely gets a Long from SolrParams- Parameters:
params-paramName-- Returns:
- Long
-