|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void repositoryEvent(RepositoryEventType eventType, long id, long updateCount)
id
- the id of the item to which the event appliesupdateCount
- 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 -1void variantEvent(DocumentVariantEventType eventType, long documentId, long branchId, long languageId, long updateCount)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |