|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@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.
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(ApplicationUser user,
SharedEntity entity)
Check that the given entity is a favourite of the user passed in the context |
boolean |
isFavourite(com.atlassian.crowd.embedded.api.User user,
SharedEntity entity)
Deprecated. Use isFavourite(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.sharing.SharedEntity) instead. Since v6.0.
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 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 favourite
boolean isFavourite(com.atlassian.crowd.embedded.api.User user, SharedEntity entity)
isFavourite(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.sharing.SharedEntity)
instead. Since v6.0.
Check that the given entity is a favourite of the user passed in the context
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 |