Class SourcePostUpdateDataEvent

    • Constructor Detail

      • SourcePostUpdateDataEvent

        public SourcePostUpdateDataEvent​(Source<?> source,
                                         IParameters parameters,
                                         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

      • getUpdatedData

        public 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 with getSourceUpdateDataResult().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