Class WallContentManager

    • Method Detail

      • publishContent

        public Map<String,​ObjectpublishContent​(String text,
                                                       Part part,
                                                       String siteName,
                                                       String lang)
        Create and publish a new wall content
        Parameters:
        text - the text
        part - the file part for illustration. Can be null.
        siteName - the site name
        lang - the language
        Returns:
        the results
      • pinContent

        public Map<String,​ObjectpinContent​(String contentId,
                                                   Map<String,​Object> contextualParameters)
        Pin a wall content
        Parameters:
        contentId - the content id
        contextualParameters - the contextual parameters
        Returns:
        the result
      • unpinContent

        public Map<String,​ObjectunpinContent​(String contentId,
                                                     Map<String,​Object> contextualParameters)
        Unpin a wall content
        Parameters:
        contentId - the content id
        contextualParameters - the contextual parameters
        Returns:
        the result
      • reportContent

        public boolean reportContent​(String siteName,
                                     String contentId)
        Report content to webmasters (user with report notification right on wall contents)
        Parameters:
        siteName - the current site name
        contentId - the id of content to report
        Returns:
        true if the content was successfully reported
      • getExcerpt

        public String getExcerpt​(Content content,
                                 int maxLength)
        Get the excerpt of content
        Parameters:
        content - the content
        maxLength - the max length for content excerpt
        Returns:
        the excerpt
      • _getReportsRecipients

        protected List<String_getReportsRecipients​(String siteName)
        Retrieves the list of recipients for reports notification sending
        Parameters:
        siteName - the current site name
        Returns:
        the list of recipients for reports notification sending
      • react

        public Map<String,​Objectreact​(String contentId,
                                              String reactionName,
                                              boolean remove)
        Add or remove a reaction on a content
        Parameters:
        contentId - The content id
        reactionName - the reaction name (ex: LIKE)
        remove - true to remove the reaction, false to add reaction
        Returns:
        the result with the current actors of this reaction