public abstract class RewardPlugin
extends org.exoplatform.container.component.BaseComponentPlugin
| Constructor and Description |
|---|
RewardPlugin() |
| Modifier and Type | Method and Description |
|---|---|
abstract Map<Long,Double> |
getEarnedPoints(Set<Long> identityIds,
long startDateInSeconds,
long endDateInSeconds)
Retrieves earned points for identities in a selected period of time
|
String |
getPluginId()
get reward plugin unique identifier
|
boolean |
isEnabled()
Checks is the plugin is enabled
|
public String getPluginId()
public boolean isEnabled()
public abstract Map<Long,Double> getEarnedPoints(Set<Long> identityIds, long startDateInSeconds, long endDateInSeconds)
identityIds - identity ids of wallets to consider in computationstartDateInSeconds - start timestamp in seconds of reward periodendDateInSeconds - end timestamp in seconds of reward periodMap of identity ID with the sum of tokens to send as
rewardCopyright © 2003–2020 eXo Platform SAS. All rights reserved.