Interface PublicationIdentifierSynchronizer

  • All Known Implementing Classes:
    PublicationIdentifierSynchronizerImpl

    public interface PublicationIdentifierSynchronizer
    Interface for synchronizing publication identifiers with IMEx central
    Since:
    29/03/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Method Detail

      • isPublicationIdentifierInSyncWithImexCentral

        boolean isPublicationIdentifierInSyncWithImexCentral​(String pubId,
                                                             String source,
                                                             ImexPublication imexPublication)
                                                      throws BridgeFailedException
        It will look at all identifiers attached to the record in IMEx central and see if the publication identifier is also attached to the IMEx record
        Parameters:
        pubId - a String object.
        imexPublication - a ImexPublication object.
        source - a String object.
        Returns:
        true if the publication identifier is in IMEx central, false otherwise
        Throws:
        BridgeFailedException - if any.
      • synchronizePublicationIdentifier

        void synchronizePublicationIdentifier​(Publication publication,
                                              Publication imexPublication)
                                       throws EnricherException,
                                              BridgeFailedException
        Update the IMEx record in case intact publication has a valid pubmed, unassigned or doi identifier that is not in IMEx central. It will not update the publication and it is possible that it will not update the IMEx record if the pubmed or doi identifier is different in IMEx central. The publication record in IMEx central should have a valid IMEx id.
        Parameters:
        publication - a Publication object.
        imexPublication - a Publication object.
        Throws:
        EnricherException - : if the pubmed/doi identifier is different from the one in IMEx central
        BridgeFailedException - : if record not found, idnetifier s not recognized or IMEx central is not responding