com.atlassian.jira.web.dwr
Class AjaxFavouriteControl
java.lang.Object
com.atlassian.jira.web.dwr.AjaxFavouriteControl
public class AjaxFavouriteControl
- extends Object
Class used for the DWR endpoint for the Ajax Favourite picker (Star)
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxFavouriteControl
public AjaxFavouriteControl(JiraAuthenticationContext authContext,
FavouritesService favService,
FavouritesManager favouritesManager,
SharedEntityAccessor.Factory sharedEntityAccessorFactory)
- Main constructor for AjaxFavouriteControl.
- Parameters:
authContext
- the JIRA authentication contextfavService
- the FavouritesService that is delegatedfavouritesManager
- the fav managersharedEntityAccessorFactory
- factory used to create SharedEntityAccessor objects when looking up shared entities.
setFavourite
public boolean setFavourite(String entityType,
String entityId,
boolean enable)
- Adds or removes an entity from a user's list of favourites
- Parameters:
entityType
- the entity type to favourite - SearchRequest, PortalPageentityId
- id of the entity to favouriteenable
- true to make favourite, false to unfavourite
- Returns:
- true if operation was successful, otherwise false
undo
public boolean undo(String entityType,
String entityId,
Long[] originalOrder)
Copyright © 2002-2009 Atlassian. All Rights Reserved.