public class FavoritesManagerImpl extends DefaultComponent implements FavoritesManager
Constructor and Description |
---|
FavoritesManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addToFavorites(DocumentModel document,
CoreSession session) |
boolean |
canAddToFavorites(DocumentModel document) |
DocumentModel |
getFavorites(DocumentModel context,
CoreSession session) |
boolean |
isFavorite(DocumentModel document,
CoreSession session) |
void |
removeFromFavorites(DocumentModel document,
CoreSession session) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public void addToFavorites(DocumentModel document, CoreSession session) throws ClientException
addToFavorites
in interface FavoritesManager
ClientException
public boolean canAddToFavorites(DocumentModel document) throws ClientException
canAddToFavorites
in interface FavoritesManager
ClientException
public DocumentModel getFavorites(DocumentModel context, CoreSession session) throws ClientException
getFavorites
in interface FavoritesManager
ClientException
public boolean isFavorite(DocumentModel document, CoreSession session) throws ClientException
isFavorite
in interface FavoritesManager
ClientException
public void removeFromFavorites(DocumentModel document, CoreSession session) throws ClientException
removeFromFavorites
in interface FavoritesManager
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.