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 TypeMethodDescriptionvoid
revisionChanged
(MTSymbol symbol, MTWorkspace workspace, MTRepository repo) Called when a change was made to the current revision of a symbol, i.e.void
revisionCreated
(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.void
revisionLocked
(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.void
symbolAdded
(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.void
symbolChanged
(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.void
symbolRemoved
(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:MTSymbolStoreListener
Called 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:
symbolAdded
in 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:MTSymbolStoreListener
Called 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:
symbolRemoved
in 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:MTSymbolStoreListener
Called 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:
symbolChanged
in 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:MTSymbolStoreListener
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. It is up to the implementation to handle thread safety.- Specified by:
revisionCreated
in 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:MTSymbolStoreListener
Called 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:
revisionLocked
in 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:MTSymbolStoreListener
Called 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:
revisionChanged
in 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.
-