com.atlassian.confluence.like
Class EventPublishingLikeDao

java.lang.Object
  extended by com.atlassian.confluence.like.EventPublishingLikeDao
All Implemented Interfaces:
LikeDao

Deprecated. Use LikeManager instead. Since v4.3.

@Deprecated
public class EventPublishingLikeDao
extends Object
implements LikeDao

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.
 Map<Long,List<Like>> getLikes(Collection<? extends ContentEntityObject> contentEntities)
          Deprecated. Gets all the likes for the specified content entities (likes are ordered such that recent likes come first).
 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(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

EventPublishingLikeDao

public EventPublishingLikeDao(LikeManager manager)
Deprecated. 
Method Detail

addLike

public void addLike(ContentEntityObject contentEntity)
Deprecated. 
Description copied from interface: LikeDao
Add a like on the content entity for the currently logged-in user.

Specified by:
addLike in interface LikeDao
Parameters:
contentEntity - the content entity to add a like to

removeLike

public void removeLike(ContentEntityObject contentEntity)
Deprecated. 
Description copied from interface: LikeDao
Remove like from content entity for the currently logged-in user.

Specified by:
removeLike in interface LikeDao
Parameters:
contentEntity - content entity to remove like from

removeAllLikesOn

public void removeAllLikesOn(ContentEntityObject contentEntity)
Deprecated. 
Description copied from interface: LikeDao
Removes all likes (for any user) from the specified content entity.

Specified by:
removeAllLikesOn in interface LikeDao
Parameters:
contentEntity - content entity

removeAllLikesFor

public void removeAllLikesFor(String username)
Deprecated. 
Description copied from interface: LikeDao
Removes all likes (for any user) from the specified content entity.

Specified by:
removeAllLikesFor in interface LikeDao
Parameters:
username - the name of the user to remove all likes for

hasLike

public boolean hasLike(ContentEntityObject contentEntity)
Deprecated. 
Description copied from interface: LikeDao
Returns true if the current logged in user likes this content entity.

Specified by:
hasLike in interface LikeDao
Parameters:
contentEntity - the content entity
Returns:
true if the current logged in user likes this content entity.

getLikes

public List<Like> getLikes(ContentEntityObject contentEntity)
Deprecated. 
Description copied from interface: LikeDao
Gets all the likes for the specified content entity (likes are ordered such that recent likes come first)

Specified by:
getLikes in interface LikeDao
Parameters:
contentEntity - the content entity
Returns:
all the likes for the specified content entity.

getLikes

public Map<Long,List<Like>> getLikes(Collection<? extends ContentEntityObject> contentEntities)
Deprecated. 
Description copied from interface: LikeDao
Gets all the likes for the specified content entities (likes are ordered such that recent likes come first).

Specified by:
getLikes in interface LikeDao
Parameters:
contentEntities - content entities
Returns:
a map of contentId to a set of all the likes for that piece of content.

addLike

public Like addLike(ContentEntityObject contentEntity,
                    com.atlassian.user.User user)
Deprecated. 
Description copied from interface: LikeDao
Add a like on the content entity for the given user.

Specified by:
addLike in interface LikeDao
Parameters:
contentEntity - the content entity to add a like to
user - User liking the content
Returns:
the created Like

removeLike

public void removeLike(ContentEntityObject contentEntity,
                       com.atlassian.user.User user)
Deprecated. 
Description copied from interface: LikeDao
Remove like from content entity for the given user.

Specified by:
removeLike in interface LikeDao
Parameters:
contentEntity - content entity to remove like from
user - User removing their Like

hasLike

public boolean hasLike(ContentEntityObject contentEntity,
                       com.atlassian.user.User user)
Deprecated. 
Description copied from interface: LikeDao
Returns true if the given user likes this content entity.

Specified by:
hasLike in interface LikeDao
Parameters:
contentEntity - the content entity
user - the User the Like is being checked for
Returns:
true if the user likes this content entity.


Copyright © 2003–2015 Atlassian. All rights reserved.