|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plan.PlanFavouriteServiceImpl
public class PlanFavouriteServiceImpl
Constructor Summary | |
---|---|
PlanFavouriteServiceImpl(LabelManager labelManager)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlanFavouriteServiceImpl(LabelManager labelManager)
Method Detail |
---|
public boolean isFavourite(@NotNull Plan plan, @Nullable com.atlassian.user.User user)
PlanFavouriteService
isFavourite
in interface PlanFavouriteService
plan
- Plan to be testeduser
- User whose favourite plans would be examined
public int addFavourite(@NotNull Plan plan, @Nullable com.atlassian.user.User user, boolean honourManuallyUnmarked)
PlanFavouriteService
addFavourite
in interface PlanFavouriteService
plan
- Plan to be marked as a favouriteuser
- User whose favourites will be modifiedhonourManuallyUnmarked
- If this flag is set then additional check is per
public int removeFavourite(@NotNull Plan plan, @Nullable com.atlassian.user.User user)
PlanFavouriteService
removeFavourite
in interface PlanFavouriteService
plan
- Plan to be marked as a favouriteuser
- User whose favourites will be modified
public int toggleFavourite(@NotNull Plan plan, @Nullable com.atlassian.user.User user)
PlanFavouriteService
toggleFavourite
in interface PlanFavouriteService
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 |