public class PlanFavouriteServiceImpl extends Object implements PlanFavouriteService
| Constructor and Description |
|---|
PlanFavouriteServiceImpl(LabelManager labelManager) |
| Modifier and Type | Method and Description |
|---|---|
int |
addFavourite(Plan plan,
com.atlassian.user.User user,
boolean honourManuallyUnmarked)
Mark plan as a favourite for a user.
|
boolean |
isFavourite(ImmutablePlan plan,
com.atlassian.user.User user)
Test if plan is set as favourite for a user.
|
int |
removeFavourite(Plan plan,
com.atlassian.user.User user)
Remove plan from the user's favourite list and mark it "manually marked not favourite"
|
int |
toggleFavourite(Plan plan,
com.atlassian.user.User user)
Toggle the plan's favourite status for a user.
|
public PlanFavouriteServiceImpl(LabelManager labelManager)
public boolean isFavourite(@NotNull
ImmutablePlan plan,
@Nullable
com.atlassian.user.User user)
PlanFavouriteServiceisFavourite in interface PlanFavouriteServiceplan - Plan to be testeduser - User whose favourite plans would be examinedpublic int addFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user,
boolean honourManuallyUnmarked)
PlanFavouriteServiceaddFavourite in interface PlanFavouriteServiceplan - Plan to be marked as a favouriteuser - User whose favourites will be modifiedhonourManuallyUnmarked - If this flag is set then additional check is perpublic int removeFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user)
PlanFavouriteServiceremoveFavourite in interface PlanFavouriteServiceplan - Plan to be marked as a favouriteuser - User whose favourites will be modifiedpublic int toggleFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user)
PlanFavouriteServicetoggleFavourite in interface PlanFavouriteServiceplan - Plan which favourite status will be set/cleareduser - User whose favourites will be modifiedCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.