Class MessageCenterCSController
- java.lang.Object
-
- de.hybris.platform.messagecentercsoccaddon.controllers.messagecenter.MessageCenterCSController
-
@Controller @RequestMapping("/{baseSiteId}/messagecenter/im/conversations") public class MessageCenterCSController extends java.lang.ObjectController for message center.
-
-
Constructor Summary
Constructors Constructor Description MessageCenterCSController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationWsDTOcloseConversation(java.lang.String conversationId)ConversationListWsDTOgetConversationsForAgent(java.lang.String status)ConversationListWsDTOgetConversationsForCustomer()ConversationMessageListWsDTOgetMessagesForConversation(java.lang.String conversationId)ErrorListWsDTOhandleExceptions(MessageCenterCSException e)voidinitBinder(org.springframework.web.bind.WebDataBinder binder)protected ConversationListWsDTOmapConversationList(java.util.List<ConversationData> conversations)ConversationWsDTOpickConversation(java.lang.String conversationId)ConversationWsDTOsendMessage(ConversationMessageListWsDTO conversationMessageList)protected voidvalidate(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)
-
-
-
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)
-
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
protected ConversationListWsDTO mapConversationList(java.util.List<ConversationData> conversations)
-
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)
-
-