@RolesAllowed(value="users") public class GamificationRestEndpoint extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
GamificationRestEndpoint.GamificationPoints |
| Constructor and Description |
|---|
GamificationRestEndpoint(GamificationService gamificationService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
DomainService domainService,
RuleService ruleService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAllEvents()
Return all events
|
javax.ws.rs.core.Response |
getAllPointsByUserId(String userId,
String period)
Return all earned points by a user
|
javax.ws.rs.core.Response |
getAllPointsByUserIdByDate(String userId,
String startDateEntry,
String endDateEntry)
Return earned points by a user during a given period
|
javax.ws.rs.core.Response |
getDomains()
Return enabled domains
|
javax.ws.rs.core.Response |
getLeaderboardByDate(javax.ws.rs.core.UriInfo uriInfo,
String earnerType,
String startDateEntry,
String endDateEntry) |
public GamificationRestEndpoint(GamificationService gamificationService, org.exoplatform.social.core.manager.IdentityManager identityManager, DomainService domainService, RuleService ruleService)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getAllPointsByUserId(String userId, String period)
userId - : user social idperiod - : Period of time@RolesAllowed(value="users") public javax.ws.rs.core.Response getAllPointsByUserIdByDate(String userId, String startDateEntry, String endDateEntry)
userId - : user social idstartDateEntry - : Date from when gamification api filter earned pointsendDateEntry - : Date until when gamification api filter eearned points@RolesAllowed(value="users") public javax.ws.rs.core.Response getLeaderboardByDate(@Context javax.ws.rs.core.UriInfo uriInfo, String earnerType, String startDateEntry, String endDateEntry)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getDomains()
@RolesAllowed(value="users") public javax.ws.rs.core.Response getAllEvents()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.