@PublicApi
public interface PlanFavouriteService
Modifier and Type | Method and Description |
---|---|
int |
addFavourite(@NotNull Plan plan,
@Nullable com.atlassian.user.User user,
boolean honourManuallyUnmarked)
Mark plan as a favourite for a user.
|
boolean |
isFavourite(@NotNull ImmutablePlan plan,
@Nullable com.atlassian.user.User user)
Test if plan is set as favourite for a user.
|
int |
removeFavourite(@NotNull Plan plan,
@Nullable com.atlassian.user.User user)
Remove plan from the user's favourite list and mark it "manually marked not favourite"
|
int |
toggleFavourite(@NotNull Plan plan,
@Nullable com.atlassian.user.User user)
Toggle the plan's favourite status for a user.
|
boolean isFavourite(@NotNull @NotNull ImmutablePlan plan, @Nullable @Nullable com.atlassian.user.User user)
plan
- Plan to be testeduser
- User whose favourite plans would be examinedint addFavourite(@NotNull @NotNull Plan plan, @Nullable @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 @NotNull Plan plan, @Nullable @Nullable com.atlassian.user.User user)
plan
- Plan to be marked as a favouriteuser
- User whose favourites will be modifiedint toggleFavourite(@NotNull @NotNull Plan plan, @Nullable @Nullable com.atlassian.user.User user)
plan
- Plan which favourite status will be set/cleareduser
- User whose favourites will be modifiedCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.