Class SourcePostAddDataEvent

    • 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

      • getAddedData

        public java.util.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 with getSourceAddDataResult().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