|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FavouritesService
Service for basic Favourites functionality. Used for adding, removing and checking favourites of generic entities. Initially used by SearchRequests and Dashboards but can be easily extended.
| 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 |
| Method Detail |
|---|
void addFavourite(JiraServiceContext ctx,
SharedEntity entity)
ctx - JIRA Service contextentity - The entity to favourite
void addFavouriteInPosition(JiraServiceContext ctx,
SharedEntity entity,
long position)
ctx - JIRA Service Context holding the current userentity - the entity to favouriteposition - the position in which this entity should be added in the favourites order.
void removeFavourite(JiraServiceContext ctx,
SharedEntity entity)
ctx - JIRA Service contextentity - The entity to unfavourite
boolean isFavourite(com.atlassian.crowd.embedded.api.User user,
SharedEntity entity)
user - 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 | |||||||||