|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlanFavouriteService
Service for managing the plan 'favourite' flag. Methods of this service should not be called from within transaction.
Method Summary | |
---|---|
int |
addFavourite(Plan plan,
com.atlassian.user.User user,
boolean honourManuallyUnmarked)
Mark plan as a favourite for a user. |
boolean |
isFavourite(Plan 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. |
Method Detail |
---|
boolean isFavourite(@NotNull Plan plan, @Nullable com.atlassian.user.User user)
plan
- Plan to be testeduser
- User whose favourite plans would be examined
int 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 per
int removeFavourite(@NotNull Plan plan, @Nullable com.atlassian.user.User user)
plan
- Plan to be marked as a favouriteuser
- User whose favourites will be modified
int toggleFavourite(@NotNull Plan plan, @Nullable com.atlassian.user.User user)
plan
- Plan which favourite status will be set/cleareduser
- User whose favourites will be modified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |