Class OrganismChangeLogger

    • Constructor Detail

      • OrganismChangeLogger

        public OrganismChangeLogger()
    • 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 interface OrganismChangeListener
        Parameters:
        organism - : updated organism
        oldCommonName - : 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 interface OrganismChangeListener
        Parameters:
        organism - : updated organism
        oldScientificName - : 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 interface OrganismChangeListener
        Parameters:
        organism - : updated organism
        oldTaxid - : 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 interface OrganismChangeListener
        Parameters:
        organism - The organism which has changed.
        oldType - a CvTerm 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 interface OrganismChangeListener
        Parameters:
        organism - The organism which has changed.
        oldType - a CvTerm 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 interface OrganismChangeListener
        Parameters:
        organism - The organism which has changed.
        oldType - a CvTerm 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 interface AliasesChangeListener<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 interface AliasesChangeListener<Organism>
        Parameters:
        organism - The object which has changed.
        removed - The removed alias.