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