Package com.atlassian.jira.bc.favourites
Interface FavouritesService
- All Known Implementing Classes:
DefaultFavouritesService
@PublicApi
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.
- Since:
- v3.13
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFavourite
(JiraServiceContext ctx, SharedEntity entity) Add the given entity as a favourite of the user passed in the contextvoid
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 contextvoid
removeFavourite
(JiraServiceContext ctx, SharedEntity entity) Remove the given entity as a favourite of the user passed in the context
-
Method Details