@PublicApi
public interface FavouritesService
| Modifier and Type | Method and Description |
|---|---|
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(ApplicationUser 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
|
void addFavourite(JiraServiceContext ctx, SharedEntity entity)
ctx - JIRA Service contextentity - The entity to favouritevoid 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 unfavouriteboolean isFavourite(ApplicationUser user, SharedEntity entity)
user - the user to check forentity - The entity to check favouriteCopyright © 2002-2024 Atlassian. All Rights Reserved.