lumis.doui.search
Class DouiIndexer

Package class diagram package DouiIndexer
java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface lumis.doui.search.common.IDouiIndexer
IDouiIndexer.FieldType, IDouiIndexer.StatusFieldValues
 
Field Summary
 
Fields inherited from interface lumis.doui.search.common.IDouiIndexer
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 Summary
DouiIndexer()
           
 
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
 

Constructor Detail

DouiIndexer

public DouiIndexer()
Method Detail

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.