Class MessageServiceSecuredImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.fasterxml.jackson.databind.ObjectMapper mapper  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mapper

        public static final com.fasterxml.jackson.databind.ObjectMapper mapper
    • Constructor Detail

      • MessageServiceSecuredImpl

        public MessageServiceSecuredImpl()
    • Method Detail

      • 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 interface MessageServiceSecured
        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 interface MessageServiceSecured
        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 interface MessageServiceSecured
        Parameters:
        chatAsMap - map-representation of 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 interface MessageServiceSecured
        Parameters:
        messageAsMap - map-representation of 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 interface MessageServiceSecured
        Parameters:
        messageAsMap - map-representation of database entity
        Returns:
        optional value to externally interaction