Class ThreadController


  • @Controller
    @RequestMapping("/")
    public class ThreadController
    extends AbstractController
    • Constructor Detail

      • ThreadController

        public ThreadController()
    • Method Detail

      • createThread

        @RequestMapping(value="thread/create",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPThread> createThread​(javax.servlet.http.HttpServletRequest request,
                                                                          @RequestBody
                                                                          JsonRequest<org.acumos.cds.domain.MLPThread> mlpthread,
                                                                          javax.servlet.http.HttpServletResponse response)
      • updateThread

        @RequestMapping(value="thread/update",
                        method=PUT,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPThread> updateThread​(javax.servlet.http.HttpServletRequest request,
                                                                          @RequestBody
                                                                          JsonRequest<org.acumos.cds.domain.MLPThread> mlpthread,
                                                                          javax.servlet.http.HttpServletResponse response)
      • deleteThread

        @RequestMapping(value="thread/delete/{threadId}",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPThread> deleteThread​(javax.servlet.http.HttpServletRequest request,
                                                                          @PathVariable
                                                                          String threadId,
                                                                          javax.servlet.http.HttpServletResponse response)
      • getThread

        @RequestMapping(value="thread/{threadId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPThread> getThread​(javax.servlet.http.HttpServletRequest request,
                                                                       @PathVariable
                                                                       String threadId,
                                                                       javax.servlet.http.HttpServletResponse response)
      • createComment

        @RequestMapping(value="comments/create",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPComment> createComment​(javax.servlet.http.HttpServletRequest request,
                                                                            @RequestBody
                                                                            JsonRequest<org.acumos.cds.domain.MLPComment> mlpComment,
                                                                            javax.servlet.http.HttpServletResponse response)
      • updateComment

        @RequestMapping(value="comments/update",
                        method=PUT,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPComment> updateComment​(javax.servlet.http.HttpServletRequest request,
                                                                            @RequestBody
                                                                            JsonRequest<org.acumos.cds.domain.MLPComment> mlpComment,
                                                                            javax.servlet.http.HttpServletResponse response)
      • deleteComment

        @RequestMapping(value="comments/delete/{threadId}/{commentId}",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPComment> deleteComment​(javax.servlet.http.HttpServletRequest request,
                                                                            @PathVariable
                                                                            String threadId,
                                                                            @PathVariable
                                                                            String commentId,
                                                                            javax.servlet.http.HttpServletResponse response)
      • getComment

        @RequestMapping(value="comments/{threadId}/{commentId}",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<org.acumos.cds.domain.MLPComment> getComment​(javax.servlet.http.HttpServletRequest request,
                                                                         @PathVariable
                                                                         String threadId,
                                                                         @PathVariable
                                                                         String commentId,
                                                                         javax.servlet.http.HttpServletResponse response)
      • getThreads

        @RequestMapping(value="thread",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE> getThreads​(@RequestBody
                                                           JsonRequest<org.acumos.cds.transport.RestPageRequest> restPageReq)
      • getThreadComments

        @RequestMapping(value="thread/{threadId}/comment",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE> getThreadComments​(@PathVariable
                                                                  String threadId,
                                                                  @RequestBody
                                                                  JsonRequest<org.acumos.cds.transport.RestPageRequest> restPageReq)
      • getThreadCount

        @RequestMapping(value="thread/count",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE> getThreadCount()
      • getThreadCommentsCount

        @RequestMapping(value="thread/{threadId}/comments/count",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE> getThreadCommentsCount​(@PathVariable
                                                                       String threadId)
      • getSolutionRevisionThreads

        @RequestMapping(value="thread/{solutionId}/{revisionId}",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE<org.acumos.cds.domain.MLPThread>> getSolutionRevisionThreads​(@PathVariable
                                                                                                            String solutionId,
                                                                                                            @PathVariable
                                                                                                            String revisionId,
                                                                                                            @RequestBody
                                                                                                            JsonRequest<org.acumos.cds.transport.RestPageRequest> restPageReq)
      • getThreadChildComments

        @RequestMapping(value="thread/{threadId}/childcomments",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE<MLComment>> getThreadChildComments​(@PathVariable
                                                                                  String threadId,
                                                                                  @RequestBody
                                                                                  JsonRequest<org.acumos.cds.transport.RestPageRequest> restPageReq,
                                                                                  @RequestHeader(value="clientTimeZone",required=false)
                                                                                  String clientTimeZone)
      • getSolutionRevisionComments

        @RequestMapping(value="thread/{solutionId}/{revisionId}/comments",
                        method=POST,
                        produces="application/json")
        @ResponseBody
        public JsonResponse<RestPageResponseBE<MLComment>> getSolutionRevisionComments​(@PathVariable
                                                                                       String solutionId,
                                                                                       @PathVariable
                                                                                       String revisionId,
                                                                                       @RequestBody
                                                                                       JsonRequest<org.acumos.cds.transport.RestPageRequest> restPageReq,
                                                                                       @RequestHeader(value="UserTimeZone",required=false)
                                                                                       String clientTimeZone)