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, deactivate, getAdapter, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
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 © 2017 Nuxeo. All rights reserved.