Interface I_CmsDocumentFactory

    • Method Detail

      • getCache

        CmsExtractionResultCache getCache()
        Returns the disk based cache used to store the raw extraction results.

        In case null is returned, then result caching is not supported for this factory.

        Returns:
        the disk based cache used to store the raw extraction results
      • getDocumentKeys

        java.util.List<java.lang.String> getDocumentKeys​(java.util.List<java.lang.String> resourceTypes,
                                                         java.util.List<java.lang.String> mimeTypes)
                                                  throws CmsException
        Returns the list of accepted keys for the resource types that can be indexed using this document factory.

        The result List contains String objects. This String is later matched against A_CmsVfsDocument.getDocumentKey(String, String) to find the corrospondig I_CmsDocumentFactory for a resource to index.

        The list of accepted resource types may contain a catch-all entry "*"; in this case, a list for all possible resource types is returned, calculated by a logic depending on the document handler class.

        Parameters:
        resourceTypes - list of accepted resource types
        mimeTypes - list of accepted mime types
        Returns:
        the list of accepted keys for the resource types that can be indexed using this document factory (String objects)
        Throws:
        CmsException - if something goes wrong
      • getName

        java.lang.String getName()
        Returns the name of this document type factory.

        Returns:
        the name of this document type factory
      • isLocaleDependend

        boolean isLocaleDependend()
        Returns true if this document factory is locale depended.

        Returns:
        true if this document factory is locale depended
      • isUsingCache

        boolean isUsingCache()
        Returns true if result caching is supported for this factory.

        Returns:
        true if result caching is supported for this factory
      • setCache

        void setCache​(CmsExtractionResultCache cache)
        Sets the disk based cache used to store the raw extraction results.

        This should only be used for factories where isUsingCache() returns true.

        Parameters:
        cache - the disk based cache used to store the raw extraction results