Class SolrSQLHttpClient

  • All Implemented Interfaces:
    SolrQueryClient, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

    public class SolrSQLHttpClient
    extends AbstractSolrQueryHTTPClient
    implements SolrQueryClient
    HTTP Client that queries Solr using the sql handler.
    Author:
    Michael Suzuki
    • Field Detail

      • DEFAULT_SAVEPOST_BUFFER

        public static final int DEFAULT_SAVEPOST_BUFFER
        See Also:
        Constant Field Values
    • Constructor Detail

      • SolrSQLHttpClient

        public SolrSQLHttpClient()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException
      • init

        public void init()
      • executeQuery

        public org.alfresco.service.cmr.search.ResultSet executeQuery​(org.alfresco.service.cmr.search.SearchParameters searchParameters,
                                                                      java.lang.String language)
        Specified by:
        executeQuery in interface SolrQueryClient
      • postSolrQuery

        protected org.alfresco.service.cmr.search.ResultSet postSolrQuery​(org.apache.commons.httpclient.HttpClient httpClient,
                                                                          java.lang.String url,
                                                                          org.json.JSONObject body,
                                                                          SolrJsonProcessor<?> jsonProcessor)
                                                                   throws java.io.IOException,
                                                                          org.json.JSONException
        Throws:
        java.io.IOException
        org.json.JSONException
      • setStoreMappings

        public void setStoreMappings​(java.util.List<SolrStoreMapping> storeMappings)
      • setRepositoryState

        public void setRepositoryState​(RepositoryState repositoryState)
      • setIncludeGroupsForRoleAdmin

        public void setIncludeGroupsForRoleAdmin​(boolean includeGroupsForRoleAdmin)
        Parameters:
        includeGroupsForRoleAdmin - the includeGroupsForRoleAdmin to set
      • setAnyDenyDenies

        public void setAnyDenyDenies​(boolean anyDenyDenies)
        When set, a single DENIED ACL entry for any authority will result in access being denied as a whole. See system property security.anyDenyDenies
        Parameters:
        anyDenyDenies - boolean
      • setMappingLookup

        public void setMappingLookup​(java.util.HashMap<org.alfresco.service.cmr.repository.StoreRef,​SolrStoreMappingWrapper> mappingLookup)
      • setPermissionService

        public void setPermissionService​(org.alfresco.service.cmr.security.PermissionService permissionService)
      • setUseDynamicShardRegistration

        public void setUseDynamicShardRegistration​(boolean useDynamicShardRegistration)
      • setShardRegistry

        public void setShardRegistry​(ShardRegistry shardRegistry)
      • isIncludeGroupsForRoleAdmin

        public boolean isIncludeGroupsForRoleAdmin()
      • isAnyDenyDenies

        public boolean isAnyDenyDenies()
      • isUseDynamicShardRegistration

        public boolean isUseDynamicShardRegistration()
      • getTenantService

        public org.alfresco.repo.tenant.TenantService getTenantService()
      • getPermissionService

        public org.alfresco.service.cmr.security.PermissionService getPermissionService()
      • executeStatsQuery

        public org.alfresco.service.cmr.search.StatsResultSet executeStatsQuery​(org.alfresco.service.cmr.search.StatsParameters searchParameters)
        Specified by:
        executeStatsQuery in interface SolrQueryClient
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)