public class FavouritesImpl extends Object implements Favourites
PARAM_INCLUDE_PATH
Constructor and Description |
---|
FavouritesImpl() |
Modifier and Type | Method and Description |
---|---|
Favourite |
addFavourite(String personId,
Favourite favourite)
Add a favourite for user personId
|
Favourite |
addFavourite(String personId,
Favourite favourite,
Parameters parameters)
Add a favourite for user personId taking parameters into account
|
Favourite |
getFavourite(String personId,
String favouriteId)
Get a specific favourite for user personId
|
Favourite |
getFavourite(String personId,
String favouriteId,
Parameters parameters)
Get a specific favourite for user personId taking parameters into account
|
CollectionWithPagingInfo<Favourite> |
getFavourites(String personId,
Parameters parameters)
Get a paged list of favourites for user personId
|
void |
removeFavourite(String personId,
String id)
Add a favourite for user personId
|
void |
setFavouritesService(FavouritesService favouritesService) |
void |
setNodes(Nodes nodes) |
void |
setPeople(People people) |
void |
setSites(Sites sites) |
void |
setSiteService(SiteService siteService) |
public void setPeople(People people)
public void setSites(Sites sites)
public void setNodes(Nodes nodes)
public void setFavouritesService(FavouritesService favouritesService)
public void setSiteService(SiteService siteService)
public Favourite addFavourite(String personId, Favourite favourite)
Favourites
addFavourite
in interface Favourites
personId
- the personId for which the favourite is to be addedfavourite
- the favourite to addpublic Favourite addFavourite(String personId, Favourite favourite, Parameters parameters)
Favourites
addFavourite
in interface Favourites
personId
- the personId for which the favourite is to be addedfavourite
- the favourite to addparameters
- the parameterspublic void removeFavourite(String personId, String id)
Favourites
removeFavourite
in interface Favourites
personId
- the personId for which the favourite is to be removedid
- the id of the favourite to remove (id is a uuid)public Favourite getFavourite(String personId, String favouriteId)
Favourites
getFavourite
in interface Favourites
personId
- the personId for which the favourite is to be removedfavouriteId
- the favourite idpublic Favourite getFavourite(String personId, String favouriteId, Parameters parameters)
Favourites
getFavourite
in interface Favourites
personId
- the personId for which the favourite is to be removedfavouriteId
- the favourite idparameters
- the parameterspublic CollectionWithPagingInfo<Favourite> getFavourites(String personId, Parameters parameters)
Favourites
getFavourites
in interface Favourites
personId
- the personId for which the favourite is to be removedparameters
- ParametersCopyright © 2005–2017 Alfresco Software. All rights reserved.