Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.cache
Interface CacheListener

All Known Implementing Classes:
AbstractCacheListener, DocModelTableModel

public interface CacheListener

Actually a stripped down copy of TreeCacheListener - suitable only for our needs.

Author:
DM

Method Summary
 void documentRemove(DocumentModel docModel)
          The method is invoked just before the document is removed
 void documentRemoved(String fqn)
          Notification sent after the document with specified fqn in cache has been removed.
 void documentUpdate(DocumentModel docModel, boolean pre)
          Invoked before the document model internal data is altered and after it was changed for an existing Document Model.
 

Method Detail

documentUpdate

void documentUpdate(DocumentModel docModel,
                    boolean pre)
Invoked before the document model internal data is altered and after it was changed for an existing Document Model. Given Document Model exists in the cache before and after the notification.

Parameters:
docModel -
pre -

documentRemove

void documentRemove(DocumentModel docModel)
The method is invoked just before the document is removed

Parameters:
docModel - the document that is about to be removed. It is a non null document

documentRemoved

void documentRemoved(String fqn)
Notification sent after the document with specified fqn in cache has been removed.

Parameters:
fqn -

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.