Class MessageCenterCSController
java.lang.Object
de.hybris.platform.messagecentercsoccaddon.controllers.messagecenter.MessageCenterCSController
@Controller
@RequestMapping("/{baseSiteId}/messagecenter/im/conversations")
public class MessageCenterCSController
extends Object
Controller for message center.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloseConversation(String conversationId) getConversationsForAgent(String status) getMessagesForConversation(String conversationId) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) protected ConversationListWsDTOmapConversationList(List<ConversationData> conversations) pickConversation(String conversationId) sendMessage(ConversationMessageListWsDTO conversationMessageList) protected void
-
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
@ResponseStatus(BAD_REQUEST) @ResponseBody @ExceptionHandler(MessageCenterCSException.class) public ErrorListWsDTO handleExceptions(MessageCenterCSException e) -
sendMessage
@RequestMapping(method=POST, consumes="application/json") @ResponseBody @Secured({"ROLE_CUSTOMERSUPPORTAGENTGROUP","ROLE_CUSTOMERGROUP"}) public ConversationWsDTO sendMessage(@RequestBody ConversationMessageListWsDTO conversationMessageList) -
mapConversationList
-
getMessagesForConversation
@ResponseBody @RequestMapping(value="/{conversationId}/messages", method=GET) @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERSUPPORTAGENTGROUP"}) public ConversationMessageListWsDTO getMessagesForConversation(@PathVariable String conversationId) -
validate
-