lumis.doui.search
Class DouiIndexer
java.lang.Object
lumis.doui.search.DouiIndexer
- All Implemented Interfaces:
- IDouiIndexer
- Direct Known Subclasses:
- ContentIndexer
public class DouiIndexer
- extends Object
- implements IDouiIndexer
Controls persistence of Doui data in search engine, in order to make the data searchable and updated.
- Since:
- 4.0.0
Method Summary |
void |
addSearchContent(ISourceData tabularDataRow,
Source source,
DouiIndexConfig douiIndexConfig)
|
protected Indexer |
getIndexer(String searchEngineId,
String indexerId)
Returns the portal back-end Indexer that will be used by this
DouiIndexer. |
void |
indexServiceInstance(SessionConfig sessionConfig,
String serviceInstanceId,
boolean localServerOnly,
ITransaction transaction)
Deprecated. |
void |
indexServiceInstance(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Indexes a service instance, recreating all its indices. |
void |
removeSearchContents(ISourceData tabularDataRow,
Source source,
DouiIndexConfig douiIndexConfig)
|
protected void |
removeSearchContents(List<SearchContent> searchContents,
String selectionFieldName,
DouiIndexConfig douiIndexConfig)
|
void |
removeSearchContentsByServiceInstanceId(String serviceInstanceId,
Source source,
DouiIndexConfig douiIndexConfig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DouiIndexer
public DouiIndexer()
addSearchContent
public void addSearchContent(ISourceData tabularDataRow,
Source source,
DouiIndexConfig douiIndexConfig)
throws PortalException
- Specified by:
addSearchContent
in interface IDouiIndexer
- Throws:
PortalException
removeSearchContents
public void removeSearchContents(ISourceData tabularDataRow,
Source source,
DouiIndexConfig douiIndexConfig)
throws PortalException
- Specified by:
removeSearchContents
in interface IDouiIndexer
- Throws:
PortalException
removeSearchContentsByServiceInstanceId
public void removeSearchContentsByServiceInstanceId(String serviceInstanceId,
Source source,
DouiIndexConfig douiIndexConfig)
throws PortalException
- Specified by:
removeSearchContentsByServiceInstanceId
in interface IDouiIndexer
- Throws:
PortalException
removeSearchContents
protected void removeSearchContents(List<SearchContent> searchContents,
String selectionFieldName,
DouiIndexConfig douiIndexConfig)
throws PortalException
- Throws:
PortalException
getIndexer
protected Indexer getIndexer(String searchEngineId,
String indexerId)
throws PortalException
- Returns the portal back-end Indexer that will be used by this
DouiIndexer.
- Parameters:
searchEngineId
- the search engine identifier.indexerId
- the indexer identifier.
- Returns:
- Indexer the Indexer
- Throws:
PortalException
- Since:
- 5.0.0
indexServiceInstance
@Deprecated
public void indexServiceInstance(SessionConfig sessionConfig,
String serviceInstanceId,
boolean localServerOnly,
ITransaction transaction)
throws PortalException
- Deprecated.
- Description copied from interface:
IDouiIndexer
- Indexes a service instance, recreating all its indices.
- Specified by:
indexServiceInstance
in interface IDouiIndexer
- Parameters:
sessionConfig
- the user session information.serviceInstanceId
- the service instance's identifier.localServerOnly
- if true the indexing is not replicated to other
servers in the cluster.transaction
- the transaction for persistence access.
- Throws:
PortalException
indexServiceInstance
public void indexServiceInstance(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
throws PortalException
- Description copied from interface:
IDouiIndexer
- Indexes a service instance, recreating all its indices.
- Specified by:
indexServiceInstance
in interface IDouiIndexer
- Parameters:
sessionConfig
- the user session information.serviceInstanceId
- the service instance's identifier.transaction
- the transaction for persistence access.
- Throws:
PortalException
- Since:
- 4.2.2
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.