Package lumis.doui.source.event
Class SourcePreDeleteDataEvent
- java.lang.Object
-
- lumis.portal.event.AbstractPortalEvent
-
- lumis.portal.event.AbstractTransactionalPortalEvent
-
- lumis.doui.source.event.SourceDeleteDataEvent
-
- lumis.doui.source.event.SourcePreDeleteDataEvent
-
- All Implemented Interfaces:
IPortalEvent
@StableMinor(version="15.0", sinceVersion="10.4") public class SourcePreDeleteDataEvent extends SourceDeleteDataEvent
Event raised bySource
before data is deleted.- Since:
- 10.4.0
- Version:
- $Revision: 25304 $ $Date: 2022-10-22 22:51:05 -0300 (Sat, 22 Oct 2022) $
-
-
Constructor Summary
Constructors Constructor Description SourcePreDeleteDataEvent(Source<?> serviceSource, java.util.Collection<java.lang.String> itemIds)
Creates a new event for before delete of source data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ISourceData>
getDeletedData()
Returns the data that will be deleted.-
Methods inherited from class lumis.doui.source.event.SourceDeleteDataEvent
getDeletedItemIds, 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
-
SourcePreDeleteDataEvent
public SourcePreDeleteDataEvent(Source<?> serviceSource, java.util.Collection<java.lang.String> itemIds)
Creates a new event for before delete of source data.- Parameters:
serviceSource
- the source. By definition, must be the source at service level to prevent inconsistency.itemIds
- the item identifiers being deleted.- Since:
- 10.4.0
-
-
Method Detail
-
getDeletedData
public java.util.Collection<ISourceData> getDeletedData()
Returns the data that will be deleted.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:
- a collection of data that will be deleted. For optimizations purpose, the returned collection is reused on multiple calls to this method and the collection and its elements must not be modified to prevent incorrect result on future calls to this method.
- Since:
- 10.4.0
-
-