Package psidev.psi.mi.jami.imex.actions
Interface ImexCentralPublicationRegister
-
- All Known Implementing Classes:
ImexCentralPublicationRegisterImpl
public interface ImexCentralPublicationRegister
Interface for registering a publication in IMEx central and collect a publication record in 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 Publication
getExistingPublicationInImexCentral(String publicationId, String source)
Retrieve an existing record in IMEx central matching the publication identifier (pubmed, doi, jint or imex).ImexCentralClient
getImexCentralClient()
getImexCentralClient.Publication
registerPublicationInImexCentral(Publication publication)
Register a publication in IMEx central which is not existing in IMEx central.
-
-
-
Method Detail
-
getExistingPublicationInImexCentral
Publication getExistingPublicationInImexCentral(String publicationId, String source) throws BridgeFailedException
Retrieve an existing record in IMEx central matching the publication identifier (pubmed, doi, jint or imex). Returns null if we cannot find a record in IMEx central for this publication identifier.- Parameters:
publicationId
- aString
object.source
- aString
object.- Returns:
- a
Publication
object. - Throws:
BridgeFailedException
- if it is not possible to retrieve any publications with this identifier
-
registerPublicationInImexCentral
Publication registerPublicationInImexCentral(Publication publication) throws BridgeFailedException
Register a publication in IMEx central which is not existing in IMEx central. Can only register publications having valid pubmed id imex ids or doi numbers.- Parameters:
publication
- aPublication
object.- Returns:
- the record in IMEx central which have been created, Null if it could not create a record in IMEx central
- Throws:
BridgeFailedException
- if it is not possible to create a new record for this publication (may already exists, publication identifier not recognized, etc.)
-
getImexCentralClient
ImexCentralClient getImexCentralClient()
getImexCentralClient.
- Returns:
- a
ImexCentralClient
object.
-
-