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.ObjectMappermapperprivate MessageServicemessageService
-
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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createChatAndNotifyin 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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createChatAndNotifyin 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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createChatin 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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createChatin 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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createMessageAndNotifyin 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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createMessageAndNotifyin 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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createMessagein 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:MessageServiceSecuredThis method creates a database entity.- Specified by:
createMessagein interfaceMessageServiceSecured- Parameters:
messageAsMap- map-representation of database entity- Returns:
- optional value to externally interaction
-
-