Class SynchronizationEvent
- java.lang.Object
-
- org.openbravo.synchronization.event.SynchronizationEvent
-
@ApplicationScoped public class SynchronizationEvent extends Object
The entry point to launch synchronization events
-
-
Constructor Summary
Constructors Constructor Description SynchronizationEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SynchronizationEvent
getInstance()
void
triggerEvent(String event, String recordId)
Triggers a single record synchronization eventvoid
triggerEvent(String event, Map<String,Object> params)
Triggers a multiple record synchronization event
-
-
-
Method Detail
-
getInstance
public static SynchronizationEvent getInstance()
- Returns:
- the SynchronizationEvent instance
-
triggerEvent
public void triggerEvent(String event, String recordId)
Triggers a single record synchronization event- Parameters:
event
- The unique identifier of the synchronization eventrecordId
- the ID that identifies the record related to the event. This is used to generate the event payload.
-
triggerEvent
public void triggerEvent(String event, Map<String,Object> params)
Triggers a multiple record synchronization event- Parameters:
event
- The unique identifier of the multiple record synchronization eventparams
- The map of parameters used to obtain the records that will be related to the event. The keys are the parameter name and the map values are the values for each parameter.
-
-