Class DummySourceBigDataPersister<S extends Source<?>>
- java.lang.Object
-
- lumis.doui.bigdata.DummySourceBigDataPersister<S>
-
- All Implemented Interfaces:
ISourceBigDataPersister<S>
- Direct Known Subclasses:
DummyContentTableSourceBigDataPersister
@StableMinor(version="16.0", sinceVersion="8.1") public class DummySourceBigDataPersister<S extends Source<?>> extends java.lang.Object implements ISourceBigDataPersister<S>
AISourceBigDataPersister
implementation that never persist anything.- Since:
- 8.1.0
- Version:
- $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
-
-
Constructor Summary
Constructors Constructor Description DummySourceBigDataPersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContextDocuments(java.lang.String sourceId, java.lang.String contextId)
Adds alldocuments
corresponding to the given source and context to the portal big data repository.void
addDocuments(S source, java.util.Collection<? extends ISourceData> data)
Addsdocuments
to the portal big data repository for the given source data entries.void
addDocuments(S source, ISourceData... data)
Addsdocuments
to the portal big data repository for the given source data entries.void
deleteBigData(S source)
Deletes all structure stored in the portal big data repository relative to a source.void
deleteContextDocuments(java.lang.String sourceId, java.lang.String contextId)
Deletesdocuments
from the portal big data repository for the specified source in a context.void
deleteDocuments(S source, java.lang.String... itemIds)
Deletesdocuments
from the portal big data repository that corresponds to the data with the given primary key values.void
deleteDocuments(S source, java.util.Collection<java.lang.String> itemIds)
Deletesdocuments
from the portal big data repository that corresponds to the data with the given primary key values.void
initBigData(S source)
Initializes the big data repository with elements specifics to a source.void
updateBigData(S source)
Updates the big data repository according to a source.
-
-
-
Method Detail
-
initBigData
public void initBigData(S source)
Description copied from interface:ISourceBigDataPersister
Initializes the big data repository with elements specifics to a source.This method is called at some moment between the service registration and its use, or when the source big data will be recreated (after
ISourceBigDataPersister.deleteBigData(S)
is called to delete anything related to the source).This method will usually create the
document types
thatISourceBigDataPersister.addDocuments(S, lumis.doui.source.ISourceData...)
for the source will use.- Specified by:
initBigData
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
source
- the source.
-
updateBigData
public void updateBigData(S source)
Description copied from interface:ISourceBigDataPersister
Updates the big data repository according to a source.This method is called at some moment between the service registration and its use.
This method will usually update the
document types
for the source.- Specified by:
updateBigData
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
source
- the source.
-
deleteBigData
public void deleteBigData(S source)
Description copied from interface:ISourceBigDataPersister
Deletes all structure stored in the portal big data repository relative to a source.This method is called when a source will cease to exist or when recreating the big data for a source.
This method must delete elements created by
ISourceBigDataPersister.initBigData(S)
and documents added byISourceBigDataPersister.addDocuments(S, lumis.doui.source.ISourceData...)
.This method will usually delete the
document types
created inISourceBigDataPersister.initBigData(S)
and used byISourceBigDataPersister.addDocuments(S, lumis.doui.source.ISourceData...)
, which will remove related documents in cascade.- Specified by:
deleteBigData
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
source
- the source.
-
addContextDocuments
public void addContextDocuments(java.lang.String sourceId, java.lang.String contextId)
Description copied from interface:ISourceBigDataPersister
Adds alldocuments
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.
- Specified by:
addContextDocuments
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
sourceId
- the source identifier.contextId
- the context identifier. Usually a service or service instance identifier.
-
addDocuments
public void addDocuments(S source, ISourceData... data)
Description copied from interface:ISourceBigDataPersister
Addsdocuments
to the portal big data repository for the given source data entries.- Specified by:
addDocuments
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
source
- the source.data
- the source's data to be used to generate the documents.
-
addDocuments
public void addDocuments(S source, java.util.Collection<? extends ISourceData> data)
Description copied from interface:ISourceBigDataPersister
Addsdocuments
to the portal big data repository for the given source data entries.- Specified by:
addDocuments
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
source
- the source.data
- the source's data to be used to generate the documents.
-
deleteContextDocuments
public void deleteContextDocuments(java.lang.String sourceId, java.lang.String contextId)
Description copied from interface:ISourceBigDataPersister
Deletesdocuments
from the portal big data repository for the specified source in a context.- Specified by:
deleteContextDocuments
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
sourceId
- the source identifier.contextId
- the context identifier.
-
deleteDocuments
public void deleteDocuments(S source, java.lang.String... itemIds)
Description copied from interface:ISourceBigDataPersister
Deletesdocuments
from the portal big data repository that corresponds to the data with the given primary key values.- Specified by:
deleteDocuments
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
source
- the source.itemIds
- the source data primary key values.
-
deleteDocuments
public void deleteDocuments(S source, java.util.Collection<java.lang.String> itemIds)
Description copied from interface:ISourceBigDataPersister
Deletesdocuments
from the portal big data repository that corresponds to the data with the given primary key values.- Specified by:
deleteDocuments
in interfaceISourceBigDataPersister<S extends Source<?>>
- Parameters:
source
- the source.itemIds
- the source data primary key values.
-
-