Package psidev.psi.mi.jami.imex
Class ImexPublicationAssigner
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<Publication>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalPublicationEnricher
-
- psidev.psi.mi.jami.enricher.impl.full.FullPublicationEnricher
-
- psidev.psi.mi.jami.imex.ImexPublicationAssigner
-
- All Implemented Interfaces:
MIEnricher<Publication>
,PublicationEnricher
public class ImexPublicationAssigner extends FullPublicationEnricher
This enricher will update a publication having IMEx id and synchronize it with IMEx central- Since:
29/10/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ImexPublicationAssigner(ImexCentralClient fetcher)
Constructor for ImexPublicationAssigner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImexPublication
find(Publication publicationToEnrich)
find.ImexAssigner
getImexAssigner()
Getter for the fieldimexAssigner
.ImexCentralPublicationRegister
getPublicationRegister()
Getter for the fieldpublicationRegister
.ImexPublicationUpdater
getPublicationUpdater()
Getter for the fieldpublicationUpdater
.protected boolean
isEntitledToAssignImexId(Publication publicationToEnrich, ImexPublication imexPublication)
isEntitledToAssignImexId.protected void
processAnnotations(Publication publicationToEnrich, Publication fetched)
processAnnotations.protected void
processAuthors(Publication publicationToEnrich, Publication fetched)
processAuthors.protected void
processCurationDepth(Publication publicationToEnrich, Publication fetched)
processCurationDepth.protected void
processIdentifiers(Publication publicationToEnrich, Publication fetched)
processIdentifiers.protected void
processJournal(Publication publicationToEnrich, Publication fetched)
processJournal.protected void
processPublicationDate(Publication publicationToEnrich, Publication fetched)
processPublicationDate.protected void
processPublicationTitle(Publication publicationToEnrich, Publication fetched)
processPublicationTitle.protected void
processReleasedDate(Publication publicationToEnrich, Publication fetched)
processReleasedDate.protected void
processXrefs(Publication publicationToEnrich, Publication fetched)
processXrefs.void
setImexAssigner(ImexAssigner imexAssigner)
Setter for the fieldimexAssigner
.void
setPublicationRegister(ImexCentralPublicationRegister publicationRegister)
Setter for the fieldpublicationRegister
.void
setPublicationUpdater(ImexPublicationUpdater publicationUpdater)
Setter for the fieldpublicationUpdater
.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.full.FullPublicationEnricher
processOtherProperties
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalPublicationEnricher
enrich, getPublicationEnricherListener, getPublicationFetcher, getRetryCount, onEnrichedVersionNotFound, processPublication, setPublicationEnricherListener, setRetryCount
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher
enrich, enrich
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.enricher.MIEnricher
enrich, enrich
-
-
-
-
Constructor Detail
-
ImexPublicationAssigner
public ImexPublicationAssigner(ImexCentralClient fetcher)
Constructor for ImexPublicationAssigner.
- Parameters:
fetcher
- aImexCentralClient
object.
-
-
Method Detail
-
processCurationDepth
protected void processCurationDepth(Publication publicationToEnrich, Publication fetched)
processCurationDepth.
- Overrides:
processCurationDepth
in classFullPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processReleasedDate
protected void processReleasedDate(Publication publicationToEnrich, Publication fetched)
processReleasedDate.
- Overrides:
processReleasedDate
in classFullPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processXrefs
protected void processXrefs(Publication publicationToEnrich, Publication fetched)
processXrefs.
- Overrides:
processXrefs
in classFullPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processAnnotations
protected void processAnnotations(Publication publicationToEnrich, Publication fetched)
processAnnotations.
- Overrides:
processAnnotations
in classFullPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processJournal
protected void processJournal(Publication publicationToEnrich, Publication fetched)
processJournal.
- Overrides:
processJournal
in classFullPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processPublicationTitle
protected void processPublicationTitle(Publication publicationToEnrich, Publication fetched)
processPublicationTitle.
- Overrides:
processPublicationTitle
in classFullPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processPublicationDate
protected void processPublicationDate(Publication publicationToEnrich, Publication fetched)
processPublicationDate.
- Overrides:
processPublicationDate
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processAuthors
protected void processAuthors(Publication publicationToEnrich, Publication fetched)
processAuthors.
- Overrides:
processAuthors
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
processIdentifiers
protected void processIdentifiers(Publication publicationToEnrich, Publication fetched)
processIdentifiers.
- Overrides:
processIdentifiers
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.
-
find
public ImexPublication find(Publication publicationToEnrich) throws EnricherException
find.
- Overrides:
find
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- a T object.- Returns:
- a T object.
- Throws:
EnricherException
- if any.
-
isEntitledToAssignImexId
protected boolean isEntitledToAssignImexId(Publication publicationToEnrich, ImexPublication imexPublication) throws EnricherException
isEntitledToAssignImexId.
- Parameters:
publicationToEnrich
- aPublication
object.imexPublication
- aImexPublication
object.- Returns:
- a boolean.
- Throws:
EnricherException
- if any.
-
getImexAssigner
public ImexAssigner getImexAssigner()
Getter for the field
imexAssigner
.- Returns:
- a
ImexAssigner
object.
-
setImexAssigner
public void setImexAssigner(ImexAssigner imexAssigner)
Setter for the field
imexAssigner
.- Parameters:
imexAssigner
- aImexAssigner
object.
-
getPublicationRegister
public ImexCentralPublicationRegister getPublicationRegister()
Getter for the field
publicationRegister
.- Returns:
- a
ImexCentralPublicationRegister
object.
-
setPublicationRegister
public void setPublicationRegister(ImexCentralPublicationRegister publicationRegister)
Setter for the field
publicationRegister
.- Parameters:
publicationRegister
- aImexCentralPublicationRegister
object.
-
getPublicationUpdater
public ImexPublicationUpdater getPublicationUpdater()
Getter for the field
publicationUpdater
.- Returns:
- a
ImexPublicationUpdater
object.
-
setPublicationUpdater
public void setPublicationUpdater(ImexPublicationUpdater publicationUpdater)
Setter for the field
publicationUpdater
.- Parameters:
publicationUpdater
- aImexPublicationUpdater
object.
-
-