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, long id, long updateCount)
           
 void variantEvent(DocumentVariantEventType eventType, long documentId, long branchId, long languageId, long updateCount)
          A specialiased repository event callback for events that apply to variants, since those needs a tripple of IDs to be identified.
 

Method Detail

repositoryEvent

void repositoryEvent(RepositoryEventType eventType,
                     long id,
                     long updateCount)
Parameters:
id - the id of the item to which the event applies
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

variantEvent

void variantEvent(DocumentVariantEventType eventType,
                  long documentId,
                  long branchId,
                  long languageId,
                  long updateCount)
A specialiased repository event callback for events that apply to variants, since those needs a tripple of IDs to be identified.



Copyright © -2012 . All Rights Reserved.