Class SOLRAPIClientFactory


  • public class SOLRAPIClientFactory
    extends Object
    This factory encapsulates the creation of a SOLRAPIClient and the management of that resource.
    Author:
    Ahmed Owian
    • Constructor Detail

      • SOLRAPIClientFactory

        public SOLRAPIClientFactory()
    • Method Detail

      • close

        public static void close()
      • getSOLRAPIClient

        public SOLRAPIClient getSOLRAPIClient​(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)