Class SolrSQLHttpClient

java.lang.Object
org.alfresco.repo.search.impl.solr.AbstractSolrQueryHTTPClient
org.alfresco.repo.search.impl.solr.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 Details

    • DEFAULT_SAVEPOST_BUFFER

      public static final int DEFAULT_SAVEPOST_BUFFER
      See Also:
  • Constructor Details

    • SolrSQLHttpClient

      public SolrSQLHttpClient()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      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 ResultSet executeQuery(SearchParameters searchParameters, String language)
      Specified by:
      executeQuery in interface SolrQueryClient
    • postSolrQuery

      protected ResultSet postSolrQuery(org.apache.commons.httpclient.HttpClient httpClient, String url, org.json.JSONObject body, SolrJsonProcessor<?> jsonProcessor) throws IOException, org.json.JSONException
      Throws:
      IOException
      org.json.JSONException
    • setStoreMappings

      public void setStoreMappings(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(HashMap<StoreRef,SolrStoreMappingWrapper> mappingLookup)
    • setPermissionService

      public void setPermissionService(PermissionService permissionService)
    • setUseDynamicShardRegistration

      public void setUseDynamicShardRegistration(boolean useDynamicShardRegistration)
    • setShardRegistry

      public void setShardRegistry(ShardRegistry shardRegistry)
    • getRepositoryState

      public RepositoryState getRepositoryState()
    • isIncludeGroupsForRoleAdmin

      public boolean isIncludeGroupsForRoleAdmin()
    • isAnyDenyDenies

      public boolean isAnyDenyDenies()
    • isUseDynamicShardRegistration

      public boolean isUseDynamicShardRegistration()
    • getShardRegistry

      public ShardRegistry getShardRegistry()
    • getTenantService

      public TenantService getTenantService()
    • getPermissionService

      public PermissionService getPermissionService()
    • executeStatsQuery

      public StatsResultSet executeStatsQuery(StatsParameters searchParameters)
      Specified by:
      executeStatsQuery in interface SolrQueryClient
    • isSharded

      public boolean isSharded()
      Specified by:
      isSharded in interface SolrQueryClient
    • setTenantService

      public void setTenantService(TenantService tenantService)