|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.like.EventPublishingLikeDao
LikeManager instead. Since v4.3.
@Deprecated public class EventPublishingLikeDao
Publishes an appropriate like event after the delegate LikeDao operation completes.
| Constructor Summary | |
|---|---|
EventPublishingLikeDao(LikeManager manager)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addLike(ContentEntityObject contentEntity)
Deprecated. Add a like on the content entity for the currently logged-in user. |
Like |
addLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Deprecated. Add a like on the content entity for the given user. |
java.util.Map<java.lang.Long,java.util.List<Like>> |
getLikes(java.util.Collection<? extends ContentEntityObject> contentEntities)
Deprecated. Gets all the likes for the specified content entities (likes are ordered such that recent likes come first). |
java.util.List<Like> |
getLikes(ContentEntityObject contentEntity)
Deprecated. Gets all the likes for the specified content entity (likes are ordered such that recent likes come first) |
boolean |
hasLike(ContentEntityObject contentEntity)
Deprecated. Returns true if the current logged in user likes this content entity. |
boolean |
hasLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Deprecated. Returns true if the given user likes this content entity. |
void |
removeAllLikesFor(java.lang.String username)
Deprecated. Removes all likes (for any user) from the specified content entity. |
void |
removeAllLikesOn(ContentEntityObject contentEntity)
Deprecated. Removes all likes (for any user) from the specified content entity. |
void |
removeLike(ContentEntityObject contentEntity)
Deprecated. Remove like from content entity for the currently logged-in user. |
void |
removeLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Deprecated. Remove like from content entity for the given user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventPublishingLikeDao(LikeManager manager)
| Method Detail |
|---|
public void addLike(ContentEntityObject contentEntity)
LikeDao
addLike in interface LikeDaocontentEntity - the content entity to add a like topublic void removeLike(ContentEntityObject contentEntity)
LikeDao
removeLike in interface LikeDaocontentEntity - content entity to remove like frompublic void removeAllLikesOn(ContentEntityObject contentEntity)
LikeDao
removeAllLikesOn in interface LikeDaocontentEntity - content entitypublic void removeAllLikesFor(java.lang.String username)
LikeDao
removeAllLikesFor in interface LikeDaousername - the name of the user to remove all likes forpublic boolean hasLike(ContentEntityObject contentEntity)
LikeDao
hasLike in interface LikeDaocontentEntity - the content entity
public java.util.List<Like> getLikes(ContentEntityObject contentEntity)
LikeDao
getLikes in interface LikeDaocontentEntity - the content entity
public java.util.Map<java.lang.Long,java.util.List<Like>> getLikes(java.util.Collection<? extends ContentEntityObject> contentEntities)
LikeDao
getLikes in interface LikeDaocontentEntities - content entities
public Like addLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
LikeDao
addLike in interface LikeDaocontentEntity - the content entity to add a like touser - User liking the content
public void removeLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
LikeDao
removeLike in interface LikeDaocontentEntity - content entity to remove like fromuser - User removing their Like
public boolean hasLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
LikeDao
hasLike in interface LikeDaocontentEntity - the content entityuser - the User the Like is being checked for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||