Class EventPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.gamification.plugin.EventPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Direct Known Subclasses:
ContributionEventPlugin, StreamEventPlugin

public abstract class EventPlugin extends org.exoplatform.container.component.BaseComponentPlugin
A plugin that will be used by EventService to check event by its properties
  • Constructor Details

    • EventPlugin

      public EventPlugin()
  • Method Details

    • getEventType

      public abstract String getEventType()
      Returns:
      event types that plugin handles
    • getTriggers

      public abstract List<String> getTriggers()
      Returns:
      List of available triggers
    • isValidEvent

      public abstract boolean isValidEvent(Map<String,String> eventProperties, String triggerDetails)
      Check if event properties match properties coming from an external trigger