@Controller @RequestMapping(value="/api/3/comments/extension") public class CommentsExtensionController extends Object
Modifier and Type | Field and Description |
---|---|
protected NotificationService |
notificationService |
protected SocialServices |
socialServices |
protected freemarker.cache.TemplateLoader |
templateLoader |
protected UGCService |
ugcService |
Constructor and Description |
---|
CommentsExtensionController() |
Modifier and Type | Method and Description |
---|---|
void |
approveComment(String ugcId,
String profileTokenId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
String context) |
void |
init() |
@Autowired protected SocialServices socialServices
@Autowired protected NotificationService notificationService
@Autowired protected UGCService ugcService
@Autowired @Qualifier(value="social.util.email.notificationFreemarkerLoader") protected freemarker.cache.TemplateLoader templateLoader
@RequestMapping(value="approve/{id}/{tokenId}", method=GET) @ResponseBody public void approveComment(@PathVariable(value="id") String ugcId, @PathVariable(value="tokenId") String profileTokenId, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, @RequestParam(required=true,value="context") String context) throws IOException, freemarker.template.TemplateException, SocialException, org.craftercms.profile.api.exceptions.ProfileException
IOException
freemarker.template.TemplateException
SocialException
org.craftercms.profile.api.exceptions.ProfileException
@PostConstruct public void init()
Copyright © 2018 CrafterCMS. All rights reserved.