org.opencms.search
Class CmsSearchDocumentType

java.lang.Object
  extended byorg.opencms.search.CmsSearchDocumentType

public class CmsSearchDocumentType
extends java.lang.Object

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.

Since:
6.0.0
Version:
$Revision: 1.12 $
Author:
Thomas Weckert

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 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 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 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 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

CmsSearchDocumentType

public CmsSearchDocumentType()
Default constructor.

Method Detail

addMimeType

public void addMimeType(java.lang.String mimeType)
Adds a mimetype.

Parameters:
mimeType - a mimetype

addResourceType

public void addResourceType(java.lang.String resourceType)
Adds the class name of a resource type.

Parameters:
resourceType - the class name of a resource type

getClassName

public java.lang.String getClassName()
Returns the name of the document factory class.

Returns:
the name of the document factory class

getMimeTypes

public java.util.List getMimeTypes()
Returns the mimetypes to trigger the document factory class.

Returns:
the mimetypes to trigger the document factory class

getName

public java.lang.String getName()
Returns the logical key/name of this document type.

Returns:
the logical key/name of this document type

getResourceTypes

public java.util.List getResourceTypes()
Returns the list of Cms resource types to trigger the document factory.

Returns:
the list of Cms resource types to trigger the document factory

setClassName

public void setClassName(java.lang.String className)
Sets the name of the document factory class.

Parameters:
className - the name of the document factory class

setMimeTypes

public void setMimeTypes(java.util.List mimetypes)
Sets the mimetypes to trigger the document factory class.

Parameters:
mimetypes - the mimetypes to trigger the document factory class

setName

public void setName(java.lang.String name)
Sets the logical key/name of this document type.

Parameters:
name - the logical key/name of this document type

setResourceTypes

public void setResourceTypes(java.util.List resourceTypes)
Sets the list of Cms resource types to trigger the document factory.

Parameters:
resourceTypes - the list of Cms resource types to trigger the document factory