Class CmsSearchIndexUpdateData

java.lang.Object
org.opencms.search.CmsSearchIndexUpdateData

public class CmsSearchIndexUpdateData extends Object
A collection of resources for the incremental update of a search index.

Since:
6.0.1
  • Constructor Details

  • Method Details

    • addResourceToDelete

      public void addResourceToDelete(CmsPublishedResource resource)
      Adds the given resource to the resources that must be deleted from the search index.

      Parameters:
      resource - the resource to add
    • addResourceToUpdate

      public void addResourceToUpdate(CmsPublishedResource resource)
      Adds the given resource to the resources that must be updated in the search index.

      Parameters:
      resource - the resource to add
    • getIndexer

      Returns the indexer of this update collection.

      Returns:
      the indexer of this update collection
    • getResourcesToDelete

      Returns the list of CmsPublishedResource instances that must be deleted.

      Returns:
      the list of CmsPublishedResource instances that must be deleted
    • getResourcesToUpdate

      Returns the list of CmsPublishedResource instances that must be updated.

      Returns:
      the list of CmsPublishedResource instances that must be updated
    • getSource

      Returns the search index source of this update collection.

      Returns:
      the search index source of this update collection
    • hasResourcesToDelete

      public boolean hasResourcesToDelete()
      Returns true if this collections contains resources to delete.

      Returns:
      true if this collections contains resources to delete
    • hasResourceToUpdate

      public boolean hasResourceToUpdate()
      Returns true if this collections contains resources to update.

      Returns:
      true if this collections contains resources to update
    • isEmpty

      public boolean isEmpty()
      Returns true if this collections contains no resources to update or delete.

      Returns:
      true if this collections contains no resources to update or delete