Class DefaultPopupMessageService

    • Constructor Detail

      • DefaultPopupMessageService

        protected DefaultPopupMessageService()
        Hidden constructor
    • Method Detail

      • read

        public PopupMsg read​(String userId)
        Description copied from interface: PopupMessageService
        Read the first message (the oldest in other words) about a user and a session.
        Specified by:
        read in interface PopupMessageService
        Parameters:
        userId - the identifier of the user.
        Returns:
        an instance of PopupMsg which represents the Silverpeas message.
      • deleteById

        public void deleteById​(String msgId)
        Description copied from interface: PopupMessageService
        Deletes the message which is referenced by the given identifier.
        Specified by:
        deleteById in interface PopupMessageService
        Parameters:
        msgId - the identifier of the message to delete.
      • deleteAll

        public void deleteAll​(String userId)
        Description copied from interface: PopupMessageService
        Deletes all the messages linked to the user and the session represented by given identifiers.
        Specified by:
        deleteAll in interface PopupMessageService
        Parameters:
        userId - the identifier of the user.