|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.search.CmsSearchIndexSource
public class CmsSearchIndexSource
A search index source is a description of a list of Cms resources to be indexed.
| 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. |
int |
compareTo(Object o)
Compares the internal name Strings of this instance and the argument casted to this type. |
boolean |
equals(Object obj)
Implemented to be consistent with overridden method . |
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. |
int |
hashCode()
Overriden to be consistents with overridden method . |
boolean |
removeDocumentType(String key)
Removes the key/name of a document type. |
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSearchIndexSource()
| Method Detail |
|---|
public void addConfigurationParameter(String key,
String value)
key - the key/name of the parametervalue - the value of the parameterpublic void addDocumentType(String key)
key - the key/name of a document typepublic void addResourceName(String resourceName)
resourceName - the path of a Cms resource
public int compareTo(Object o)
throws ClassCastException
Note that this method only should return 0 for the statement
a.compareTo(a)
as the name of a indexsource has
to be unique within OpenCms.
compareTo in interface Comparableo - another indexsource.
String.compareTo(java.lang.String) for the
name member of both indexsource instances involved.
ClassCastException - if the given argument is not assignable from this class.Comparable.compareTo(java.lang.Object)public boolean equals(Object obj)
compareTo(Object).
Note that this method only should return true for the statement
a.compareTo(a)
as the name of a indexsource has
to be unique within OpenCms.
equals in class Objectobj - another indexsource.
compareTo(Object) with this argument returns 0, false else.Object.equals(java.lang.Object)public List getDocumentTypes()
public I_CmsIndexer getIndexer()
public String getIndexerClassName()
public String getName()
public String getParam(String key)
key - the parameter key/name
public Map getParams()
public List getResourcesNames()
public int hashCode()
equals(Object).
hashCode in class ObjectObject.hashCode()public boolean removeDocumentType(String key)
key - the key/name of a document type
public void setDocumentTypes(List documentTypes)
documentTypes - the list of Cms resource types to be indexed
public void setIndexerClassName(String indexerClassName)
throws CmsIllegalArgumentException
An Exception is thrown to allow GUI-display of wrong input.
indexerClassName - the class name of the indexer
CmsIllegalArgumentException - if the given String is not a fully qualified classname (within this Java VM)
public void setName(String name)
throws CmsIllegalArgumentException
name - the logical key/name of this search index source
CmsIllegalArgumentException - if argument name is null, an empty or whitespace-only Strings
or already used for another indexsource's name.public void setParams(Map params)
params - the map of optional key/value parameterspublic void setResourcesNames(List resources)
resources - the list of Cms resources (Strings) to be indexed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||