Class SolrProjectResourceIndexer

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.indexing.solr.SolrProjectResourceIndexer
All Implemented Interfaces:
SolrFieldNames, SolrWorkspacesConstants, LogEnabled, SolrWebFieldNames, Component, Serviceable

Component responsible for indexing a project resource (document)
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • indexProjectResources

      public void indexProjectResources(ResourceCollection collection, Project project, String workspaceName) throws Exception
      Index the children project resources of the given resource collection
      Parameters:
      collection - The collection of project resources
      project - The project whose resources are attached
      workspaceName - The workspace name
      Throws:
      Exception - if an error occurs when processing the indexation of the project resources
    • indexProjectResources

      public void indexProjectResources(ResourceCollection collection, Project project, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception
      Index the children project resources of the given resource collection
      Parameters:
      collection - The collection of project resources
      project - The project whose resources are attached
      solrClient - The solr client to use
      Throws:
      Exception - if an error occurs when processing the indexation of the project resources
    • indexProjectResources

      public void indexProjectResources(ResourceCollection collection, Project project, org.apache.solr.client.solrj.SolrClient solrClient, SimpleProgressionTracker progressionTracker) throws Exception
      Index the children project resources of the given resource collection
      Parameters:
      collection - The collection of project resources
      project - The project whose resources are attached
      solrClient - The solr client to use
      progressionTracker - The progression tracker
      Throws:
      Exception - if an error occurs when processing the indexation of the project resources
    • indexProjectResource

      public void indexProjectResource(Resource resource, Project project, String workspaceName) throws Exception
      Index a project resource
      Parameters:
      resource - The project resource (document)
      project - The project whose the resource is attached
      workspaceName - The workspace name
      Throws:
      Exception - if an error occurs when processing the indexation of the project resource