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 void
onAddedAlias(Organism organism, Alias added)
Listen to the event where an alias has been added to the object aliases.void
onCellTypeUpdate(Organism organism, CvTerm oldType)
Listen to the event where the cell type has been initialised.void
onCommonNameUpdate(Organism organism, String oldCommonName)
Listen to the event where the commonName of an organism has been changed.void
onCompartmentUpdate(Organism organism, CvTerm oldType)
Listen to the event where the organism compartment has been initialised.void
onRemovedAlias(Organism organism, Alias removed)
Listen to the event where an alias has been removed from the object aliases.void
onScientificNameUpdate(Organism organism, String oldScientificName)
Listen to the event where the scientificName of an organism has been changed.void
onTaxidUpdate(Organism organism, String oldTaxid)
Listen to the event where the taxid of an organism has been changed.void
onTissueUpdate(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:
onCommonNameUpdate
in 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:
onScientificNameUpdate
in 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:
onTaxidUpdate
in 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:
onCellTypeUpdate
in interfaceOrganismChangeListener
- Parameters:
organism
- The organism which has changed.oldType
- aCvTerm
object.
-
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:
onTissueUpdate
in interfaceOrganismChangeListener
- Parameters:
organism
- The organism which has changed.oldType
- aCvTerm
object.
-
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:
onCompartmentUpdate
in interfaceOrganismChangeListener
- Parameters:
organism
- The organism which has changed.oldType
- aCvTerm
object.
-
onAddedAlias
public void onAddedAlias(Organism organism, Alias added)
Listen to the event where an alias has been added to the object aliases.- Specified by:
onAddedAlias
in 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:
onRemovedAlias
in interfaceAliasesChangeListener<Organism>
- Parameters:
organism
- The object which has changed.removed
- The removed alias.
-
-