Package com.atlassian.jira.favourites
Class DefaultFavouritesManager
java.lang.Object
com.atlassian.jira.favourites.DefaultFavouritesManager
- All Implemented Interfaces:
FavouritesManager<SharedEntity>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFavouritesManager(FavouritesStore store, SharedEntityAccessor.Factory sharedEntityAccessorFactory, ShareManager shareManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFavourite(ApplicationUser user, SharedEntity entity) Add the given entity as a favourite of the user passed in add to favourites count if necessary.voidaddFavouriteInPosition(ApplicationUser user, SharedEntity entity, long position) Add the given entity as a favourite of the user passed in, in the specified position, add to favourites count if necessary.voiddecreaseFavouriteSequence(ApplicationUser user, SharedEntity entity) Decreases the position of theSharedEntityrelative to the user's set of all other entities of the same type.getFavouriteIds(ApplicationUser user, SharedEntity.TypeDescriptor<SharedEntity> entityType) Get the ids of a user's favourite Entities for a given entity typevoidincreaseFavouriteSequence(ApplicationUser user, SharedEntity entity) Increases the position of theSharedEntityrelative to the user's set of all other entities of the same type.booleanisFavourite(ApplicationUser user, SharedEntity entity) Check to see if the given entity is a favourite of the user passed in.voidmoveToEndFavouriteSequence(ApplicationUser user, SharedEntity entity) Moves the position of theSharedEntityto the end relative to the user's set of all other entities of the same type.voidmoveToStartFavouriteSequence(ApplicationUser user, SharedEntity entity) Moves the position of theSharedEntityto the start relative to the user's set of all other entities of the same type.voidremoveFavourite(ApplicationUser user, SharedEntity entity) Remove the given entity as a favourite of the user passed in.voidRemove all favourite associations for a given entity for entity deletion.voidremoveFavouritesForUser(ApplicationUser user, SharedEntity.TypeDescriptor<SharedEntity> entityType) Remove the favourite associations for the given User and the given type
-
Constructor Details
-
Method Details