Class PrivacyTermSource
- 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.privacyterm.doui.PrivacyTermSource
-
- All Implemented Interfaces:
Comparator<ISourceData>
public class PrivacyTermSource extends ContentTableSource
Privacy term source- Since:
- 12.3.0
- Version:
- $Revision: 23745 $ $Date: 2020-04-07 20:09:15 -0300 (Tue, 07 Apr 2020) $
-
-
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 PrivacyTermSource(Node sourceDefinitionNode, ISourceContext sourceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IContentTableSourceAddDataResult
addData(Object data)
Adds a data in the persistence this source represents.protected void
doDeleteDataByItemIds(Collection<String> itemIds)
Deletes the data in the persistence.IContentTableSourceUpdateDataResult
updateData(Object data, ContentTableSource.LockStrategy lockStrategy)
Updates a data in the persistence this source represents.-
Methods inherited from class lumis.content.table.ContentTableSource
createDefaultFilterInstance, createQueryBuilder, createRenderDataChangedEvent, createSourceField, deleteDataByItemIds, deleteDataByItemIds, deleteVersionDataByItemIds, doAddData, doUpdateData, getBigDataPersister, getDefaultBigDataPersister, getDefaultProviderClass, getDefaultSourceSearchContentFillerClassName, getField, getHyperlinkDefaultParameters, getUpdateDataItemId, getWorkflowConfig, isAdministrationInterface, isPublishAllAccessibleContents, isWorkflowSupported, postDeleteDataByItemIds, preDeleteDataByItemIds, scheduleContentAddedEvent, scheduleIndexData, updateData
-
Methods inherited from class lumis.doui.table.TableSource
createDefaultCompositeFilterInstance, createSourceFilter, deleteRelatedData, getFilter, 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
createCustomSourceField, deleteDataByItemIds, getAddInterfaceId, getAdministrationInterfaceId, getDataProvider, getDefinitionNode, getDetailsInterfaceId, getDistinct, getDouiContext, getEditInterfaceId, getField, getFields, getFiltersNode, getId, getIntroductionField, getIntroductionImageField, getKeywordsField, getLoad, getMetaDataSourceId, getParameterClass, getParameterValue, getPrimaryNameField, getPublishStartDateField, getReadData, getSourceContainer, getSourceContext, getTransaction, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
PrivacyTermSource
public PrivacyTermSource(Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
addData
public IContentTableSourceAddDataResult addData(Object data) throws PortalException
Description copied from class:ContentTableSource
Adds a data in the persistence this source represents.The implementation of this method in
Source
does the following:- Calls
ContentTableSource.doAddData(IParameters)
, method to be implemented by sources that supports this operation. Sends the render data changed notification
.- Calls
ContentTableSource.scheduleContentAddedEvent(ContentVersion)
to add a content added event in monitoring framework (in the default implementation, the event will only be added if the source context's transaction is correctly commited).
Differently from
Source
default implementation, for optimization reasons,ContentTableSource
assumes thatContentTableSource.doAddData(IParameters)
will already schedule the index of the data, so this method does not callContentTableSource.scheduleIndexData(Collection)
.Special parameters that may be set on data for
ContentTableSource
:ContentTableSource.TRANSITION_PARAMETER_NAME
: optional parameter that may be set with the identifier of the workflow transition to perform during this add operation.ContentTableSource.ASSIGNED_TO_PARAMETER_NAME
: optional parameter that may be set with the identifier of the principal to be set as workflow's assigned to.- <
language field identifier
>.languageId
: optionalString
parameter specifying the locale to set for the content being added. This parameter is for backwards compatibility, as the locale may also be set using a parameter with name equals to the language field identifier (which acceptsString
andLocale
values). If no locale is specified in any of these parameters, the currentSessionConfig
's locale will be used. - <
language field identifier
>.contentId
: optional parameter that when set with the identifier of aContent
, indicates that theContentLocale
being added is to belong to thatContent
. - <
language field identifier
>.isDefaultLocale
: optional parameter that when set totrue
indicates thecontent's default locale
is to be set to the locale of the data being added. publish to principals
field identifier: optional parameters that may be a string with comma-separated identifiers or aCollection
of identifiers. Default value is everyone group.publish to service instances
field identifier: optional parameters that may be a string with comma-separated identifiers or aCollection
of identifiers. Default value is this source's service instance.
- Overrides:
addData
in classContentTableSource
- Parameters:
data
- the acceptable types of data object depends on the source implementation. The defaultSource
implementation expects an object compatible withIParameters.asParameters(Object)
.- Returns:
- a result object with information about the added data.
- Throws:
PortalException
- Calls
-
doDeleteDataByItemIds
protected void doDeleteDataByItemIds(Collection<String> itemIds) throws PortalException
Description copied from class:ContentTableSource
Deletes the data in the persistence.This method is called by
ContentTableSource.deleteDataByItemIds(Collection, LockStrategy)
.The implementation of this method does the following:
- Calls
ContentTableSource.preDeleteDataByItemIds(Collection)
. - Calls
ContentTableSource.deleteVersionDataByItemIds(Collection)
. - Deletes content metadata.
- Calls
ContentTableSource.postDeleteDataByItemIds(Collection)
.
ContentTableSource
expects this method to automatically schedule the delete of the related indexed data. This is usually automatically triggered by content JPA entities.- Overrides:
doDeleteDataByItemIds
in classContentTableSource
- Parameters:
itemIds
- the item identifiers of data to be deleted.- Throws:
PortalException
- See Also:
ContentTableSource.deleteDataByItemIds(Collection, LockStrategy)
- Calls
-
updateData
public IContentTableSourceUpdateDataResult updateData(Object data, ContentTableSource.LockStrategy lockStrategy) throws PortalException
Description copied from class:ContentTableSource
Updates a data in the persistence this source represents.The implementation of this method in
ContentTableSource
does the following:- Checks and handles the lock state of the content being updated according to the specified
lockStrategy
. - Calls
ContentTableSource.doUpdateData(IParameters)
. Sends the render data changed notification
.
Accepts the same special parameters available in
ContentTableSource.addData(Object)
.- Overrides:
updateData
in classContentTableSource
- Parameters:
data
- the data to be updated. Expects an object compatible withIParameters.asParameters(Object)
.lockStrategy
- how content lock state is to be handled.- Returns:
- a result object with information about the updated data.
- Throws:
ContentLockedException
- if update operation could not be executed because the content is locked by another user.PortalException
- Checks and handles the lock state of the content being updated according to the specified
-
-