Package psidev.psi.mi.jami.listener.impl
Class InteractionChangeLogger<T extends Interaction>
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.InteractionChangeLogger<T>
-
- All Implemented Interfaces:
EventListener,AnnotationsChangeListener<T>,ChecksumsChangeListener<T>,IdentifiersChangeListener<T>,InteractionChangeListener<T>,XrefsChangeListener<T>
- Direct Known Subclasses:
InteractionEnricherLogger,InteractionEvidenceChangeLogger,ModelledInteractionChangeLogger
public class InteractionChangeLogger<T extends Interaction> extends Object implements InteractionChangeListener<T>
This listener will just interaction change events- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description InteractionChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAddedAnnotation(T interaction, Annotation added)Listen to the event where an annotation has been added to the object annotations.voidonAddedChecksum(T interaction, Checksum added)Listen to the event where a checksum has been added to the interactor checksums.voidonAddedIdentifier(T interaction, Xref added)Listen to the event where an identifier has been added to the protein identifiers.voidonAddedParticipant(T interaction, Participant addedParticipant)onAddedParticipantvoidonAddedXref(T interaction, Xref added)Listen to the event where a xref has been added to the protein xrefs.voidonCreatedDateUpdate(T interaction, Date oldCreated)onCreatedDateUpdatevoidonInteractionTypeUpdate(T interaction, CvTerm old)onInteractionTypeUpdatevoidonRemovedAnnotation(T interaction, Annotation removed)Listen to the event where an annotation has been removed from the object annotations.voidonRemovedChecksum(T interaction, Checksum removed)Listen to the event where a checksum has been removed from the interactor checksums.voidonRemovedIdentifier(T interaction, Xref removed)Listen to the event where an identifier has been removed from the protein identifiers.voidonRemovedParticipant(T interaction, Participant removedParticipant)onRemovedParticipantvoidonRemovedXref(T interaction, Xref removed)Listen to the event where a xref has been removed from the interactor xrefs.voidonShortNameUpdate(T interaction, String oldShortName)onShortNameUpdatevoidonUpdatedDateUpdate(T interaction, Date oldUpdate)onUpdatedDateUpdate
-
-
-
Method Detail
-
onShortNameUpdate
public void onShortNameUpdate(T interaction, String oldShortName)
onShortNameUpdate
- Specified by:
onShortNameUpdatein interfaceInteractionChangeListener<T extends Interaction>- Parameters:
interaction- : the updated interactionoldShortName- : old name
-
onUpdatedDateUpdate
public void onUpdatedDateUpdate(T interaction, Date oldUpdate)
onUpdatedDateUpdate
- Specified by:
onUpdatedDateUpdatein interfaceInteractionChangeListener<T extends Interaction>- Parameters:
interaction- : the updated interactionoldUpdate- : old updated date
-
onCreatedDateUpdate
public void onCreatedDateUpdate(T interaction, Date oldCreated)
onCreatedDateUpdate
- Specified by:
onCreatedDateUpdatein interfaceInteractionChangeListener<T extends Interaction>- Parameters:
interaction- : the updated interactionoldCreated- : old created date
-
onInteractionTypeUpdate
public void onInteractionTypeUpdate(T interaction, CvTerm old)
onInteractionTypeUpdate
- Specified by:
onInteractionTypeUpdatein interfaceInteractionChangeListener<T extends Interaction>- Parameters:
interaction- : the updated interactionold- : old type
-
onAddedParticipant
public void onAddedParticipant(T interaction, Participant addedParticipant)
onAddedParticipant
- Specified by:
onAddedParticipantin interfaceInteractionChangeListener<T extends Interaction>- Parameters:
interaction- : the updated interactionaddedParticipant- : added participant
-
onRemovedParticipant
public void onRemovedParticipant(T interaction, Participant removedParticipant)
onRemovedParticipant
- Specified by:
onRemovedParticipantin interfaceInteractionChangeListener<T extends Interaction>- Parameters:
interaction- : the updated interactionremovedParticipant- : removed participant
-
onAddedIdentifier
public void onAddedIdentifier(T interaction, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.- Specified by:
onAddedIdentifierin interfaceIdentifiersChangeListener<T extends Interaction>- Parameters:
interaction- The object which has changed.added- The added identifier
-
onRemovedIdentifier
public void onRemovedIdentifier(T interaction, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.- Specified by:
onRemovedIdentifierin interfaceIdentifiersChangeListener<T extends Interaction>- Parameters:
interaction- The object which has changed.removed- The removed identifier.
-
onAddedXref
public void onAddedXref(T interaction, Xref added)
Listen to the event where a xref has been added to the protein xrefs.- Specified by:
onAddedXrefin interfaceXrefsChangeListener<T extends Interaction>- Parameters:
interaction- The object which has changed.added- The added Xref.
-
onRemovedXref
public void onRemovedXref(T interaction, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.- Specified by:
onRemovedXrefin interfaceXrefsChangeListener<T extends Interaction>- Parameters:
interaction- The object which has changed.removed- The removed Xref.
-
onAddedChecksum
public void onAddedChecksum(T interaction, Checksum added)
Listen to the event where a checksum has been added to the interactor checksums.- Specified by:
onAddedChecksumin interfaceChecksumsChangeListener<T extends Interaction>- Parameters:
interaction- The interactor which has changed.added- The added checksum.
-
onRemovedChecksum
public void onRemovedChecksum(T interaction, Checksum removed)
Listen to the event where a checksum has been removed from the interactor checksums.- Specified by:
onRemovedChecksumin interfaceChecksumsChangeListener<T extends Interaction>- Parameters:
interaction- The interactor which has changed.removed- The removed checksum.
-
onAddedAnnotation
public void onAddedAnnotation(T interaction, Annotation added)
Listen to the event where an annotation has been added to the object annotations.- Specified by:
onAddedAnnotationin interfaceAnnotationsChangeListener<T extends Interaction>- Parameters:
interaction- : the parent of this annotationadded- : the added annotation
-
onRemovedAnnotation
public void onRemovedAnnotation(T interaction, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.- Specified by:
onRemovedAnnotationin interfaceAnnotationsChangeListener<T extends Interaction>- Parameters:
interaction- : the parent of this annotationremoved- : the removed annotation
-
-