Class MessageServiceSecuredImpl
- java.lang.Object
-
- co.mastermindcms.modules.services.MessageServiceSecuredImpl
-
- All Implemented Interfaces:
MessageServiceSecured
@Service public class MessageServiceSecuredImpl extends java.lang.Object implements MessageServiceSecured
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.databind.ObjectMapper
mapper
private MessageService
messageService
-
Constructor Summary
Constructors Constructor Description MessageServiceSecuredImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Chat>
createChat(Chat chat)
This method creates a database entity.java.util.Optional<Chat>
createChat(java.util.LinkedHashMap<java.lang.String,java.lang.Object> chatAsMap)
This method creates a database entity.java.util.Optional<Chat>
createChatAndNotify(Chat chat)
This method creates a database entity.java.util.Optional<Chat>
createChatAndNotify(java.util.LinkedHashMap<java.lang.String,java.lang.Object> chatAsMap)
This method creates a database entity.java.util.Optional<Message>
createMessage(Message message)
This method creates a database entity.java.util.Optional<Message>
createMessage(java.util.LinkedHashMap<java.lang.String,java.lang.Object> messageAsMap)
This method creates a database entity.java.util.Optional<Message>
createMessageAndNotify(Message message)
This method creates a database entity.java.util.Optional<Message>
createMessageAndNotify(java.util.LinkedHashMap<java.lang.String,java.lang.Object> messageAsMap)
This method creates a database entity.
-
-
-
Field Detail
-
messageService
@Autowired private MessageService messageService
-
mapper
public static final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Method Detail
-
createChatAndNotify
public java.util.Optional<Chat> createChatAndNotify(Chat chat)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createChatAndNotify
in interfaceMessageServiceSecured
- Parameters:
chat
- database entity- Returns:
- optional value to externally interaction
-
createChatAndNotify
public java.util.Optional<Chat> createChatAndNotify(java.util.LinkedHashMap<java.lang.String,java.lang.Object> chatAsMap)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createChatAndNotify
in interfaceMessageServiceSecured
- Parameters:
chatAsMap
- map-representation of database entity- Returns:
- optional value to externally interaction
-
createChat
public java.util.Optional<Chat> createChat(Chat chat)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createChat
in interfaceMessageServiceSecured
- Parameters:
chat
- database entity- Returns:
- optional value to externally interaction
-
createChat
public java.util.Optional<Chat> createChat(java.util.LinkedHashMap<java.lang.String,java.lang.Object> chatAsMap)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createChat
in interfaceMessageServiceSecured
- Parameters:
chatAsMap
- map-representation of database entity- Returns:
- optional value to externally interaction
-
createMessageAndNotify
public java.util.Optional<Message> createMessageAndNotify(Message message)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createMessageAndNotify
in interfaceMessageServiceSecured
- Parameters:
message
- database entity- Returns:
- optional value to externally interaction
-
createMessageAndNotify
public java.util.Optional<Message> createMessageAndNotify(java.util.LinkedHashMap<java.lang.String,java.lang.Object> messageAsMap)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createMessageAndNotify
in interfaceMessageServiceSecured
- Parameters:
messageAsMap
- map-representation of database entity- Returns:
- optional value to externally interaction
-
createMessage
public java.util.Optional<Message> createMessage(Message message)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createMessage
in interfaceMessageServiceSecured
- Parameters:
message
- database entity- Returns:
- optional value to externally interaction
-
createMessage
public java.util.Optional<Message> createMessage(java.util.LinkedHashMap<java.lang.String,java.lang.Object> messageAsMap)
Description copied from interface:MessageServiceSecured
This method creates a database entity.- Specified by:
createMessage
in interfaceMessageServiceSecured
- Parameters:
messageAsMap
- map-representation of database entity- Returns:
- optional value to externally interaction
-
-