@PublicApi
public interface PlanFavouriteService
| 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.
|
boolean isFavourite(@NotNull
ImmutablePlan plan,
@Nullable
com.atlassian.user.User user)
plan - Plan to be testeduser - User whose favourite plans would be examinedint addFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user,
boolean honourManuallyUnmarked)
plan - Plan to be marked as a favouriteuser - User whose favourites will be modifiedhonourManuallyUnmarked - If this flag is set then additional check is perint removeFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user)
plan - Plan to be marked as a favouriteuser - User whose favourites will be modifiedint toggleFavourite(@NotNull
Plan plan,
@Nullable
com.atlassian.user.User user)
plan - Plan which favourite status will be set/cleareduser - User whose favourites will be modifiedCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.