Class LikeNotification
- java.lang.Object
-
- com.atlassian.confluence.plugins.like.notifications.LikeNotification
-
public final class LikeNotification extends Object
Represents a like notification.
-
-
Constructor Summary
Constructors Constructor Description LikeNotification(ConfluenceUser recipient, com.atlassian.user.User liker, com.atlassian.user.User author, ContentEntityObject contentEntity, com.atlassian.plugin.notifications.spi.UserRole role)
Construct a like notification
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
com.atlassian.user.User
getAuthor()
ContentEntityObject
getContent()
com.atlassian.user.User
getLiker()
ConfluenceUser
getRecipient()
com.atlassian.plugin.notifications.spi.UserRole
getRole()
int
hashCode()
-
-
-
Constructor Detail
-
LikeNotification
public LikeNotification(ConfluenceUser recipient, com.atlassian.user.User liker, com.atlassian.user.User author, ContentEntityObject contentEntity, com.atlassian.plugin.notifications.spi.UserRole role)
Construct a like notification- Parameters:
recipient
- (required) the recipientliker
- (required) the person who performed the "like"author
- the author (can be null in the case of an anonymous contribution)contentEntity
- the content entity being likedrole
-
-
-
Method Detail
-
getContent
public ContentEntityObject getContent()
-
getRecipient
public ConfluenceUser getRecipient()
-
getLiker
public com.atlassian.user.User getLiker()
-
getAuthor
public com.atlassian.user.User getAuthor()
-
getRole
public com.atlassian.plugin.notifications.spi.UserRole getRole()
-
-