Class ExperimentSource
- java.lang.Object
-
- java.util.Observable
-
- lumis.doui.source.Source<F>
-
- lumis.doui.source.TabularSource<ITableSourceField>
-
- lumis.doui.table.TableSource
-
- lumis.content.table.ContentTableSource
-
- lumis.service.analytics.abtest.doui.ExperimentSource
-
- All Implemented Interfaces:
java.util.Comparator<ISourceData>
public class ExperimentSource extends ContentTableSource
A/B test experiment source.- Since:
- 14.0.0
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class lumis.content.table.ContentTableSource
ContentTableSource.LockStrategy
-
-
Field Summary
-
Fields inherited from class lumis.content.table.ContentTableSource
ASSIGNED_TO_PARAMETER_NAME, ASSIGNED_TO_PARAMETER_VALUE_NULL, TRANSITION_PARAMETER_NAME
-
Fields inherited from class lumis.doui.source.TabularSource
positionSourceField, primaryKeySourceField, searchableSourceFields, tabularData
-
Fields inherited from class lumis.doui.source.Source
addInterfaceId, administrationInterfaceId, connectionId, detailsInterfaceId, editInterfaceId, fields, fieldsMap, id, introductionSourceField, keywordsSourceField, load, metaDataSourceId, parameters, primaryNameSourceField, readData, SOURCE_READ_DATA_ALWAYS, SOURCE_READ_DATA_NEVER, SOURCE_READ_DATA_ON_DEMAND, sourceContext, sourceDefinitionNode
-
-
Constructor Summary
Constructors Constructor Description ExperimentSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext)
This class' constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deleteVersionDataByItemIds(java.util.Collection<java.lang.String> itemIds)
Deletes the data related to the versions of the given item identifiers.protected IContentTableSourceAddDataResult
doAddData(IParameters data)
Adds the data to the persistence.protected IContentTableSourceUpdateDataResult
doUpdateData(IParameters data)
Updates the data in the persistence.-
Methods inherited from class lumis.content.table.ContentTableSource
addData, createDefaultFilterInstance, createQueryBuilder, createRenderDataChangedEvent, createSourceField, deleteDataByItemIds, deleteDataByItemIds, deleteInactiveVersionsByItemIds, doCloneData, doDeleteDataByItemIds, getBigDataPersister, getCloneDataTitleSuffix, getDefaultBigDataPersister, getDefaultProviderClass, getDefaultSourceSearchContentFillerClassName, getField, getHyperlinkDefaultParameters, getUpdateDataItemId, getWorkflowConfig, isAdministrationInterface, isPublishAllAccessibleContents, isWorkflowSupported, postDeleteDataByItemIds, preDeleteDataByItemIds, scheduleContentAddedEvent, scheduleIndexData, updateData, updateData
-
Methods inherited from class lumis.doui.table.TableSource
createDefaultCompositeFilterInstance, createSourceFilter, deleteRelatedData, getFilter, getIsCloneDataSupportedDefaultValue, getTableName, readData, readData, readData
-
Methods inherited from class lumis.doui.source.TabularSource
applyPostLoadFilters, applyPostLoadPagination, compare, compareField, convertDataToDefinedDataTypes, convertDataToDefinedDataTypes, evaluateMaxRows, getData, getDouiHyperlinkItemParameterField, getFieldClass, getFieldId, getFieldIds, getFieldName, getFieldsDefinitionNode, getIndexerEngineId, getIndexerId, getMaxRows, getPositionField, getPrimaryKeyField, getReindexerTabularDataProcessorClassName, getSearchableFields, getSearcherEngineId, getSearcherId, getSortedFieldIds, getSourceSearchContentFillerClassName, getStartAt, hasField, isSearchEnabled, readFieldsIntoFieldsMap, setData, setMaxRows, setStartAt
-
Methods inherited from class lumis.doui.source.Source
cloneData, createCustomSourceField, deleteDataByItemIds, getAddInterfaceId, getAdministrationInterfaceId, getDataForCloning, getDataProvider, getDefinitionNode, getDetailsInterfaceId, getDistinct, getDouiContext, getEditInterfaceId, getField, getFields, getFiltersNode, getId, getIntroductionField, getIntroductionImageField, getKeywordsField, getLoad, getMetaDataSourceId, getParameterClass, getParameterValue, getPrimaryNameField, getPublishStartDateField, getReadData, getSourceContainer, getSourceContext, getTransaction, isDataCloningSupported, isDetails, isRenderDataChangedNotificationEnabled, load, postAddFieldData, postDeleteFieldData, postProcessSource, postUpdateFieldData, preAddFieldData, preDeleteFieldData, preUpdateFieldData, readData, scheduleIndexData, sendPostAddDataNotification, sendPostDeleteDataNotification, sendPostUpdateDataNotification, sendPreAddDataNotification, sendPreDeleteDataNotification, sendPreUpdateDataNotification, sendRenderDataChangedNotification, sendRenderDataChangedNotification, setLoad, setParameterValue, setParameterValue, setReadData, setRenderDataChangedNotificationEnabled, valueChanged
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Constructor Detail
-
ExperimentSource
public ExperimentSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
This class' constructor.- Parameters:
sourceDefinitionNode
- the source definition node.sourceContext
- the source context.- Throws:
PortalException
- Since:
- 14.0.0
-
-
Method Detail
-
doAddData
protected IContentTableSourceAddDataResult doAddData(IParameters data) throws PortalException
Description copied from class:ContentTableSource
Adds the data to the persistence.This method is called by
ContentTableSource.addData(Object)
.ContentTableSource
expects this method to automatically schedule the content indexing, if required. This is usually automatically triggered by content JPA entities.- Overrides:
doAddData
in classContentTableSource
- Parameters:
data
- the data given toSource.addData(Object)
, converted toIParameters
if necessary.- Returns:
- the result object to be returned by
Source.addData(Object)
. - Throws:
PortalException
-
doUpdateData
protected IContentTableSourceUpdateDataResult doUpdateData(IParameters data) throws PortalException
Description copied from class:ContentTableSource
Updates the data in the persistence.This method is called by
ContentTableSource.updateData(Object, LockStrategy)
.If the source has versioning, this method calls
Source.preAddFieldData(SourcePreAddDataEvent)
. Otherwise it callsSource.preUpdateFieldData(SourcePreUpdateDataEvent)
.ContentTableSource
expects this method to automatically schedule the content indexing, if required. This is usually automatically triggered by content JPA entities.- Overrides:
doUpdateData
in classContentTableSource
- Parameters:
data
- the data argument given toContentTableSource.updateData(Object, LockStrategy)
, converted toIParameters
if necessary.- Returns:
- the result object to be returned by
ContentTableSource.updateData(Object, LockStrategy)
. - Throws:
PortalException
-
deleteVersionDataByItemIds
protected void deleteVersionDataByItemIds(java.util.Collection<java.lang.String> itemIds) throws PortalException
Description copied from class:ContentTableSource
Deletes the data related to the versions of the given item identifiers. This method does not delete any content metadata.It is called by
ContentTableSource.doDeleteDataByItemIds(Collection)
and by special operations that deletes versions without deleting the wholeContentLocale
.- Overrides:
deleteVersionDataByItemIds
in classContentTableSource
- Parameters:
itemIds
- the item identifiers.- Throws:
PortalException
-
-