Class CvTermChangeLogger

    • Constructor Detail

      • CvTermChangeLogger

        public CvTermChangeLogger()
    • Method Detail

      • onShortNameUpdate

        public void onShortNameUpdate​(CvTerm cv,
                                      String oldShortName)
        Listen to the event where the shortName of a cv term has been changed.
        Specified by:
        onShortNameUpdate in interface CvTermChangeListener
        Parameters:
        cv - : updated cv
        oldShortName - : old shortName
      • onFullNameUpdate

        public void onFullNameUpdate​(CvTerm cv,
                                     String oldFullName)
        Listen to the event where the fullName of a cv term has been changed. If oldFullName is null, it means that the fullName of the cv term has been initialised. If the current fullName of the cv term is null, it means that the fullName has been reset
        Specified by:
        onFullNameUpdate in interface CvTermChangeListener
        Parameters:
        cv - : updated cv
        oldFullName - : the old fullName
      • onMIIdentifierUpdate

        public void onMIIdentifierUpdate​(CvTerm cv,
                                         String oldMI)
        Listen to the event where the MI identifier of a cv term has been changed. If oldMI is null, it means that a MI identifier has been added to the cv term. If the MI of the cv term is null, it means that the MI identifier of the cv term has been removed
        Specified by:
        onMIIdentifierUpdate in interface CvTermChangeListener
        Parameters:
        cv - : updated cv
        oldMI - : the old MI
      • onMODIdentifierUpdate

        public void onMODIdentifierUpdate​(CvTerm cv,
                                          String oldMOD)
        Listen to the event where the MOD identifier of a cv term has been changed. If oldMOD is null, it means that a MOD identifier has been added to the cv term. If the MOD of the cv term is null, it means that the MOD identifier of the cv term has been removed
        Specified by:
        onMODIdentifierUpdate in interface CvTermChangeListener
        Parameters:
        cv - : updated cv
        oldMOD - : the old MOD
      • onPARIdentifierUpdate

        public void onPARIdentifierUpdate​(CvTerm cv,
                                          String oldPAR)
        Listen to the event where the PAR identifier of a cv term has been changed. If oldPAR is null, it means that a PAR identifier has been added to the cv term. If the PAR of the cv term is null, it means that the PAR identifier of the cv term has been removed
        Specified by:
        onPARIdentifierUpdate in interface CvTermChangeListener
        Parameters:
        cv - : updated cv
        oldPAR - : the old PAR
      • onAddedIdentifier

        public void onAddedIdentifier​(CvTerm cv,
                                      Xref added)
        Listen to the event where an identifier has been added to the protein identifiers.
        Specified by:
        onAddedIdentifier in interface IdentifiersChangeListener<CvTerm>
        Parameters:
        cv - The object which has changed.
        added - The added identifier
      • onRemovedIdentifier

        public void onRemovedIdentifier​(CvTerm cv,
                                        Xref removed)
        Listen to the event where an identifier has been removed from the protein identifiers.
        Specified by:
        onRemovedIdentifier in interface IdentifiersChangeListener<CvTerm>
        Parameters:
        cv - The object which has changed.
        removed - The removed identifier.
      • onAddedXref

        public void onAddedXref​(CvTerm cv,
                                Xref added)
        Listen to the event where a xref has been added to the protein xrefs.
        Specified by:
        onAddedXref in interface XrefsChangeListener<CvTerm>
        Parameters:
        cv - The object which has changed.
        added - The added Xref.
      • onRemovedXref

        public void onRemovedXref​(CvTerm cv,
                                  Xref removed)
        Listen to the event where a xref has been removed from the interactor xrefs.
        Specified by:
        onRemovedXref in interface XrefsChangeListener<CvTerm>
        Parameters:
        cv - The object which has changed.
        removed - The removed Xref.
      • onAddedAlias

        public void onAddedAlias​(CvTerm cv,
                                 Alias added)
        Listen to the event where an alias has been added to the object aliases.
        Specified by:
        onAddedAlias in interface AliasesChangeListener<CvTerm>
        Parameters:
        cv - The object which has changed.
        added - The added alias.
      • onRemovedAlias

        public void onRemovedAlias​(CvTerm cv,
                                   Alias removed)
        Listen to the event where an alias has been removed from the object aliases.
        Specified by:
        onRemovedAlias in interface AliasesChangeListener<CvTerm>
        Parameters:
        cv - The object which has changed.
        removed - The removed alias.
      • onAddedAnnotation

        public void onAddedAnnotation​(CvTerm cv,
                                      Annotation added)
        Listen to the event where an annotation has been added to the object annotations.
        Specified by:
        onAddedAnnotation in interface AnnotationsChangeListener<CvTerm>
        Parameters:
        cv - : the parent of this annotation
        added - : the added annotation
      • onRemovedAnnotation

        public void onRemovedAnnotation​(CvTerm cv,
                                        Annotation removed)
        Listen to the event where an annotation has been removed from the object annotations.
        Specified by:
        onRemovedAnnotation in interface AnnotationsChangeListener<CvTerm>
        Parameters:
        cv - : the parent of this annotation
        removed - : the removed annotation