public class PrivacyTermSource extends ContentTableSource
ContentTableSource.LockStrategy
ASSIGNED_TO_PARAMETER_NAME, ASSIGNED_TO_PARAMETER_VALUE_NULL, TRANSITION_PARAMETER_NAME
positionSourceField, primaryKeySourceField, searchableSourceFields, tabularData
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 and Description |
---|
PrivacyTermSource(Node sourceDefinitionNode,
ISourceContext sourceContext) |
Modifier and Type | Method and 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.
|
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
createDefaultCompositeFilterInstance, createSourceFilter, deleteRelatedData, getFilter, getTableName, readData, readData, readData
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
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
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public PrivacyTermSource(Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
PortalException
public IContentTableSourceAddDataResult addData(Object data) throws PortalException
ContentTableSource
The implementation of this method in Source
does the following:
ContentTableSource.doAddData(IParameters)
, method to be implemented by sources that supports this operation.Sends the render data changed
notification
.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 that ContentTableSource.doAddData(IParameters)
will already schedule the index of the data, so this method does not call
ContentTableSource.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
: optional
String
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 accepts String
and Locale
values). If no locale is specified in any of these
parameters, the current SessionConfig
's locale will be used.language field identifier
>.contentId
: optional
parameter that when set with the identifier of a Content
, indicates that the ContentLocale
being
added is to belong to that Content
.language field identifier
>.isDefaultLocale
: optional
parameter that when set to true
indicates the content'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 a Collection
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 a Collection
of identifiers.
Default value is this source's service instance.addData
in class ContentTableSource
data
- the acceptable types of data object depends on the source implementation. The default Source
implementation expects an object compatible with IParameters.asParameters(Object)
.PortalException
protected void doDeleteDataByItemIds(Collection<String> itemIds) throws PortalException
ContentTableSource
This method is called by ContentTableSource.deleteDataByItemIds(Collection, LockStrategy)
.
The implementation of this method does the following:
ContentTableSource.preDeleteDataByItemIds(Collection)
.ContentTableSource.deleteVersionDataByItemIds(Collection)
.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.
doDeleteDataByItemIds
in class ContentTableSource
itemIds
- the item identifiers of data to be deleted.PortalException
ContentTableSource.deleteDataByItemIds(Collection, LockStrategy)
public IContentTableSourceUpdateDataResult updateData(Object data, ContentTableSource.LockStrategy lockStrategy) throws PortalException
ContentTableSource
The implementation of this method in ContentTableSource
does the following:
lockStrategy
.ContentTableSource.doUpdateData(IParameters)
.Sends the render data changed
notification
.
Accepts the same special parameters available in ContentTableSource.addData(Object)
.
updateData
in class ContentTableSource
data
- the data to be updated. Expects an object compatible with IParameters.asParameters(Object)
.lockStrategy
- how content lock state is to be handled.ContentLockedException
- if update operation could not be executed because the content is locked by another
user.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.