Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • 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<java.lang.String> 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<java.lang.String> 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<java.lang.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​(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<java.lang.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