Class URLRedirectSource
- java.lang.Object
-
- java.util.Observable
-
- lumis.doui.source.Source<F>
-
- lumis.doui.source.TabularSource<ITableSourceField>
-
- lumis.doui.table.TableSource
-
- lumis.service.urlredirect.URLRedirectSource
-
- All Implemented Interfaces:
java.util.Comparator<ISourceData>
public class URLRedirectSource extends TableSource
Source to perform CRUD inURLRedirect
.- Since:
- 16.0.0
- Version:
- $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
-
-
Field Summary
-
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 URLRedirectSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ISourceAddDataResult
doAddData(IParameters data)
Adds the data to the persistence.protected void
doDeleteDataByItemIds(java.util.Collection<java.lang.String> itemIds)
Deletes the data in the persistence.protected ISourceUpdateDataResult
doUpdateData(IParameters data)
Updates the data in the persistence.IDataProvider<TableSource>
getDataProvider()
Returns the data provider for this source.TabularData
readData(java.lang.String[] primaryKeyValues, ITransaction transaction)
Deprecated.ISourceData
readData(java.lang.String primaryKeyValue, ITransaction transaction)
Deprecated.java.util.List<ISourceData>
readData(java.util.Collection<java.lang.String> itemIds)
Returns the data corresponding to the givenitemIds
.-
Methods inherited from class lumis.doui.table.TableSource
createDefaultCompositeFilterInstance, createDefaultFilterInstance, createQueryBuilder, createSourceField, createSourceFilter, deleteRelatedData, getDefaultBigDataPersister, getDefaultProviderClass, getFilter, getTableName
-
Methods inherited from class lumis.doui.source.TabularSource
applyPostLoadFilters, applyPostLoadPagination, compare, compareField, convertDataToDefinedDataTypes, convertDataToDefinedDataTypes, evaluateMaxRows, getData, getDefaultSourceSearchContentFillerClassName, getDouiHyperlinkItemParameterField, getFieldClass, getFieldId, getFieldIds, getFieldName, getFieldsDefinitionNode, getHyperlinkDefaultParameters, 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
addData, createCustomSourceField, createRenderDataChangedEvent, deleteDataByItemIds, deleteDataByItemIds, getAddInterfaceId, getAdministrationInterfaceId, getBigDataPersister, getDefinitionNode, getDetailsInterfaceId, getDistinct, getDouiContext, getEditInterfaceId, getField, getFields, getFiltersNode, getId, getIntroductionField, getIntroductionImageField, getKeywordsField, getLoad, getMetaDataSourceId, getParameterClass, getParameterValue, getPrimaryNameField, getPublishStartDateField, getReadData, getSourceContainer, getSourceContext, getTransaction, getUpdateDataItemId, isAdministrationInterface, isDetails, isRenderDataChangedNotificationEnabled, load, postAddFieldData, postDeleteFieldData, postProcessSource, postUpdateFieldData, preAddFieldData, preDeleteFieldData, preUpdateFieldData, readData, scheduleIndexData, scheduleIndexData, sendPostAddDataNotification, sendPostDeleteDataNotification, sendPostUpdateDataNotification, sendPreAddDataNotification, sendPreDeleteDataNotification, sendPreUpdateDataNotification, sendRenderDataChangedNotification, sendRenderDataChangedNotification, setLoad, setParameterValue, setParameterValue, setReadData, setRenderDataChangedNotificationEnabled, updateData, valueChanged
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Constructor Detail
-
URLRedirectSource
public URLRedirectSource(org.w3c.dom.Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
getDataProvider
public IDataProvider<TableSource> getDataProvider() throws PortalException
Description copied from class:Source
Returns the data provider for this source.- Overrides:
getDataProvider
in classSource<ITableSourceField>
- Returns:
- Throws:
PortalException
-
readData
@Deprecated public ISourceData readData(java.lang.String primaryKeyValue, ITransaction transaction) throws PortalException
Deprecated.Description copied from class:TableSource
Reads the data with the given primary key value, and returns it.- Overrides:
readData
in classTableSource
- Parameters:
primaryKeyValue
- the primary key value of the desired data.transaction
- the transaction for persistence access.- Returns:
- the data with the given primary key value.
- Throws:
PortalException
-
readData
@Deprecated public TabularData readData(java.lang.String[] primaryKeyValues, ITransaction transaction) throws PortalException
Deprecated.Description copied from class:TableSource
Reads the data with the given primary key values, and returns it.- Overrides:
readData
in classTableSource
- Parameters:
primaryKeyValues
- the primary key values of the desired data.transaction
- the transaction for persistence access.- Returns:
- the data with the given primary key values.
- Throws:
PortalException
-
readData
public java.util.List<ISourceData> readData(java.util.Collection<java.lang.String> itemIds) throws PortalException
Description copied from class:Source
Returns the data corresponding to the givenitemIds
.The implementation of this method in
Source
throws anUnsupportedOperationException
. This method should be overridden by source implementations that provides this functionality.- Overrides:
readData
in classTableSource
- Parameters:
itemIds
- the item identifiers of the data to be returned.- Returns:
- a list of
ISourceData
objects that corresponds to the givenitemIds
. If no data is found, an empty list is returned. - Throws:
PortalException
-
doAddData
protected ISourceAddDataResult doAddData(IParameters data) throws PortalException
Description copied from class:Source
Adds the data to the persistence.This method is called by
Source.addData(Object)
and is to be overridden by sources that supports add operation and uses the defaultaddData
implementation.The implementation of this method in
Source
throwsUnsupportedOperationException
.- Overrides:
doAddData
in classTableSource
- 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
-
doDeleteDataByItemIds
protected void doDeleteDataByItemIds(java.util.Collection<java.lang.String> itemIds) throws PortalException
Description copied from class:Source
Deletes the data in the persistence.This method is called by
Source.deleteDataByItemIds(Collection)
and is to be overridden by sources that supports delete operation and uses the default deleteData implementation.The implementation of this method in
Source
throwsUnsupportedOperationException
.- Overrides:
doDeleteDataByItemIds
in classTableSource
- Parameters:
itemIds
- the item identifiers of data to be deleted.- Throws:
PortalException
-
doUpdateData
protected ISourceUpdateDataResult doUpdateData(IParameters data) throws PortalException
Description copied from class:Source
Updates the data in the persistence.This method is called by
Source.updateData(Object)
and is to be overridden by sources that supports update operation and uses the default updateData implementation.The implementation of this method in
Source
throwsUnsupportedOperationException
.- Overrides:
doUpdateData
in classTableSource
- Parameters:
data
- the data given toSource.updateData(Object)
, converted toIParameters
if necessary.- Returns:
- the result object to be returned by
Source.updateData(Object)
. - Throws:
PortalException
-
-