Class 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 Detail

      • ugcService

        @Autowired
        protected UGCService ugcService
      • templateLoader

        @Autowired
        @Qualifier("social.util.email.notificationFreemarkerLoader")
        protected freemarker.cache.TemplateLoader templateLoader
    • Constructor Detail

      • CommentsExtensionController

        public CommentsExtensionController()
    • 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 interface org.springframework.beans.factory.InitializingBean