public interface TallyOperationsService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LIKING
Tally type string for Liking.
|
static java.lang.String |
POLL
Tally type string for Polls.
|
static java.lang.String |
RATING
Tally type string for Rating.
|
static java.lang.String |
VOTING
Tally type string for Voting.
|
Modifier and Type | Method and Description |
---|---|
Resource |
addCurrentUserResponseResponse(Resource tallyResource,
java.lang.String responseValue,
java.lang.String tallyType)
Sets the response for the current user.
|
void |
removeCurrentUserResponse(Resource tallyResource,
java.lang.String tallyType) |
Resource |
setResponse(SlingHttpServletRequest request) |
Resource |
setTallyResponse(Resource tally,
java.lang.String author,
Session session,
java.lang.String tallyResponse,
java.lang.String tallyType,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Allows setting a tally response for an arbitrary user of caller's choice.
|
static final java.lang.String RATING
static final java.lang.String VOTING
static final java.lang.String POLL
static final java.lang.String LIKING
Resource addCurrentUserResponseResponse(Resource tallyResource, java.lang.String responseValue, java.lang.String tallyType) throws OperationException
tallyResource
- the tally resource on which the response is added.responseValue
- the response value to set.OperationException
- when an error occurs.void removeCurrentUserResponse(Resource tallyResource, java.lang.String tallyType) throws OperationException
tallyResource
- the tally resource on which the response is added.OperationException
- when an error occurs.Resource setResponse(SlingHttpServletRequest request) throws OperationException
request
- the request that triggered this operation.OperationException
- if an error occurs.Resource setTallyResponse(Resource tally, java.lang.String author, Session session, java.lang.String tallyResponse, java.lang.String tallyType, java.util.Map<java.lang.String,java.lang.Object> parameters) throws OperationException
tally
- author
- session
- tallyResponse
- tallyType
- parameters
- OperationException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"