Package lumis.doui.source.event
Class SourcePostUpdateDataEvent
- java.lang.Object
-
- lumis.portal.event.AbstractPortalEvent
-
- lumis.portal.event.AbstractTransactionalPortalEvent
-
- lumis.doui.source.event.SourceUpdateDataEvent
-
- lumis.doui.source.event.SourcePostUpdateDataEvent
-
- All Implemented Interfaces:
IPortalEvent
@StableMinor(version="16.0", sinceVersion="10.4") public class SourcePostUpdateDataEvent extends SourceUpdateDataEvent
Event raised bySource
after data is updated.- Since:
- 10.4.0
- Version:
- $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
-
-
Constructor Summary
Constructors Constructor Description SourcePostUpdateDataEvent(Source<?> source, IParameters parameters, java.lang.String originalItemId, ISourceUpdateDataResult sourceUpdateDataResult)
Creates a new event for after update of source data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISourceUpdateDataResult
getSourceUpdateDataResult()
Returns the result of the source's update data operation.java.util.List<ISourceData>
getUpdatedData()
Returns the updated data.-
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
-
SourcePostUpdateDataEvent
public SourcePostUpdateDataEvent(Source<?> source, IParameters parameters, java.lang.String originalItemId, ISourceUpdateDataResult sourceUpdateDataResult)
Creates a new event for after update of source data.- Parameters:
source
- the source.parameters
- the data provided to the update operation as parameters.originalItemId
- the item identifier of the data that was updated.sourceUpdateDataResult
- the result of the update operation.- Since:
- 10.4.0
-
-
Method Detail
-
getSourceUpdateDataResult
public ISourceUpdateDataResult getSourceUpdateDataResult()
Returns the result of the source's update data operation.- Returns:
- the result of the update data operation.
- Since:
- 10.4.0
-
getUpdatedData
public java.util.List<ISourceData> getUpdatedData()
Returns the updated data.This method may require reading the updated 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...)
for the item identifier obtained withgetSourceUpdateDataResult()
.getItemId()
. 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
-
-