Class ShareContentHelper


  • public class ShareContentHelper
    extends Object
    • Constructor Detail

      • ShareContentHelper

        public ShareContentHelper​(String baseUrl)
    • Method Detail

      • share

        public void share​(long pageId,
                          User user,
                          String message,
                          UserWithKey... usersToShareWith)
        Share the specified page as the specified user with one or more users.
        Parameters:
        pageId - the id of the page to be shared
        user - the user who is sharing the page.
        message - the message to send with the share notification
        usersToShareWith - the users to share with.
      • share

        public void share​(long pageId,
                          User user,
                          String message,
                          String... emails)
        Share the specified page as the specified user with one or more e-mail addressed.
        Parameters:
        pageId - the id of the page to be shared
        user - the user who is sharing the page.
        message - the message to send with the share notification
        emails - the addresses of others to share with.