public class CmsSearchIndexUpdateData
extends java.lang.Object
构造器和说明 |
---|
CmsSearchIndexUpdateData(CmsSearchIndexSource source,
I_CmsIndexer indexer)
Creates a new instance of an update collection.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addResourceToDelete(CmsPublishedResource resource)
Adds the given resource to the resources that must be deleted from the search index.
|
void |
addResourceToUpdate(CmsPublishedResource resource)
Adds the given resource to the resources that must be updated in the search index.
|
I_CmsIndexer |
getIndexer()
Returns the indexer of this update collection.
|
java.util.List<CmsPublishedResource> |
getResourcesToDelete()
Returns the list of
instances that must be deleted. |
java.util.List<CmsPublishedResource> |
getResourcesToUpdate()
Returns the list of
instances that must be updated. |
CmsSearchIndexSource |
getSource()
Returns the search index source of this update collection.
|
boolean |
hasResourcesToDelete()
Returns
true if this collections contains resources to delete. |
boolean |
hasResourceToUpdate()
Returns
true if this collections contains resources to update. |
boolean |
isEmpty()
Returns
true if this collections contains no resources to update or delete. |
public CmsSearchIndexUpdateData(CmsSearchIndexSource source, I_CmsIndexer indexer)
source
- the search index source of this update collectionindexer
- the indexer of this update collectionpublic void addResourceToDelete(CmsPublishedResource resource)
resource
- the resource to addpublic void addResourceToUpdate(CmsPublishedResource resource)
resource
- the resource to addpublic I_CmsIndexer getIndexer()
public java.util.List<CmsPublishedResource> getResourcesToDelete()
CmsPublishedResource
instances that must be deleted.CmsPublishedResource
instances that must be deletedpublic java.util.List<CmsPublishedResource> getResourcesToUpdate()
CmsPublishedResource
instances that must be updated.CmsPublishedResource
instances that must be updatedpublic CmsSearchIndexSource getSource()
public boolean hasResourcesToDelete()
true
if this collections contains resources to delete.true
if this collections contains resources to deletepublic boolean hasResourceToUpdate()
true
if this collections contains resources to update.true
if this collections contains resources to updatepublic boolean isEmpty()
true
if this collections contains no resources to update or delete.true
if this collections contains no resources to update or delete