Package org.opencms.search.documents
Class A_CmsVfsDocumentWithMetaData
java.lang.Object
org.opencms.search.documents.A_CmsVfsDocument
org.opencms.search.documents.A_CmsVfsDocumentWithMetaData
- All Implemented Interfaces:
I_CmsDocumentFactory,I_CmsSearchExtractor
- Direct Known Subclasses:
CmsDocumentMsOfficeOLE2,CmsDocumentMsOfficeOOXML,CmsDocumentPdf,CmsDocumentRtf
Base class for all document factories that allow to configure if meta data should be extracted or ignored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParameter key for configuring if meta data should be extracted or not.Fields inherited from class org.opencms.search.documents.A_CmsVfsDocument
DEFAULT_ALL_TYPES, DEFAULT_ALL_UNCONFIGURED_TYPES, m_name -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this document factory.A_CmsVfsDocumentWithMetaData(String name, boolean extractMetaDataByDefault) Creates a new instance of this document factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigurationParameter(String key, String value) booleanMethods inherited from class org.opencms.search.documents.A_CmsVfsDocument
createDocument, getCache, getConfiguration, getDocumentKey, getDocumentKeys, getName, initConfiguration, logContentExtraction, readFile, setCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.search.documents.I_CmsDocumentFactory
isLocaleDependend, isOnlyDependentOnContent, isUsingCacheMethods inherited from interface org.opencms.search.documents.I_CmsSearchExtractor
extractContent
-
Field Details
-
PARAM_EXTRACT_METADATA
Parameter key for configuring if meta data should be extracted or not.- See Also:
-
-
Constructor Details
-
A_CmsVfsDocumentWithMetaData
Creates a new instance of this document factory.- Parameters:
name- name of the documenttype
-
A_CmsVfsDocumentWithMetaData
Creates a new instance of this document factory.- Parameters:
name- name of the documenttypeextractMetaDataByDefault- flag, indicating if meta data should be extracted by default.
-
-
Method Details
-
addConfigurationParameter
- Specified by:
addConfigurationParameterin interfaceI_CmsDocumentFactory- Overrides:
addConfigurationParameterin classA_CmsVfsDocument- See Also:
-
isExtractMetaData
- Returns:
- flag, indicating if meta data should be extracted.
-