Class SOLRAPIClientFactory


  • public class SOLRAPIClientFactory
    extends java.lang.Object
    This factory encapsulates the creation of a SOLRAPIClient and the management of that resource.
    Author:
    Ahmed Owian
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void close()  
      protected org.alfresco.httpclient.AlfrescoHttpClient getRepoClient​(org.alfresco.encryption.KeyResourceLoader keyResourceLoader)  
      SOLRAPIClient getSOLRAPIClient​(java.util.Properties props, org.alfresco.encryption.KeyResourceLoader keyResourceLoader, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
      Creates the SOLRAPIClient or gets it from a pool
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SOLRAPIClientFactory

        public SOLRAPIClientFactory()
    • Method Detail

      • close

        public static void close()
      • getSOLRAPIClient

        public SOLRAPIClient getSOLRAPIClient​(java.util.Properties props,
                                              org.alfresco.encryption.KeyResourceLoader keyResourceLoader,
                                              org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
                                              org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
        Creates the SOLRAPIClient or gets it from a pool
        Parameters:
        props - solrcore.properties in the /conf directory
        keyResourceLoader - reads encryption key resources
        dictionaryService - represents the Repository Data Dictionary
        namespaceDAO - allows retrieving and creating Namespace definitions
        Returns:
        an instance of SOLRAPIClient
      • getRepoClient

        protected org.alfresco.httpclient.AlfrescoHttpClient getRepoClient​(org.alfresco.encryption.KeyResourceLoader keyResourceLoader)