Class PublicationAdminGroupSynchronizerImpl
- java.lang.Object
-
- psidev.psi.mi.jami.imex.actions.impl.PublicationAdminGroupSynchronizerImpl
-
- All Implemented Interfaces:
PublicationAdminGroupSynchronizer
public class PublicationAdminGroupSynchronizerImpl extends Object implements PublicationAdminGroupSynchronizer
This class is for synchronizing the admin group of a publication in imex central- Since:
28/03/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description PublicationAdminGroupSynchronizerImpl(ImexCentralClient client)
Constructor for PublicationAdminGroupSynchronizerImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
containsAdminGroup(List<Source> adminGroupList, Source group)
containsAdminGroup.ImexCentralClient
getImexCentralClient()
getImexCentralClient.protected Source
getImexPublicationOwnerGroup(List<Source> adminGroupList, Set<String> imexPartners)
checks any of the sources is a imex partner.void
synchronizePublicationAdminGroup(Publication publication, ImexPublication imexPublication)
Update IMEx central and synchronize the publication ADMIN group.
-
-
-
Constructor Detail
-
PublicationAdminGroupSynchronizerImpl
public PublicationAdminGroupSynchronizerImpl(ImexCentralClient client)
Constructor for PublicationAdminGroupSynchronizerImpl.
- Parameters:
client
- aImexCentralClient
object.
-
-
Method Detail
-
synchronizePublicationAdminGroup
public void synchronizePublicationAdminGroup(Publication publication, ImexPublication imexPublication) throws BridgeFailedException
Update IMEx central and synchronize the publication ADMIN group. It can only be applied on publications having a valid pubmed identifier, doi number, jint identifier or IMEx identifier. it will add the institution. admin group- Specified by:
synchronizePublicationAdminGroup
in interfacePublicationAdminGroupSynchronizer
- Parameters:
publication
- aPublication
object.imexPublication
- aImexPublication
object.- Throws:
BridgeFailedException
- if does not have a valid ADMIn group and if IMEx central is not available or the publication id is not recognized
-
containsAdminGroup
protected boolean containsAdminGroup(List<Source> adminGroupList, Source group)
containsAdminGroup.
-
getImexPublicationOwnerGroup
protected Source getImexPublicationOwnerGroup(List<Source> adminGroupList, Set<String> imexPartners)
checks any of the sources is a imex partner.
-
getImexCentralClient
public ImexCentralClient getImexCentralClient()
getImexCentralClient.
- Specified by:
getImexCentralClient
in interfacePublicationAdminGroupSynchronizer
- Returns:
- a
ImexCentralClient
object.
-
-