Package lumis.doui.source.event
Class SourcePreUpdateDataEvent
- java.lang.Object
-
- lumis.portal.event.AbstractPortalEvent
-
- lumis.portal.event.AbstractTransactionalPortalEvent
-
- lumis.doui.source.event.SourceUpdateDataEvent
-
- lumis.doui.source.event.SourcePreUpdateDataEvent
-
- All Implemented Interfaces:
IPortalEvent
@StableMinor(version="14.0", sinceVersion="10.4") public class SourcePreUpdateDataEvent extends SourceUpdateDataEvent
Event raised bySource
before data is updated.- Since:
- 10.4.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description SourcePreUpdateDataEvent(Source<?> source, IParameters parameters, String itemId)
Creates a new event for update of source data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ISourceData>
getOriginalData()
Returns the data that corresponds to the item identifier being updated.-
Methods inherited from class lumis.doui.source.event.SourceUpdateDataEvent
getOriginalItemId, getParameters, getSource
-
Methods inherited from class lumis.portal.event.AbstractTransactionalPortalEvent
getSessionConfig, getTransaction
-
Methods inherited from class lumis.portal.event.AbstractPortalEvent
getEventGroups, getOperationType, setEventGroups, setOperationType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.event.IPortalEvent
toString
-
-
-
-
Constructor Detail
-
SourcePreUpdateDataEvent
public SourcePreUpdateDataEvent(Source<?> source, IParameters parameters, String itemId)
Creates a new event for update of source data.- Parameters:
source
- the source.parameters
- the data provided to the update operation as parameters.itemId
- the item identifier of the data being updated.- Since:
- 10.4.0
-
-
Method Detail
-
getOriginalData
public List<ISourceData> getOriginalData()
Returns the data that corresponds to the item identifier being updated.This method may require reading the data from the persistence. So if the required information is available using another method of this event, it may be more efficient to use that other method.
- Returns:
- the data returned by
Source.readData(String...)
forSourceUpdateDataEvent.getOriginalItemId()
. For optimizations purpose, the returned data is reused on multiple calls to this method and it must not be modified to prevent incorrect result on future calls to this method. - Since:
- 10.4.0
-
-