public class UpdateResourceEvent extends AbstractResourceEvent
Represents the event type for updating a resource object. The resource being
updated is provided by AbstractResourceEvent.getResource().
For an event handler which handles the UpdateResourceEvent, the values of the resource object being saved can be modified directly. A separate call to IResourceService.saveResource() is not required.
TriggerEventType.UPDATE_OBJECT| Constructor and Description |
|---|
UpdateResourceEvent(IResource resource,
TriggerPositionType position,
Context context)
Constructor with the resource to be created.
|
UpdateResourceEvent(TriggerPositionType position,
Context context)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IResource |
getUpdatedResource()
If available, as in during a POST event, it returns the updated resource object that
resulted from this update event.
|
getResourcegetContext, getPosition, getTriggerEventType, hasOuterCreateWithRelationsEventpublic UpdateResourceEvent(TriggerPositionType position, Context context)
position - either pre or postcontext - the Context for the APIpublic UpdateResourceEvent(IResource resource, TriggerPositionType position, Context context)
resource - the folder or OpenPages GRC object that is the focus of the eventposition - either pre or postcontext - the context for the APIpublic IResource getUpdatedResource()
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.