Class AddWatchLink
- java.lang.Object
 - 
- com.atlassian.confluence.user.notifications.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 Summary
Constructors Constructor Description AddWatchLink(AbstractPage page)Create a link to represent adding a watch on a pageAddWatchLink(Space space, @Nullable ContentTypeEnum contentType)Create a link to represent adding a watch on a page 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressablegetContent()StringgetContentName()StringgetUrl() 
 - 
 
- 
- 
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 watchedcontentType- 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()
 
 - 
 
 -