Class ContentViewServiceImpl

    • Constructor Detail

      • ContentViewServiceImpl

        public ContentViewServiceImpl()
    • Method Detail

      • updateMemoryWithReact

        public void updateMemoryWithReact​(String memoryID,
                                          String currentUserID,
                                          String reactedUserID)
                                   throws InternalServerException
        An implementation of updating a memory with the newly added star.
        Specified by:
        updateMemoryWithReact in interface ContentViewService
        Parameters:
        memoryID - The id of the memory on which the star/comment has been made.
        currentUserID - The id of the user making the reaction.
        reactedUserID - The id of the user on whose memory reaction has been made.
        Throws:
        InternalServerException - Thrown incase that there is some internal error.
      • updateMemoryWithComment

        public void updateMemoryWithComment​(String memoryID,
                                            String currentUserID,
                                            String reactedUserID,
                                            String commentText)
                                     throws InternalServerException
        An implementation of updating a memory with the newly added comment.
        Specified by:
        updateMemoryWithComment in interface ContentViewService
        Parameters:
        memoryID - The id of the memory on which the star/comment has been made.
        currentUserID - The id of the user making the reaction.
        reactedUserID - The id of the user on whose memory reaction has been made.
        commentText - The comment that has been made.
        Throws:
        InternalServerException - Thrown incase that there is some internal error.
      • registerReport

        public void registerReport​(Map<String,​Object> payload)
        An implementation that allows to register a report.
        Specified by:
        registerReport in interface ContentViewService
        Parameters:
        payload - The request body, passed in directly from the controller.