Daisy Open Source CMS

org.outerj.daisy.repository
Interface RepositoryListener


public interface RepositoryListener

Listener interface for repository related events.

The events are fired synchronously after their corresponding operation has completed successfully. Therefore, it is very important that event listeners operate very quickly, since otherwise they can seriously impact basic document operations.

Event listeners are registered through Repository.addListener(RepositoryListener).


Method Summary
 void repositoryEvent(RepositoryEventType eventType, Object id, long updateCount)
           
 

Method Detail

repositoryEvent

void repositoryEvent(RepositoryEventType eventType,
                     Object id,
                     long updateCount)
Parameters:
id - the id of the item to which the event applies. For most entities this is a Long, for document it is a String (the document ID), for document variant related events it is a VariantKey object.
updateCount - the "update count" of the item (see the getUpdateCount method on various entities such as documents, users, field/part/document types, etc), if applicable, otherwise -1

Daisy Open Source CMS