Class CommentsExtensionController
- java.lang.Object
-
- org.craftercms.social.controllers.rest.v3.comments.ext.CommentsExtensionController
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Controller @RequestMapping("/api/3/comments/extension") public class CommentsExtensionController extends Object implements org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected NotificationService
notificationService
protected SocialServices
socialServices
protected freemarker.cache.TemplateLoader
templateLoader
protected UGCService
ugcService
-
Constructor Summary
Constructors Constructor Description CommentsExtensionController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
approveComment(String ugcId, String profileTokenId, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, String context)
-
-
-
Field Detail
-
socialServices
@Autowired protected SocialServices socialServices
-
notificationService
@Autowired protected NotificationService notificationService
-
ugcService
@Autowired protected UGCService ugcService
-
templateLoader
@Autowired @Qualifier("social.util.email.notificationFreemarkerLoader") protected freemarker.cache.TemplateLoader templateLoader
-
-
Method Detail
-
approveComment
@RequestMapping(value="approve/{id}/{tokenId}", method=GET) @ResponseBody public void approveComment(@PathVariable("id") String ugcId, @PathVariable("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
- Throws:
IOException
freemarker.template.TemplateException
SocialException
org.craftercms.profile.api.exceptions.ProfileException
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
-