org.opencms.search
Class CmsSearchIndexSource

java.lang.Object
  extended byorg.opencms.search.CmsSearchIndexSource
All Implemented Interfaces:
Cloneable, Serializable

public class CmsSearchIndexSource
extends Object
implements Serializable, Cloneable

A search index source is a description of a list of Cms resources to be indexed.

Since:
6.0.0
Version:
$Revision: 1.10 $
Author:
Thomas Weckert
See Also:
Serialized Form

Constructor Summary
CmsSearchIndexSource()
          Creates a new CmsSearchIndexSource.
 
Method Summary
 void addConfigurationParameter(String key, String value)
          Adds a parameter.
 void addDocumentType(String key)
          Adds the key/name of a document type.
 void addResourceName(String resourceName)
          Adds the path of a Cms resource.
 List getDocumentTypes()
          Returns the list of Cms resource types to be indexed.
 I_CmsIndexer getIndexer()
          Returns the indexer.
 String getIndexerClassName()
          Returns the class name of the indexer.
 String getName()
          Returns the logical key/name of this search index source.
 String getParam(String key)
          Returns the value for a specified parameter key.
 Map getParams()
          Returns the map of optional key/value parameters.
 List getResourcesNames()
          Returns the list of Cms resources to be indexed.
 void setDocumentTypes(List documentTypes)
          Sets the list of Cms resource types to be indexed.
 void setIndexerClassName(String indexerClassName)
          Sets the class name of the indexer.
 void setName(String name)
          Sets the logical key/name of this search index source.
 void setParams(Map params)
          Sets the map of optional key/value parameters.
 void setResourcesNames(List resources)
          Sets the list of Cms resources to be indexed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsSearchIndexSource

public CmsSearchIndexSource()
Creates a new CmsSearchIndexSource.

Method Detail

addConfigurationParameter

public void addConfigurationParameter(String key,
                                      String value)
Adds a parameter.

Parameters:
key - the key/name of the parameter
value - the value of the parameter

addDocumentType

public void addDocumentType(String key)
Adds the key/name of a document type.

Parameters:
key - the key/name of a document type

addResourceName

public void addResourceName(String resourceName)
Adds the path of a Cms resource.

Parameters:
resourceName - the path of a Cms resource

getDocumentTypes

public List getDocumentTypes()
Returns the list of Cms resource types to be indexed.

Returns:
the list of Cms resource types to be indexed

getIndexer

public I_CmsIndexer getIndexer()
Returns the indexer.

Returns:
the indexer

getIndexerClassName

public String getIndexerClassName()
Returns the class name of the indexer.

Returns:
the class name of the indexer

getName

public String getName()
Returns the logical key/name of this search index source.

Returns:
the logical key/name of this search index source

getParam

public String getParam(String key)
Returns the value for a specified parameter key.

Parameters:
key - the parameter key/name
Returns:
the value for the specified parameter key

getParams

public Map getParams()
Returns the map of optional key/value parameters.

Returns:
the map of optional key/value parameters

getResourcesNames

public List getResourcesNames()
Returns the list of Cms resources to be indexed.

Returns:
the list of Cms resources to be indexed

setDocumentTypes

public void setDocumentTypes(List documentTypes)
Sets the list of Cms resource types to be indexed.

Parameters:
documentTypes - the list of Cms resource types to be indexed

setIndexerClassName

public void setIndexerClassName(String indexerClassName)
Sets the class name of the indexer.

Parameters:
indexerClassName - the class name of the indexer

setName

public void setName(String name)
Sets the logical key/name of this search index source.

Parameters:
name - the logical key/name of this search index source

setParams

public void setParams(Map params)
Sets the map of optional key/value parameters.

Parameters:
params - the map of optional key/value parameters

setResourcesNames

public void setResourcesNames(List resources)
Sets the list of Cms resources to be indexed.

Parameters:
resources - the list of Cms resources to be indexed