Class MessageCenterCSController


  • @Controller
    @RequestMapping("/{baseSiteId}/messagecenter/im/conversations")
    public class MessageCenterCSController
    extends java.lang.Object
    Controller for message center.
    • Constructor Detail

      • MessageCenterCSController

        public MessageCenterCSController()
    • Method Detail

      • initBinder

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder binder)
      • getConversationsForCustomer

        @RequestMapping(value="/customerconversations",
                        method=GET)
        @ResponseBody
        @Secured("ROLE_CUSTOMERGROUP")
        public ConversationListWsDTO getConversationsForCustomer()
      • getConversationsForAgent

        @RequestMapping(value="/agentconversations",
                        method=GET)
        @ResponseBody
        @Secured("ROLE_CUSTOMERSUPPORTAGENTGROUP")
        public ConversationListWsDTO getConversationsForAgent​(@RequestParam(value="status",required=true)
                                                              java.lang.String status)
      • pickConversation

        @RequestMapping(value="/{conversationId}/pick",
                        method=PATCH)
        @ResponseBody
        @Secured("ROLE_CUSTOMERSUPPORTAGENTGROUP")
        public ConversationWsDTO pickConversation​(@PathVariable
                                                  java.lang.String conversationId)
      • closeConversation

        @ResponseBody
        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERSUPPORTAGENTGROUP"})
        @RequestMapping(value="/{conversationId}/close",
                        method=PATCH)
        public ConversationWsDTO closeConversation​(@PathVariable
                                                   java.lang.String conversationId)
      • sendMessage

        @RequestMapping(method=POST,
                        consumes="application/json")
        @ResponseBody
        @Secured({"ROLE_CUSTOMERSUPPORTAGENTGROUP","ROLE_CUSTOMERGROUP"})
        public ConversationWsDTO sendMessage​(@RequestBody
                                             ConversationMessageListWsDTO conversationMessageList)
      • getMessagesForConversation

        @ResponseBody
        @RequestMapping(value="/{conversationId}/messages",
                        method=GET)
        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERSUPPORTAGENTGROUP"})
        public ConversationMessageListWsDTO getMessagesForConversation​(@PathVariable
                                                                       java.lang.String conversationId)
      • validate

        protected void validate​(java.lang.Object object,
                                java.lang.String objectName,
                                org.springframework.validation.Validator validator)