Package org.nuxeo.ecm.collections.core
Class FavoritesManagerImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.collections.core.FavoritesManagerImpl
-
- All Implemented Interfaces:
FavoritesManager
,Adaptable
,Component
,Extensible
,TimestampedService
public class FavoritesManagerImpl extends DefaultComponent implements FavoritesManager
- Since:
- 5.9.4
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description FavoritesManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addToFavorites(DocumentModel document, CoreSession session)
boolean
canAddToFavorites(DocumentModel document)
DocumentModel
getFavorites(CoreSession session)
DocumentModel
getFavorites(DocumentModel context, CoreSession session)
Deprecated.boolean
isFavorite(DocumentModel document, CoreSession session)
void
removeFromFavorites(DocumentModel document, CoreSession session)
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Method Detail
-
addToFavorites
public void addToFavorites(DocumentModel document, CoreSession session)
- Specified by:
addToFavorites
in interfaceFavoritesManager
-
canAddToFavorites
public boolean canAddToFavorites(DocumentModel document)
- Specified by:
canAddToFavorites
in interfaceFavoritesManager
-
getFavorites
@Deprecated public DocumentModel getFavorites(DocumentModel context, CoreSession session)
Deprecated.- Specified by:
getFavorites
in interfaceFavoritesManager
-
getFavorites
public DocumentModel getFavorites(CoreSession session)
- Specified by:
getFavorites
in interfaceFavoritesManager
-
isFavorite
public boolean isFavorite(DocumentModel document, CoreSession session)
- Specified by:
isFavorite
in interfaceFavoritesManager
-
removeFromFavorites
public void removeFromFavorites(DocumentModel document, CoreSession session)
- Specified by:
removeFromFavorites
in interfaceFavoritesManager
-
-