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 void
onAddedAnnotation(T interaction, Annotation added)
Listen to the event where an annotation has been added to the object annotations.void
onAddedChecksum(T interaction, Checksum added)
Listen to the event where a checksum has been added to the interactor checksums.void
onAddedIdentifier(T interaction, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.void
onAddedParticipant(T interaction, Participant addedParticipant)
onAddedParticipantvoid
onAddedXref(T interaction, Xref added)
Listen to the event where a xref has been added to the protein xrefs.void
onCreatedDateUpdate(T interaction, Date oldCreated)
onCreatedDateUpdatevoid
onInteractionTypeUpdate(T interaction, CvTerm old)
onInteractionTypeUpdatevoid
onRemovedAnnotation(T interaction, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.void
onRemovedChecksum(T interaction, Checksum removed)
Listen to the event where a checksum has been removed from the interactor checksums.void
onRemovedIdentifier(T interaction, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.void
onRemovedParticipant(T interaction, Participant removedParticipant)
onRemovedParticipantvoid
onRemovedXref(T interaction, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.void
onShortNameUpdate(T interaction, String oldShortName)
onShortNameUpdatevoid
onUpdatedDateUpdate(T interaction, Date oldUpdate)
onUpdatedDateUpdate
-
-
-
Method Detail
-
onShortNameUpdate
public void onShortNameUpdate(T interaction, String oldShortName)
onShortNameUpdate
- Specified by:
onShortNameUpdate
in interfaceInteractionChangeListener<T extends Interaction>
- Parameters:
interaction
- : the updated interactionoldShortName
- : old name
-
onUpdatedDateUpdate
public void onUpdatedDateUpdate(T interaction, Date oldUpdate)
onUpdatedDateUpdate
- Specified by:
onUpdatedDateUpdate
in interfaceInteractionChangeListener<T extends Interaction>
- Parameters:
interaction
- : the updated interactionoldUpdate
- : old updated date
-
onCreatedDateUpdate
public void onCreatedDateUpdate(T interaction, Date oldCreated)
onCreatedDateUpdate
- Specified by:
onCreatedDateUpdate
in interfaceInteractionChangeListener<T extends Interaction>
- Parameters:
interaction
- : the updated interactionoldCreated
- : old created date
-
onInteractionTypeUpdate
public void onInteractionTypeUpdate(T interaction, CvTerm old)
onInteractionTypeUpdate
- Specified by:
onInteractionTypeUpdate
in interfaceInteractionChangeListener<T extends Interaction>
- Parameters:
interaction
- : the updated interactionold
- : old type
-
onAddedParticipant
public void onAddedParticipant(T interaction, Participant addedParticipant)
onAddedParticipant
- Specified by:
onAddedParticipant
in interfaceInteractionChangeListener<T extends Interaction>
- Parameters:
interaction
- : the updated interactionaddedParticipant
- : added participant
-
onRemovedParticipant
public void onRemovedParticipant(T interaction, Participant removedParticipant)
onRemovedParticipant
- Specified by:
onRemovedParticipant
in 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:
onAddedIdentifier
in 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:
onRemovedIdentifier
in 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:
onAddedXref
in 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:
onRemovedXref
in 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:
onAddedChecksum
in 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:
onRemovedChecksum
in 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:
onAddedAnnotation
in 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:
onRemovedAnnotation
in interfaceAnnotationsChangeListener<T extends Interaction>
- Parameters:
interaction
- : the parent of this annotationremoved
- : the removed annotation
-
-