@Controller public class VotesControllerController<T> extends AbstractCommentsController
notificationService, socialServices, ugcService
Constructor and Description |
---|
VotesControllerController() |
Modifier and Type | Method and Description |
---|---|
T |
voteDown(String id) |
T |
voteNeutral(String id) |
T |
voteUp(String id) |
context, getContentType, getCurrentProfile, parseAttributes, userId
@RequestMapping(value="{id}/votes/up", method=POST) @ResponseBody public T voteUp(@PathVariable(value="id") String id) throws SocialException
SocialException
@RequestMapping(value="{id}/votes/down", method=POST) @ResponseBody public T voteDown(@PathVariable(value="id") String id) throws SocialException
SocialException
@RequestMapping(value="{id}/votes/neutral", method=POST) @ResponseBody public T voteNeutral(@PathVariable(value="id") String id) throws SocialException
SocialException
Copyright © 2018 CrafterCMS. All rights reserved.