public class CmsDocumentContainerPage extends A_CmsVfsDocument
CmsResourceTypeContainerPage
.m_name
构造器和说明 |
---|
CmsDocumentContainerPage(java.lang.String name)
Creates a new instance of this lucene document factory.
|
限定符和类型 | 方法和说明 |
---|---|
I_CmsSearchDocument |
createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Generates a new lucene document instance from contents of the given resource for the provided index.
|
I_CmsExtractionResult |
extractContent(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Returns the raw text content of a VFS resource of type
CmsResourceTypeContainerPage . |
boolean |
isLocaleDependend()
Returns
true if this document factory is locale depended. |
boolean |
isUsingCache()
Returns
true if result caching is supported for this factory. |
getCache, getDocumentKey, getDocumentKeys, getName, logContentExtraction, readFile, setCache
public CmsDocumentContainerPage(java.lang.String name)
name
- name of the document typepublic I_CmsSearchDocument createDocument(CmsObject cms, CmsResource resource, CmsSearchIndex index) throws CmsException
For container pages, we must not cache based on the container page content age, since the content of the included elements may change any time.
createDocument
在接口中 I_CmsDocumentFactory
createDocument
在类中 A_CmsVfsDocument
cms
- the OpenCms user context used to access the OpenCms VFSresource
- the search index resource to create the Lucene document fromindex
- the search index to create the Document forCmsException
- if something goes wrongI_CmsDocumentFactory.createDocument(CmsObject, CmsResource, CmsSearchIndex)
public I_CmsExtractionResult extractContent(CmsObject cms, CmsResource resource, CmsSearchIndex index) throws CmsException
CmsResourceTypeContainerPage
.cms
- the cms objectresource
- the resource to extract the content fromindex
- the index to extract the content forCmsException
- if something goes wrongI_CmsSearchExtractor.extractContent(CmsObject, CmsResource, CmsSearchIndex)
public boolean isLocaleDependend()
I_CmsDocumentFactory
true
if this document factory is locale depended.true
if this document factory is locale dependedI_CmsDocumentFactory.isLocaleDependend()
public boolean isUsingCache()
I_CmsDocumentFactory
true
if result caching is supported for this factory.true
if result caching is supported for this factoryI_CmsDocumentFactory.isUsingCache()