Package io.meeds.gamification.plugin
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-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringdoublegetPointsRatio(Map<String, String> eventProperties, String triggerDetails) get points ration using event properties and properties coming from an external triggerabstract booleanisValidEvent(Map<String, String> eventProperties, String triggerDetails) Check if event properties match properties coming from an external triggerMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
EventPlugin
public EventPlugin()
-
-
Method Details
-
getEventType
- Returns:
- event types that plugin handles
-
getTriggers
- Returns:
- List of available triggers
-
isValidEvent
Check if event properties match properties coming from an external trigger -
getPointsRatio
get points ration using event properties and properties coming from an external trigger- Returns:
- the get points ratio for realization
-