Package org.opencms.search
Class CmsSearchIndexUpdateData
java.lang.Object
org.opencms.search.CmsSearchIndexUpdateData
A collection of resources for the incremental update of a search index.
- Since:
- 6.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionCmsSearchIndexUpdateData(CmsSearchIndexSource source, I_CmsIndexer indexer) Creates a new instance of an update collection. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceToDelete(CmsPublishedResource resource) Adds the given resource to the resources that must be deleted from the search index.voidaddResourceToUpdate(CmsPublishedResource resource) Adds the given resource to the resources that must be updated in the search index.Returns the indexer of this update collection.Returns the list ofinstances that must be deleted.CmsPublishedResourceReturns the list ofinstances that must be updated.CmsPublishedResourceReturns the search index source of this update collection.booleanReturnstrueif this collections contains resources to delete.booleanReturnstrueif this collections contains resources to update.booleanisEmpty()Returnstrueif this collections contains no resources to update or delete.
-
Constructor Details
-
CmsSearchIndexUpdateData
Creates a new instance of an update collection.- Parameters:
source- the search index source of this update collectionindexer- the indexer of this update collection
-
-
Method Details
-
addResourceToDelete
Adds the given resource to the resources that must be deleted from the search index.- Parameters:
resource- the resource to add
-
addResourceToUpdate
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 ofinstances that must be deleted.CmsPublishedResource- Returns:
- the list of
instances that must be deletedCmsPublishedResource
-
getResourcesToUpdate
Returns the list ofinstances that must be updated.CmsPublishedResource- Returns:
- the list of
instances that must be updatedCmsPublishedResource
-
getSource
Returns the search index source of this update collection.- Returns:
- the search index source of this update collection
-
hasResourcesToDelete
Returnstrueif this collections contains resources to delete.- Returns:
trueif this collections contains resources to delete
-
hasResourceToUpdate
Returnstrueif this collections contains resources to update.- Returns:
trueif this collections contains resources to update
-
isEmpty
Returnstrueif this collections contains no resources to update or delete.- Returns:
trueif this collections contains no resources to update or delete
-