org.modelbus.core.lib.notification
Interface INotificationListener


public interface INotificationListener

The interface has to be implemented to receive and analyze notifications about model creation, deletion, updating or about the commit of a changes set


Method Summary
 void commitChangeModelNotification(java.lang.String modelUri, java.lang.String messageID, java.lang.String changeModelContent)
          Notifies the listener about the commit of a change set.
 void notification(java.lang.String url, java.lang.String mode, java.lang.String username, java.lang.String sessionID)
          Notifies the listener about model creation, deletion, updating
 

Method Detail

notification

void notification(java.lang.String url,
                  java.lang.String mode,
                  java.lang.String username,
                  java.lang.String sessionID)
Notifies the listener about model creation, deletion, updating

Parameters:
url - the url of the model, which is deleted, created or updated
mode - the kind of notification ("delete", "update", "create")
username - the name of the user who has changed the model
sessionID - the ID of the user session

commitChangeModelNotification

void commitChangeModelNotification(java.lang.String modelUri,
                                   java.lang.String messageID,
                                   java.lang.String changeModelContent)
Notifies the listener about the commit of a change set.

Parameters:
modelUri - should be empty (not used)
messageID - a unique identifier
changeModelContent - the serialized EMF ChangeModel