|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface LikeDao
Persists and retrieves likes. Should only be accessed via a LikeManager.
Likes will be exposed via the transfer object Like.
| Method Summary | |
|---|---|
void |
addLike(ContentEntityObject contentEntity)
Deprecated. Use LikeManager.addLike(ContentEntityObject) instead. Since v4.3. |
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. Use LikeManager.hasLike(ContentEntityObject) instead. Since v4.3. |
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. Use LikeManager.removeLike(ContentEntityObject) instead. Since v4.3. |
void |
removeLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Deprecated. Remove like from content entity for the given user. |
| Method Detail |
|---|
Like addLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
contentEntity - the content entity to add a like touser - User liking the content
@Deprecated void addLike(ContentEntityObject contentEntity)
LikeManager.addLike(ContentEntityObject) instead. Since v4.3.
contentEntity - the content entity to add a like to
void removeLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
contentEntity - content entity to remove like fromuser - User removing their Like@Deprecated void removeLike(ContentEntityObject contentEntity)
LikeManager.removeLike(ContentEntityObject) instead. Since v4.3.
contentEntity - content entity to remove like fromvoid removeAllLikesOn(ContentEntityObject contentEntity)
contentEntity - content entityvoid removeAllLikesFor(String username)
username - the name of the user to remove all likes for
boolean hasLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
contentEntity - the content entityuser - the User the Like is being checked for
@Deprecated boolean hasLike(ContentEntityObject contentEntity)
LikeManager.hasLike(ContentEntityObject) instead. Since v4.3.
contentEntity - the content entity
List<Like> getLikes(ContentEntityObject contentEntity)
contentEntity - the content entity
Map<Long,List<Like>> getLikes(Collection<? extends ContentEntityObject> contentEntities)
contentEntities - content entities
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||