Package psidev.psi.mi.jami.listener.impl
Class OrganismChangeLogger
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.OrganismChangeLogger
-
- All Implemented Interfaces:
EventListener,AliasesChangeListener<Organism>,OrganismChangeListener
- Direct Known Subclasses:
OrganismEnricherLogger
public class OrganismChangeLogger extends Object implements OrganismChangeListener
This listener will just log organism change events- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description OrganismChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAddedAlias(Organism organism, Alias added)Listen to the event where an alias has been added to the object aliases.voidonCellTypeUpdate(Organism organism, CvTerm oldType)Listen to the event where the cell type has been initialised.voidonCommonNameUpdate(Organism organism, String oldCommonName)Listen to the event where the commonName of an organism has been changed.voidonCompartmentUpdate(Organism organism, CvTerm oldType)Listen to the event where the organism compartment has been initialised.voidonRemovedAlias(Organism organism, Alias removed)Listen to the event where an alias has been removed from the object aliases.voidonScientificNameUpdate(Organism organism, String oldScientificName)Listen to the event where the scientificName of an organism has been changed.voidonTaxidUpdate(Organism organism, String oldTaxid)Listen to the event where the taxid of an organism has been changed.voidonTissueUpdate(Organism organism, CvTerm oldType)Listen to the event where the organism tissue has been initialised.
-
-
-
Method Detail
-
onCommonNameUpdate
public void onCommonNameUpdate(Organism organism, String oldCommonName)
Listen to the event where the commonName of an organism has been changed.- Specified by:
onCommonNameUpdatein interfaceOrganismChangeListener- Parameters:
organism- : updated organismoldCommonName- : old common name
-
onScientificNameUpdate
public void onScientificNameUpdate(Organism organism, String oldScientificName)
Listen to the event where the scientificName of an organism has been changed. If oldScientificName is null, it means that the scientificName of the organism has been initialised. If the current scientificName of the organism is null, it means that the scientificName has been reset- Specified by:
onScientificNameUpdatein interfaceOrganismChangeListener- Parameters:
organism- : updated organismoldScientificName- : old scientific name
-
onTaxidUpdate
public void onTaxidUpdate(Organism organism, String oldTaxid)
Listen to the event where the taxid of an organism has been changed.- Specified by:
onTaxidUpdatein interfaceOrganismChangeListener- Parameters:
organism- : updated organismoldTaxid- : old taxid
-
onCellTypeUpdate
public void onCellTypeUpdate(Organism organism, CvTerm oldType)
Listen to the event where the cell type has been initialised. This event happens when an organism has a new cell type- Specified by:
onCellTypeUpdatein interfaceOrganismChangeListener- Parameters:
organism- The organism which has changed.oldType- aCvTermobject.
-
onTissueUpdate
public void onTissueUpdate(Organism organism, CvTerm oldType)
Listen to the event where the organism tissue has been initialised. This event happens when a organism has a new tissue- Specified by:
onTissueUpdatein interfaceOrganismChangeListener- Parameters:
organism- The organism which has changed.oldType- aCvTermobject.
-
onCompartmentUpdate
public void onCompartmentUpdate(Organism organism, CvTerm oldType)
Listen to the event where the organism compartment has been initialised. This event happens when a organism has a new compartment- Specified by:
onCompartmentUpdatein interfaceOrganismChangeListener- Parameters:
organism- The organism which has changed.oldType- aCvTermobject.
-
onAddedAlias
public void onAddedAlias(Organism organism, Alias added)
Listen to the event where an alias has been added to the object aliases.- Specified by:
onAddedAliasin interfaceAliasesChangeListener<Organism>- Parameters:
organism- The object which has changed.added- The added alias.
-
onRemovedAlias
public void onRemovedAlias(Organism organism, Alias removed)
Listen to the event where an alias has been removed from the object aliases.- Specified by:
onRemovedAliasin interfaceAliasesChangeListener<Organism>- Parameters:
organism- The object which has changed.removed- The removed alias.
-
-