Class VotesControllerController<T>
- java.lang.Object
-
- org.craftercms.social.controllers.rest.v3.comments.AbstractCommentsController
-
- org.craftercms.social.controllers.rest.v3.comments.VotesControllerController<T>
-
@Controller public class VotesControllerController<T> extends AbstractCommentsController
-
-
Field Summary
-
Fields inherited from class org.craftercms.social.controllers.rest.v3.comments.AbstractCommentsController
notificationService, socialServices, ugcService
-
-
Constructor Summary
Constructors Constructor Description VotesControllerController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
voteDown(String id)
T
voteNeutral(String id)
T
voteUp(String id)
-
Methods inherited from class org.craftercms.social.controllers.rest.v3.comments.AbstractCommentsController
context, getContentType, getCurrentProfile, parseAttributes, userId
-
-
-
-
Method Detail
-
voteUp
@RequestMapping(value="{id}/votes/up", method=POST) @ResponseBody public T voteUp(@PathVariable("id") String id) throws SocialException
- Throws:
SocialException
-
voteDown
@RequestMapping(value="{id}/votes/down", method=POST) @ResponseBody public T voteDown(@PathVariable("id") String id) throws SocialException
- Throws:
SocialException
-
voteNeutral
@RequestMapping(value="{id}/votes/neutral", method=POST) @ResponseBody public T voteNeutral(@PathVariable("id") String id) throws SocialException
- Throws:
SocialException
-
-