Class PublicationStatusSynchronizerImpl
- java.lang.Object
-
- psidev.psi.mi.jami.imex.actions.impl.PublicationStatusSynchronizerImpl
-
- All Implemented Interfaces:
PublicationStatusSynchronizer
public class PublicationStatusSynchronizerImpl extends Object implements PublicationStatusSynchronizer
It updates and synchronize the publications status if it is released (has a released date)- Since:
28/03/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description PublicationStatusSynchronizerImpl(ImexCentralClient client)
Constructor for PublicationStatusSynchronizerImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
discardPublicationInImexCentral(Publication publication, ImexPublication imexPublication)
Synchronize publication status with IMEx central and update the IMEx central record if necessary.ImexCentralClient
getImexCentralClient()
getImexCentralClient.PublicationStatus
getPublicationStatus(Publication publication)
getPublicationStatus.void
synchronizePublicationStatusWithImexCentral(Publication publication, ImexPublication imexPublication)
Synchronize publication status with IMEx central and update the IMEx central record if necessary.
-
-
-
Constructor Detail
-
PublicationStatusSynchronizerImpl
public PublicationStatusSynchronizerImpl(ImexCentralClient client)
Constructor for PublicationStatusSynchronizerImpl.
- Parameters:
client
- aImexCentralClient
object.
-
-
Method Detail
-
synchronizePublicationStatusWithImexCentral
public void synchronizePublicationStatusWithImexCentral(Publication publication, ImexPublication imexPublication) throws BridgeFailedException
Synchronize publication status with IMEx central and update the IMEx central record if necessary.- Specified by:
synchronizePublicationStatusWithImexCentral
in interfacePublicationStatusSynchronizer
- Parameters:
publication
- aPublication
object.imexPublication
- aImexPublication
object.- Throws:
BridgeFailedException
- if any.
-
getPublicationStatus
public PublicationStatus getPublicationStatus(Publication publication)
getPublicationStatus.
- Specified by:
getPublicationStatus
in interfacePublicationStatusSynchronizer
- Parameters:
publication
- aPublication
object.- Returns:
- the imex central publication status that is matching the status of the publication
-
discardPublicationInImexCentral
public void discardPublicationInImexCentral(Publication publication, ImexPublication imexPublication) throws BridgeFailedException
Synchronize publication status with IMEx central and update the IMEx central record if necessary.- Specified by:
discardPublicationInImexCentral
in interfacePublicationStatusSynchronizer
- Parameters:
publication
- aPublication
object.imexPublication
- aImexPublication
object.- Throws:
BridgeFailedException
- is status not recognized or no records could be found or IMEx central is not responding
-
getImexCentralClient
public ImexCentralClient getImexCentralClient()
getImexCentralClient.
- Specified by:
getImexCentralClient
in interfacePublicationStatusSynchronizer
- Returns:
- a
ImexCentralClient
object.
-
-