Package se.conciliate.extensions.store
Class MTSymbolStoreAdapter
java.lang.Object
se.conciliate.extensions.store.MTSymbolStoreAdapter
- All Implemented Interfaces:
EventListener,MTSymbolStoreListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrevisionChanged(MTSymbol symbol, MTWorkspace workspace, MTRepository repo) Called when a change was made to the current revision of a symbol, i.e.voidrevisionCreated(MTSymbol symbol, Collection<MTModel> newModelRevisions, MTWorkspace workspace, MTRepository repo) Called when a new revision of a symbol is created through the store api.
NOTE: No guarantees are made about wich thread this method is called upon.voidrevisionLocked(MTSymbol symbol, MTWorkspace workspace, MTRepository repo) Called when the current revision of a symbol is locked.
NOTE: No guarantees are made about wich thread this method is called upon.voidsymbolAdded(MTSymbol symbol, MTWorkspace workspace, MTRepository repo) Called when a symbol is added through the store api.
NOTE: No guarantees are made about wich thread this method is called upon.voidsymbolChanged(MTSymbol symbol, SymbolChangeEvent event) Called when a symbol is changed through the store api.
NOTE: No guarantees are made about wich thread this method is called upon.voidsymbolRemoved(MTSymbol symbol, MTWorkspace workspace, MTRepository repo) Called when a symbol is removed through the store api.
NOTE: No guarantees are made about wich thread this method is called upon.
-
Constructor Details
-
MTSymbolStoreAdapter
public MTSymbolStoreAdapter()
-
-
Method Details
-
symbolAdded
Description copied from interface:MTSymbolStoreListenerCalled when a symbol is added through the store api.
NOTE: No guarantees are made about wich thread this method is called upon. It is up to the implementation to handle thread safety.- Specified by:
symbolAddedin interfaceMTSymbolStoreListener- Parameters:
symbol- The symbol that was addedworkspace- The workspace in which the symbol was addedrepo- The repository in which the symbol was added
-
symbolRemoved
Description copied from interface:MTSymbolStoreListenerCalled when a symbol is removed through the store api.
NOTE: No guarantees are made about wich thread this method is called upon. It is up to the implementation to handle thread safety.- Specified by:
symbolRemovedin interfaceMTSymbolStoreListener- Parameters:
symbol- The symbol that was removedworkspace- The workspace from which the symbol was removedrepo- The repository from which the symbol was removed.
-
symbolChanged
Description copied from interface:MTSymbolStoreListenerCalled when a symbol is changed through the store api.
NOTE: No guarantees are made about wich thread this method is called upon. It is up to the implementation to handle thread safety.- Specified by:
symbolChangedin interfaceMTSymbolStoreListener- Parameters:
symbol- The symbol that was changed.event- An event describing the change.- See Also:
-
revisionCreated
public void revisionCreated(MTSymbol symbol, Collection<MTModel> newModelRevisions, MTWorkspace workspace, MTRepository repo) Description copied from interface:MTSymbolStoreListenerCalled when a new revision of a symbol is created through the store api.
NOTE: No guarantees are made about wich thread this method is called upon. It is up to the implementation to handle thread safety.- Specified by:
revisionCreatedin interfaceMTSymbolStoreListener- Parameters:
symbol- The symbol that now has a new revision.newModelRevisions- Models that got new revisions as part of the operation.workspace- The workspace in which the new revision of the symbol was created.repo- The repository in which the new revision of the symbol was created.
-
revisionLocked
Description copied from interface:MTSymbolStoreListenerCalled when the current revision of a symbol is locked.
NOTE: No guarantees are made about wich thread this method is called upon. It is up to the implementation to handle thread safety.- Specified by:
revisionLockedin interfaceMTSymbolStoreListener- Parameters:
symbol- The symbol that now has its revision locked.workspace- The workspace in which the revision of the symbol was locked.repo- The repository in which the revision of the symbol was locked.
-
revisionChanged
Description copied from interface:MTSymbolStoreListenerCalled when a change was made to the current revision of a symbol, i.e. the revision log was updated.
NOTE: No guarantees are made about wich thread this method is called upon. It is up to the implementation to handle thread safety.- Specified by:
revisionChangedin interfaceMTSymbolStoreListener- Parameters:
symbol- The symbol where the change was made.workspace- The workspace in which the revision of the symbol was changed.repo- The repository in which the revision of the symbol was changed.
-