Class MessageCenterCSController

java.lang.Object
de.hybris.platform.messagecentercsocc.controllers.messagecenter.MessageCenterCSController

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

    • MessageCenterCSController

      public MessageCenterCSController()
  • Method Details

    • 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) String status)
    • pickConversation

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

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

      @Deprecated(since="2105", forRemoval=true) @ResponseStatus(BAD_REQUEST) @ResponseBody public ErrorListWsDTO handleExceptions(MessageCenterCSException e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      (deprecated since 2105, in order to avoid leaking of exception messages by configuring exceptions)
    • sendMessage

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

      protected ConversationListWsDTO mapConversationList(List<ConversationData> conversations)
    • getMessagesForConversation

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

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