Package lumis.doui.source.event
Class SourcePostAddDataEvent
- java.lang.Object
-
- lumis.portal.event.AbstractPortalEvent
-
- lumis.portal.event.AbstractTransactionalPortalEvent
-
- lumis.doui.source.event.SourceAddDataEvent
-
- lumis.doui.source.event.SourcePostAddDataEvent
-
- All Implemented Interfaces:
IPortalEvent
@StableMinor(version="14.0", sinceVersion="10.4") public class SourcePostAddDataEvent extends SourceAddDataEvent
Event raised bySource
after data is added.- Since:
- 10.4.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description SourcePostAddDataEvent(Source<?> source, IParameters parameters, ISourceAddDataResult sourceAddDataResult)
Creates a new event for after add of source data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ISourceData>
getAddedData()
Returns the added data.ISourceAddDataResult
getSourceAddDataResult()
Returns the result of the source's add data operation.-
Methods inherited from class lumis.doui.source.event.SourceAddDataEvent
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
-
SourcePostAddDataEvent
public SourcePostAddDataEvent(Source<?> source, IParameters parameters, ISourceAddDataResult sourceAddDataResult)
Creates a new event for after add of source data.- Parameters:
source
- the source.parameters
- the data provided to the add operation as parameters.sourceAddDataResult
- the result of the add operation.- Since:
- 10.4.0
-
-
Method Detail
-
getSourceAddDataResult
public ISourceAddDataResult getSourceAddDataResult()
Returns the result of the source's add data operation.- Returns:
- the result of the add data operation.
- Since:
- 10.4.0
-
getAddedData
public List<ISourceData> getAddedData()
Returns the added data.This method may require reading the added 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 withgetSourceAddDataResult()
.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
-
-