Package psidev.psi.mi.jami.listener.impl
Class SourceChangeLogger
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.CvTermChangeLogger
-
- psidev.psi.mi.jami.listener.impl.SourceChangeLogger
-
- All Implemented Interfaces:
EventListener
,AliasesChangeListener<CvTerm>
,AnnotationsChangeListener<CvTerm>
,CvTermChangeListener
,IdentifiersChangeListener<CvTerm>
,SourceChangeListener
,XrefsChangeListener<CvTerm>
- Direct Known Subclasses:
SourceEnricherLogger
public class SourceChangeLogger extends CvTermChangeLogger implements SourceChangeListener
This listener will just log Source change events- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SourceChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onPostalAddressUpdate(Source cv, String oldPostalAddress)
Listen to the event where the postal address of a source has been changed.void
onPublicationUpdate(Source cv, Publication oldPublication)
Listen to the event where the publication of a source has been changed.void
onUrlUpdate(Source cv, String oldUrl)
Listen to the event where the URL of a source has been changed.-
Methods inherited from class psidev.psi.mi.jami.listener.impl.CvTermChangeLogger
onAddedAlias, onAddedAnnotation, onAddedIdentifier, onAddedXref, onFullNameUpdate, onMIIdentifierUpdate, onMODIdentifierUpdate, onPARIdentifierUpdate, onRemovedAlias, onRemovedAnnotation, onRemovedIdentifier, onRemovedXref, onShortNameUpdate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.listener.AliasesChangeListener
onAddedAlias, onRemovedAlias
-
Methods inherited from interface psidev.psi.mi.jami.listener.AnnotationsChangeListener
onAddedAnnotation, onRemovedAnnotation
-
Methods inherited from interface psidev.psi.mi.jami.listener.CvTermChangeListener
onFullNameUpdate, onMIIdentifierUpdate, onMODIdentifierUpdate, onPARIdentifierUpdate, onShortNameUpdate
-
Methods inherited from interface psidev.psi.mi.jami.listener.IdentifiersChangeListener
onAddedIdentifier, onRemovedIdentifier
-
Methods inherited from interface psidev.psi.mi.jami.listener.XrefsChangeListener
onAddedXref, onRemovedXref
-
-
-
-
Method Detail
-
onUrlUpdate
public void onUrlUpdate(Source cv, String oldUrl)
Listen to the event where the URL of a source has been changed. If oldURL is null, it means that a url has been added to the source. If the URL of the source is null, it means that the URL of the source has been removed- Specified by:
onUrlUpdate
in interfaceSourceChangeListener
- Parameters:
cv
- aSource
object.oldUrl
- aString
object.
-
onPostalAddressUpdate
public void onPostalAddressUpdate(Source cv, String oldPostalAddress)
Listen to the event where the postal address of a source has been changed. If oldPostalAddress is null, it means that a postal address has been added to the source. If the postal address of the source is null, it means that the postal address of the source has been removed- Specified by:
onPostalAddressUpdate
in interfaceSourceChangeListener
- Parameters:
cv
- aSource
object.oldPostalAddress
- aString
object.
-
onPublicationUpdate
public void onPublicationUpdate(Source cv, Publication oldPublication)
Listen to the event where the publication of a source has been changed. If oldPublication is null, it means that a publication has been added to the source. If the publication of the source is null, it means that the publication of the source has been removed- Specified by:
onPublicationUpdate
in interfaceSourceChangeListener
- Parameters:
cv
- aSource
object.oldPublication
- aPublication
object.
-
-