@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) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAllPointsByUserId(String userId)
Return all earned points by a user
|
javax.ws.rs.core.Response |
getAllPointsByUserIdAndCurrentMonth(String userId)
Return earned points by a user during the current month
|
javax.ws.rs.core.Response |
getAllPointsByUserIdAndCurrentWeek(String userId)
Return earned points by a user during the current week
|
javax.ws.rs.core.Response |
getAllPointsByUserIdByDate(String userId,
String startDateEntry,
String endDateEntry)
Return earned points by a user during a given period
|
public GamificationRestEndpoint(GamificationService gamificationService, org.exoplatform.social.core.manager.IdentityManager identityManager)
@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 getAllPointsByUserIdAndCurrentMonth(String userId)
userId - : user social id@RolesAllowed(value="users") public javax.ws.rs.core.Response getAllPointsByUserIdAndCurrentWeek(String userId)
userId - : user social idCopyright © 2003–2018 eXo Platform SAS. All rights reserved.