|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.search.CmsSearchDocumentType
public class CmsSearchDocumentType
A document type specifies which document factory class is used to pull the content of an OpenCms document into a Lucene index document.
The appropriate document factory class gets triggerd while the search index is built for OpenCms documents matching the specified resource type and/or mimetype combination in a document factory class instance.
| Constructor Summary | |
|---|---|
CmsSearchDocumentType()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addMimeType(String mimeType)
Adds a mimetype. |
void |
addResourceType(String resourceType)
Adds the class name of a resource type. |
String |
getClassName()
Returns the name of the document factory class. |
List |
getMimeTypes()
Returns the mimetypes to trigger the document factory class. |
String |
getName()
Returns the logical key/name of this document type. |
List |
getResourceTypes()
Returns the list of Cms resource types to trigger the document factory. |
void |
setClassName(String className)
Sets the name of the document factory class. |
void |
setMimeTypes(List mimetypes)
Sets the mimetypes to trigger the document factory class. |
void |
setName(String name)
Sets the logical key/name of this document type. |
void |
setResourceTypes(List resourceTypes)
Sets the list of Cms resource types to trigger the document factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSearchDocumentType()
| Method Detail |
|---|
public String getClassName()
public List getMimeTypes()
public String getName()
public List getResourceTypes()
public void setClassName(String className)
className - the name of the document factory classpublic void setMimeTypes(List mimetypes)
mimetypes - the mimetypes to trigger the document factory classpublic void setName(String name)
name - the logical key/name of this document typepublic void setResourceTypes(List resourceTypes)
resourceTypes - the list of Cms resource types to trigger the document factorypublic void addResourceType(String resourceType)
resourceType - the class name of a resource typepublic void addMimeType(String mimeType)
mimeType - a mimetype
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||