Package com.atlassian.jira.favourites
Interface FavouritesStore
- All Known Implementing Classes:
CachingFavouritesStore,OfBizFavouritesStore
public interface FavouritesStore
Store used for CRUD of Favourites.
- Since:
- v3.13
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFavourite(ApplicationUser user, SharedEntity entity) Create Favourites association between User and entitygetFavouriteIds(ApplicationUser user, SharedEntity.TypeDescriptor<?> entityType) Get the ids of a user's favourite Entities for a given entity typegetFavouriteIds(String userKey, SharedEntity.TypeDescriptor<?> entityType) Get the ids of a user's favourite Entities for a given entity typebooleanisFavourite(ApplicationUser user, SharedEntity entity) Checks to see if entity is a favourite of the user passed in.booleanremoveFavourite(ApplicationUser user, SharedEntity entity) Remove Favourites association between User and entityvoidRemove all favourite associations for a given entity.voidremoveFavouritesForUser(ApplicationUser user, SharedEntity.TypeDescriptor<?> entityType) Remove the favourite associations for the given User and the given typevoidupdateSequence(ApplicationUser user, List<? extends SharedEntity> favouriteEntities) Called to update the sequence of a list of favouriteshared entities
-
Method Details
-
updateSequence
Called to update the sequence of a list of favouriteshared entities- Parameters:
user- the user in playfavouriteEntities- the list specifying the order of theSharedEntitys