public class DeleteResourceEvent extends AbstractEvent
Represents the event type for deleting one or more resource objects. Some operations delete a single resource while others delete a list of resources. The event provides the resource Ids for the resources being deleted and can be retrieved inside the rule or event handlers.
TriggerEventType.DELETE_OBJECTS| Constructor and Description |
|---|
DeleteResourceEvent(Id resourceId,
TriggerPositionType position,
Context context)
Constructor for single resource Id
|
DeleteResourceEvent(java.util.List<Id> resourceIds,
TriggerPositionType position,
Context context)
Constructor for list of resource Ids
|
| Modifier and Type | Method and Description |
|---|---|
Id |
getResourceId()
Returns the single Id for the resource being deleted for this event.
|
java.util.List<Id> |
getResourceIds()
Returns list of resource Ids being deleted.
|
getContext, getPosition, getTriggerEventType, hasOuterCreateWithRelationsEventpublic DeleteResourceEvent(Id resourceId, TriggerPositionType position, Context context)
resourceId - Id of the resource being deletedposition - either pre or postcontext - the Context for the APIpublic DeleteResourceEvent(java.util.List<Id> resourceIds, TriggerPositionType position, Context context)
resourceIds - Ids of the resources being deletedposition - either pre or postcontext - the Context for the APIpublic Id getResourceId()
public java.util.List<Id> getResourceIds()
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2021. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.