Package psidev.psi.mi.jami.listener.impl
Class PublicationChangeLogger
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.PublicationChangeLogger
-
- All Implemented Interfaces:
EventListener
,AnnotationsChangeListener<Publication>
,IdentifiersChangeListener<Publication>
,PublicationChangeListener
,XrefsChangeListener<Publication>
- Direct Known Subclasses:
PublicationEnricherLogger
public class PublicationChangeLogger extends Object implements PublicationChangeListener
This listener will listen to publication change events- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description PublicationChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAddedAnnotation(Publication publication, Annotation added)
Listen to the event where an annotation has been added to the object annotations.void
onAddedIdentifier(Publication publication, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.void
onAddedXref(Publication publication, Xref added)
Listen to the event where a xref has been added to the protein xrefs.void
onAuthorAdded(Publication publication, String addedAuthor)
onAuthorAddedvoid
onAuthorRemoved(Publication publication, String removedAuthor)
onAuthorRemovedvoid
onCurationDepthUpdate(Publication publication, CurationDepth oldDepth)
onCurationDepthUpdatevoid
onDoiUpdate(Publication publication, String oldId)
onDoiUpdatevoid
onImexIdentifierUpdate(Publication publication, Xref oldId)
onImexIdentifierUpdatevoid
onJournalUpdated(Publication publication, String oldJournal)
onJournalUpdatedvoid
onPublicationDateUpdated(Publication publication, Date oldDate)
onPublicationDateUpdatedvoid
onPubmedIdUpdate(Publication publication, String oldId)
onPubmedIdUpdatevoid
onReleaseDateUpdated(Publication publication, Date oldDate)
onReleaseDateUpdatedvoid
onRemovedAnnotation(Publication publication, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.void
onRemovedIdentifier(Publication publication, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.void
onRemovedXref(Publication publication, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.void
onSourceUpdated(Publication publication, Source oldSource)
onSourceUpdatedvoid
onTitleUpdated(Publication publication, String oldTitle)
onTitleUpdated
-
-
-
Method Detail
-
onPubmedIdUpdate
public void onPubmedIdUpdate(Publication publication, String oldId)
onPubmedIdUpdate
- Specified by:
onPubmedIdUpdate
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldId
- : old pubmed
-
onDoiUpdate
public void onDoiUpdate(Publication publication, String oldId)
onDoiUpdate
- Specified by:
onDoiUpdate
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldId
- : old doi
-
onImexIdentifierUpdate
public void onImexIdentifierUpdate(Publication publication, Xref oldId)
onImexIdentifierUpdate
- Specified by:
onImexIdentifierUpdate
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldId
- : added xref
-
onTitleUpdated
public void onTitleUpdated(Publication publication, String oldTitle)
onTitleUpdated
- Specified by:
onTitleUpdated
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldTitle
- : old title
-
onJournalUpdated
public void onJournalUpdated(Publication publication, String oldJournal)
onJournalUpdated
- Specified by:
onJournalUpdated
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldJournal
- : old journal
-
onCurationDepthUpdate
public void onCurationDepthUpdate(Publication publication, CurationDepth oldDepth)
onCurationDepthUpdate
- Specified by:
onCurationDepthUpdate
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldDepth
- : old depth
-
onPublicationDateUpdated
public void onPublicationDateUpdated(Publication publication, Date oldDate)
onPublicationDateUpdated
- Specified by:
onPublicationDateUpdated
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldDate
- : old date
-
onAuthorAdded
public void onAuthorAdded(Publication publication, String addedAuthor)
onAuthorAdded
- Specified by:
onAuthorAdded
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationaddedAuthor
- : added author
-
onAuthorRemoved
public void onAuthorRemoved(Publication publication, String removedAuthor)
onAuthorRemoved
- Specified by:
onAuthorRemoved
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationremovedAuthor
- : removed author
-
onReleaseDateUpdated
public void onReleaseDateUpdated(Publication publication, Date oldDate)
onReleaseDateUpdated
- Specified by:
onReleaseDateUpdated
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldDate
- : old release date
-
onSourceUpdated
public void onSourceUpdated(Publication publication, Source oldSource)
onSourceUpdated
- Specified by:
onSourceUpdated
in interfacePublicationChangeListener
- Parameters:
publication
- : updated publicationoldSource
- : old source
-
onAddedIdentifier
public void onAddedIdentifier(Publication publication, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.- Specified by:
onAddedIdentifier
in interfaceIdentifiersChangeListener<Publication>
- Parameters:
publication
- The object which has changed.added
- The added identifier
-
onRemovedIdentifier
public void onRemovedIdentifier(Publication publication, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.- Specified by:
onRemovedIdentifier
in interfaceIdentifiersChangeListener<Publication>
- Parameters:
publication
- The object which has changed.removed
- The removed identifier.
-
onAddedXref
public void onAddedXref(Publication publication, Xref added)
Listen to the event where a xref has been added to the protein xrefs.- Specified by:
onAddedXref
in interfaceXrefsChangeListener<Publication>
- Parameters:
publication
- The object which has changed.added
- The added Xref.
-
onRemovedXref
public void onRemovedXref(Publication publication, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.- Specified by:
onRemovedXref
in interfaceXrefsChangeListener<Publication>
- Parameters:
publication
- The object which has changed.removed
- The removed Xref.
-
onAddedAnnotation
public void onAddedAnnotation(Publication publication, Annotation added)
Listen to the event where an annotation has been added to the object annotations.- Specified by:
onAddedAnnotation
in interfaceAnnotationsChangeListener<Publication>
- Parameters:
publication
- : the parent of this annotationadded
- : the added annotation
-
onRemovedAnnotation
public void onRemovedAnnotation(Publication publication, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.- Specified by:
onRemovedAnnotation
in interfaceAnnotationsChangeListener<Publication>
- Parameters:
publication
- : the parent of this annotationremoved
- : the removed annotation
-
-