public class PollWebservice extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
PollWebservice() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
viewPoll(String pollId,
javax.ws.rs.core.SecurityContext sc,
javax.ws.rs.core.UriInfo uriInfo)
Views a poll by its Id.
|
javax.ws.rs.core.Response |
votePoll(String pollId,
String indexVote,
javax.ws.rs.core.SecurityContext sc,
javax.ws.rs.core.UriInfo uriInfo)
Votes for a poll by its Id.
|
public static final String APP_TYPE
public javax.ws.rs.core.Response viewPoll(String pollId, @Context javax.ws.rs.core.SecurityContext sc, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
pollId - The poll Id to view.sc - The security context which gets the information of the current user.uriInfo - The URI information which gets the information of the current user.Exceptionpublic javax.ws.rs.core.Response votePoll(String pollId, String indexVote, @Context javax.ws.rs.core.SecurityContext sc, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
pollId - The poll Id to vote.indexVote - The vote indexes selected by the current user.sc - The security context which gets the information of the current user.uriInfo - The URI information which gets the information of the current user.ExceptionCopyright © 2003–2014 eXo Platform SAS. All rights reserved.