@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 |
getAllDomains()
Return all domains
|
javax.ws.rs.core.Response |
getAllEvents()
Return all events
|
javax.ws.rs.core.Response |
getAllPointsByUserId(String userId)
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 |
getLeaderboardByDate(javax.ws.rs.core.UriInfo uriInfo,
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)
userId - : user social id@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 startDateEntry, String endDateEntry)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getAllDomains()
@RolesAllowed(value="users") public javax.ws.rs.core.Response getAllEvents()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.