Class ImexCentralPublicationRegisterImpl
- java.lang.Object
-
- psidev.psi.mi.jami.imex.actions.impl.ImexCentralPublicationRegisterImpl
-
- All Implemented Interfaces:
ImexCentralPublicationRegister
public class ImexCentralPublicationRegisterImpl extends Object implements ImexCentralPublicationRegister
This class can register a publication in IMEx central and collect a publication record in IMEx central using imex central webservice- Since:
28/03/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ImexCentralPublicationRegisterImpl(ImexCentralClient client)
Constructor for ImexCentralPublicationRegisterImpl.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
ImexCentralPublicationRegisterImpl
public ImexCentralPublicationRegisterImpl(ImexCentralClient client)
Constructor for ImexCentralPublicationRegisterImpl.
- Parameters:
client
- aImexCentralClient
object.
-
-
Method Detail
-
getExistingPublicationInImexCentral
public 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.- Specified by:
getExistingPublicationInImexCentral
in interfaceImexCentralPublicationRegister
- 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
public 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.- Specified by:
registerPublicationInImexCentral
in interfaceImexCentralPublicationRegister
- 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
public ImexCentralClient getImexCentralClient()
getImexCentralClient.
- Specified by:
getImexCentralClient
in interfaceImexCentralPublicationRegister
- Returns:
- a
ImexCentralClient
object.
-
-