Class DefaultConversationService
java.lang.Object
de.hybris.platform.messagecentercsservices.impl.DefaultConversationService
- All Implemented Interfaces:
ConversationService
Default implementation of
ConversationService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloseConversation(String uid, UserModel user) Customer closes a given conversationcreateConversation(String messages) Create a ConversationModelgetAllConversationsForCustomer(CustomerModel customer) Gets all conversations of specific customerprotected ConversationDaoGets conversation for given uidprotected Optional<ConversationModel>getConversationForUidAndUser(String uid, UserModel user) protected KeyGeneratorprotected ModelServiceGets open conversations for agentGets Unassigned conversations of agentprotected UserServicepickConversation(String uid, EmployeeModel agent) Agent chooses a conversationvoidsetConversationDao(ConversationDao conversationDao) voidsetConversationUidGenerator(KeyGenerator conversationUidGenerator) voidsetModelService(ModelService modelService) voidsetUserService(UserService userService) updateConversation(String uid, String messages) Create Or Update a ConversationModel
-
Constructor Details
-
DefaultConversationService
public DefaultConversationService()
-
-
Method Details
-
createConversation
Description copied from interface:ConversationServiceCreate a ConversationModel- Specified by:
createConversationin interfaceConversationService- Parameters:
messages- the Messages to be saved- Returns:
- the created conversation
-
getConversationForUid
Description copied from interface:ConversationServiceGets conversation for given uid- Specified by:
getConversationForUidin interfaceConversationService- Parameters:
uid- the conversation uid- Returns:
- the created conversation
-
getAllConversationsForCustomer
Description copied from interface:ConversationServiceGets all conversations of specific customer- Specified by:
getAllConversationsForCustomerin interfaceConversationService- Parameters:
customer- the specific customer- Returns:
- the list of ConversationModel
-
getOpenConversationsForAgent
Description copied from interface:ConversationServiceGets open conversations for agent- Specified by:
getOpenConversationsForAgentin interfaceConversationService- Parameters:
agent- the specific agent- Returns:
- the list of ConversationModel
-
getUnassignedConversations
Description copied from interface:ConversationServiceGets Unassigned conversations of agent- Specified by:
getUnassignedConversationsin interfaceConversationService- Returns:
- the list of ConversationModel
-
pickConversation
Description copied from interface:ConversationServiceAgent chooses a conversation- Specified by:
pickConversationin interfaceConversationService- Parameters:
uid- the specific conversation uidagent- the agent- Returns:
- the optional of picked conversation
-
closeConversation
Description copied from interface:ConversationServiceCustomer closes a given conversation- Specified by:
closeConversationin interfaceConversationService- Parameters:
uid- the specific conversation uiduser- the user- Returns:
- the optional of closed conversation
-
updateConversation
Description copied from interface:ConversationServiceCreate Or Update a ConversationModel- Specified by:
updateConversationin interfaceConversationService- Parameters:
uid- the specific conversation uidmessages- the messages to be updated- Returns:
- the created conversation
-
getConversationForUidAndUser
-
getConversationDao
-
setConversationDao
-
getUserService
-
setUserService
-
getModelService
-
setModelService
-
getConversationUidGenerator
-
setConversationUidGenerator
-