Class AddWatchLink


  • @ParametersAreNonnullByDefault
    public class AddWatchLink
    extends Object
    Represents the link needed to add a watch for a given piece of content
    Since:
    4.3.3
    • Constructor Detail

      • AddWatchLink

        public AddWatchLink​(AbstractPage page)
        Create a link to represent adding a watch on a page
        Parameters:
        page - The page to be watched
      • AddWatchLink

        public AddWatchLink​(Space space,
                            @Nullable ContentTypeEnum contentType)
        Create a link to represent adding a watch on a page
        Parameters:
        space - The space to be watched
        contentType - Used to define whether space watches are for blogs only or all content
    • Method Detail

      • getUrl

        public String getUrl()
      • getContent

        public Addressable getContent()
        Since:
        5.8
      • getContentName

        public String getContentName()