Class SolrWorkflowIndexer

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.content.indexing.solr.SolrWorkflowIndexer
All Implemented Interfaces:
SolrFieldNames, LogEnabled, Component, Serviceable

Component indexing the whole workflow of AmetysObjects.
  • Field Details

  • Constructor Details

  • Method Details

    • service

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

      public void indexAmetysObjectWorkflow(WorkflowAwareAmetysObject object, String workspaceName) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Index the workflow history of an Ametys object.
      Parameters:
      object - The ametys object.
      workspaceName - The workspace where to work in
      Throws:
      org.apache.solr.client.solrj.SolrServerException - If a solr error occurs.
      IOException - If an I/O error occurs while indexing.
    • indexAmetysObjectWorkflow

      public void indexAmetysObjectWorkflow(WorkflowAwareAmetysObject object, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Index the workflow history of an Ametys object.
      Parameters:
      object - The ametys object.
      workspaceName - The workspace where to work in
      solrClient - The solr client to use
      Throws:
      org.apache.solr.client.solrj.SolrServerException - If a solr error occurs.
      IOException - If an I/O error occurs while indexing.
    • unindexAmetysObjectWorkflow

      public void unindexAmetysObjectWorkflow(String objectId, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws org.apache.solr.client.solrj.SolrServerException, IOException
      Unindex the workflow history of an Ametys object.
      Parameters:
      objectId - The Ametys object ID.
      workspaceName - The workspace where to work in
      solrClient - The solr client to use
      Throws:
      org.apache.solr.client.solrj.SolrServerException - If a solr error occurs.
      IOException - If an I/O error occurs while indexing.