Package psidev.psi.mi.jami.imex.actions
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImexCentralClient
getImexCentralClient()
getImexCentralClient.boolean
isPublicationIdentifierInSyncWithImexCentral(String pubId, String source, ImexPublication imexPublication)
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 recordvoid
synchronizePublicationIdentifier(Publication publication, Publication imexPublication)
Update the IMEx record in case intact publication has a valid pubmed, unassigned or doi identifier that is not in IMEx central.
-
-
-
Field Detail
-
INTERNAL
static final String INTERNAL
ConstantINTERNAL="jint"
- See Also:
- Constant Field Values
-
-
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
- aString
object.imexPublication
- aImexPublication
object.source
- aString
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
- aPublication
object.imexPublication
- aPublication
object.- Throws:
EnricherException
- : if the pubmed/doi identifier is different from the one in IMEx centralBridgeFailedException
- : if record not found, idnetifier s not recognized or IMEx central is not responding
-
getImexCentralClient
ImexCentralClient getImexCentralClient()
getImexCentralClient.
- Returns:
- a
ImexCentralClient
object.
-
-