public class ContentIndexer extends DouiIndexer implements IContentIndexer
IDouiIndexer.FieldType, IDouiIndexer.StatusFieldValues
FIELDNAME_CONTENT_ID, FIELDNAME_LAST_MODIFIED_DATE_TIME, SERVICE_INSTANCE_IDS_ATTRIBUTE_NAME
FIELDNAME_INTRODUCTION_IMAGE, FIELDNAME_LANGUAGE, FIELDNAME_LANGUAGE_ALL_VALUE, FIELDNAME_PORTALDATAPATH, FIELDNAME_PRINCIPAL, FIELDNAME_PUBLISH_START_DATE, FIELDNAME_SERVICEINSTANCEID, FIELDNAME_SERVICEINSTANCEID_DEFAULT_VALUE, FIELDNAME_SOURCE_SERVICEINSTANCEID, FIELDNAME_STATUS
Constructor and Description |
---|
ContentIndexer() |
Modifier and Type | Method and Description |
---|---|
DouiIndexConfig |
createDouiIndexConfig(Content content)
Creates a default index configuration for the given content.
|
void |
reindexContent(Content content,
Collection<String> originalServiceInstanceIds,
DouiIndexConfig douiIndexConfig)
Performs the re-indexing of the given content.
|
void |
removeContentFromIndex(Content content,
Collection<String> originalServiceInstanceIds,
DouiIndexConfig douiIndexConfig)
Removes the given content from the search index.
|
addSearchContent, getIndexer, indexServiceInstance, indexServiceInstance, removeSearchContents, removeSearchContents, removeSearchContentsByServiceInstanceId
public void removeContentFromIndex(Content content, Collection<String> originalServiceInstanceIds, DouiIndexConfig douiIndexConfig) throws PortalException
IContentIndexer
removeContentFromIndex
in interface IContentIndexer
content
- the content.originalServiceInstanceIds
- the identifiers of the service instances
whose indices the content will be removed from.douiIndexConfig
- indexing configuration.PortalException
public void reindexContent(Content content, Collection<String> originalServiceInstanceIds, DouiIndexConfig douiIndexConfig) throws PortalException
IContentIndexer
reindexContent
in interface IContentIndexer
content
- the content.originalServiceInstanceIds
- the identifiers of the service instances
whose indices the content will be removed from.douiIndexConfig
- indexing configuration.PortalException
public DouiIndexConfig createDouiIndexConfig(Content content) throws PortalException
IContentIndexer
createDouiIndexConfig
in interface IContentIndexer
content
- the content.PortalException
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.