com.ibm.openpages.api.trigger.events

Class AbstractEvent

  • java.lang.Object
    • com.ibm.openpages.api.trigger.events.AbstractEvent
    • Constructor Detail

      • AbstractEvent

        public AbstractEvent(TriggerEventType triggerEventType,
                             TriggerPositionType position,
                             Context context)
        Default constructor
        Parameters:
        triggerEventType - one of the trigger event types
        position - either pre or post
        context - the Context for the API
    • Method Detail

      • getTriggerEventType

        public TriggerEventType getTriggerEventType()
        Returns type of the trigger event. Each operation is represented by an event.
        Returns:
        TriggerEventType
      • getContext

        public Context getContext()
        Provides access to the API context object.
        Returns:
        the API Context for the current operation
      • getPosition

        public TriggerPositionType getPosition()
        Returns type of the trigger position.
        Returns:
        TriggerPositionType
      • hasOuterCreateWithRelationsEvent

        public boolean hasOuterCreateWithRelationsEvent()
        Returns whether the event is triggered within the CreateWithRelationsResourceEvent. For the backward compatibility, you would get CreateResourceEvent and also AssociateResourceEvents within the CreateWithRelationsResourceEvent. You can use this API to determine if it is an inner event.
        Returns:
        Since:
        8.2

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.