Class CmsSearchDocumentType

java.lang.Object
org.opencms.search.CmsSearchDocumentType

public class CmsSearchDocumentType extends 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
  • Constructor Details

  • Method Details

    • addMimeType

      public void addMimeType(String mimeType)
      Adds a mimetype.

      Parameters:
      mimeType - a mimetype
    • addResourceType

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

      Parameters:
      resourceType - the class name of a resource type
    • getClassName

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

      Returns:
      the name of the document factory class
    • getMimeTypes

      Returns the mimetypes to trigger the document factory class.

      Returns:
      the mimetypes to trigger the document factory class
    • getName

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

      Returns:
      the logical key/name of this document type
    • 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(String className)
      Sets the name of the document factory class.

      Parameters:
      className - the name of the document factory class
    • setMimeTypes

      public void setMimeTypes(List<String> mimetypes)
      Sets the mimetypes to trigger the document factory class.

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

      public void setName(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(List<String> 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