@StableMinor(version="12.3", sinceVersion="10.0") public class ContentTableSourceBigDataPersister extends TabularSourceBigDataPersister<ContentTableSource> implements IContentTableSourceBigDataPersister
ContentTableSource
.Constructor and Description |
---|
ContentTableSourceBigDataPersister() |
Modifier and Type | Method and Description |
---|---|
void |
addContextDocuments(String sourceId,
String contextId)
Adds all
documents corresponding to the given source and context to the portal big data
repository. |
protected void |
addDocumentPublications(StandardDocument standardDocument,
ContentTableSource source,
ISourceData data)
Generates and adds the publications to be used as the value for
StandardDocumentType#FIELD_PUBLICATIONS . |
void |
deleteDocumentsByContentId(ContentTableSource source,
String contentId)
Deletes
documents from the portal big data repository that corresponds to a content. |
protected Collection<? extends ContentVersionDocument> |
generateDocuments(ContentTableSource source,
ISourceData data)
Generates the documents to be stored for a given source data.
|
protected IDocumentTypeBuilder<? extends ContentVersionDocumentType> |
generateDocumentType(ContentTableSource source)
Generates the document type definition for documents relative to the specified source.
The default implementation generates a document type using as identifier the result of TabularSourceBigDataPersister.getDocumentTypeId(S)
and this document type contains a field, with identifier of the result of TabularSourceBigDataPersister.getDocumentTypeFieldId(S) , that
holds the source fields' values. |
protected Collection<String> |
getPublishedPrincipalIds(ContentTableSource source,
ISourceData row)
Returns the published principal identifiers to compose
publications that will be added to
StandardDocumentType#FIELD_PUBLICATIONS . |
addDocumentPublications, addDocuments, addDocuments, addDocuments, deleteBigData, deleteContextDocuments, deleteDocuments, deleteDocuments, generateDocumentPublishedContextURL, getDocumentPopularity, getDocumentTypeFieldId, getDocumentTypeId, getServiceSource, initBigData, updateBigData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDocuments, addDocuments, deleteBigData, deleteContextDocuments, deleteDocuments, deleteDocuments, initBigData, updateBigData
protected IDocumentTypeBuilder<? extends ContentVersionDocumentType> generateDocumentType(ContentTableSource source)
TabularSourceBigDataPersister
TabularSourceBigDataPersister.getDocumentTypeId(S)
and this document type contains a field, with identifier of the result of TabularSourceBigDataPersister.getDocumentTypeFieldId(S)
, that
holds the source fields' values.generateDocumentType
in class TabularSourceBigDataPersister<ContentTableSource>
source
- the source.TabularSourceBigDataPersister.getDocumentTypeId(S)
,
TabularSourceBigDataPersister.getDocumentTypeFieldId(S)
public void deleteDocumentsByContentId(ContentTableSource source, String contentId)
IContentTableSourceBigDataPersister
documents
from the portal big data repository that corresponds to a content.deleteDocumentsByContentId
in interface IContentTableSourceBigDataPersister
source
- the source.contentId
- the content identifier.public void addContextDocuments(String sourceId, String contextId)
ISourceBigDataPersister
documents
corresponding to the given source and context to the portal big data
repository.
This method is usually called when re-indexing a source after its documents have been deleted.
addContextDocuments
in interface ISourceBigDataPersister<ContentTableSource>
addContextDocuments
in class TabularSourceBigDataPersister<ContentTableSource>
sourceId
- the source identifier.contextId
- the context identifier. Usually a service or service instance identifier.protected Collection<? extends ContentVersionDocument> generateDocuments(ContentTableSource source, ISourceData data)
TabularSourceBigDataPersister
The default implementations of addDocuments
methods call this method to generate the documents to be
added.
generateDocuments
in class TabularSourceBigDataPersister<ContentTableSource>
source
- the source.data
- the source data.#generateDocumentPublications(TabularSource, ISourceData)
protected void addDocumentPublications(StandardDocument standardDocument, ContentTableSource source, ISourceData data)
TabularSourceBigDataPersister
StandardDocumentType#FIELD_PUBLICATIONS
.
This method is called by TabularSourceBigDataPersister.generateDocuments(TabularSource, ISourceData)
.
addDocumentPublications
in class TabularSourceBigDataPersister<ContentTableSource>
standardDocument
- the document to add the publications.source
- the source the document is being generated for.data
- the source data the document is being generated for.protected Collection<String> getPublishedPrincipalIds(ContentTableSource source, ISourceData row)
TabularSourceBigDataPersister
publications
that will be added to
StandardDocumentType#FIELD_PUBLICATIONS
.
This method is called by TabularSourceBigDataPersister.addDocumentPublications(StandardDocument, TabularSource, ISourceData, Collection)
.
getPublishedPrincipalIds
in class TabularSourceBigDataPersister<ContentTableSource>
source
- the source that the generated document belongs to.row
- the row being processed.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.