Interface IContextListener


public interface IContextListener
The interface for receiving the context change events. When multiple contexts are changed at once, then it is guaranteed, that the changes will come in natural order (e.g. when deleting tree, the leaves are notified first and parents afterwards).
Author:
dobisekm
  • Method Details

    • contextCreated

      void contextCreated(@NotNull IContextId id)
      Context was created.
      Parameters:
      id - context id
    • contextsMoved

      void contextsMoved(@NotNull List<IContext[]> contextPairs)
      Note: This event is not supported by the current implementation. Move of repository content is considered to be just remove of the old content. Context tree was modified.

      Is fired when location changes (may not be supported by implementation).

      This notifies the clients, that the oldContexts now become the new one (including Id and Location change) - so that the clients can update their internal structures.

      The full context objects are passed in, since there is no way for the old context retrieval.

      Parameters:
      contextPairs - List of IContext[2], with {oldContext, newContext} content. The pairs are ordered so that the first in the list is the rootmost one followed by others. In other words, children always came after parents.
    • contextRemoved

      void contextRemoved(@NotNull IContextId id)
      Context was removed.
      Parameters:
      id - context id