|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.bc.favourites.DefaultFavouritesService
public class DefaultFavouritesService
| Constructor Summary | |
|---|---|
DefaultFavouritesService(FavouritesManager favouritesManager)
|
|
| Method Summary | |
|---|---|
void |
addFavourite(JiraServiceContext ctx,
SharedEntity entity)
Add the given entity as a favourite of the user passed in the context |
void |
addFavouriteInPosition(JiraServiceContext ctx,
SharedEntity entity,
long position)
Add the given entity as a favourite of the user passed in the context and place it in the specified position. |
boolean |
isFavourite(com.atlassian.crowd.embedded.api.User user,
SharedEntity entity)
Check that the given entity is a favourite of the user passed in the context |
void |
removeFavourite(JiraServiceContext ctx,
SharedEntity entity)
Remove the given entity as a favourite of the user passed in the context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFavouritesService(FavouritesManager favouritesManager)
| Method Detail |
|---|
public void addFavourite(JiraServiceContext ctx,
SharedEntity entity)
FavouritesService
addFavourite in interface FavouritesServicectx - JIRA Service contextentity - The entity to favourite
public void addFavouriteInPosition(JiraServiceContext ctx,
SharedEntity entity,
long position)
FavouritesService
addFavouriteInPosition in interface FavouritesServicectx - JIRA Service Context holding the current userentity - the entity to favouriteposition - the position in which this entity should be added in the favourites order.
public void removeFavourite(JiraServiceContext ctx,
SharedEntity entity)
FavouritesService
removeFavourite in interface FavouritesServicectx - JIRA Service contextentity - The entity to unfavourite
public boolean isFavourite(com.atlassian.crowd.embedded.api.User user,
SharedEntity entity)
FavouritesService
isFavourite in interface FavouritesServiceuser - the user to check forentity - The entity to check favourite
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||