|
||||||||
| 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(java.lang.String mimeType)
Adds a mimetype. |
void |
addResourceType(java.lang.String resourceType)
Adds the class name of a resource type. |
java.lang.String |
getClassName()
Returns the name of the document factory class. |
java.util.List<java.lang.String> |
getMimeTypes()
Returns the mimetypes to trigger the document factory class. |
java.lang.String |
getName()
Returns the logical key/name of this document type. |
java.util.List<java.lang.String> |
getResourceTypes()
Returns the list of Cms resource types to trigger the document factory. |
void |
setClassName(java.lang.String className)
Sets the name of the document factory class. |
void |
setMimeTypes(java.util.List<java.lang.String> mimetypes)
Sets the mimetypes to trigger the document factory class. |
void |
setName(java.lang.String name)
Sets the logical key/name of this document type. |
void |
setResourceTypes(java.util.List<java.lang.String> 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 void addMimeType(java.lang.String mimeType)
mimeType - a mimetypepublic void addResourceType(java.lang.String resourceType)
resourceType - the class name of a resource typepublic java.lang.String getClassName()
public java.util.List<java.lang.String> getMimeTypes()
public java.lang.String getName()
public java.util.List<java.lang.String> getResourceTypes()
public void setClassName(java.lang.String className)
className - the name of the document factory classpublic void setMimeTypes(java.util.List<java.lang.String> mimetypes)
mimetypes - the mimetypes to trigger the document factory classpublic void setName(java.lang.String name)
name - the logical key/name of this document typepublic void setResourceTypes(java.util.List<java.lang.String> resourceTypes)
resourceTypes - the list of Cms resource types to trigger the document factory
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||