Class MinimalPublicationUpdater
- 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.minimal.MinimalPublicationUpdater
-
- All Implemented Interfaces:
MIEnricher<Publication>
,PublicationEnricher
public class MinimalPublicationUpdater extends MinimalPublicationEnricher
Provides minimal update of Publication. - enrich source of a publication if the sourceEnricher is not null. If the source of the publication to enrich is different from the source of the fetched publication (see DefaultCvTermComparator), it will override the source with the source of the fetched publication - enrich identifiers (pubmed, doi, etc.) of a publication. It will use DefaultXrefComparator to compare identifiers and add missing identifiers. It will also remove identifiers that are not in the fetched publication - enrich authors of a publication. It will add all missing authors. It will also remove authors that are not in the fetched publication - enrich publication date. If the publication date of the publication to enrich is different from the publication date of the fetched publication, it will override the publication date with the publication date of the fetched publication It will ignore all other properties of a publication- Since:
- 01/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MinimalPublicationUpdater(PublicationFetcher fetcher)
Constructor for MinimalPublicationUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
processAuthors(Publication publicationToEnrich, Publication fetched)
processAuthors.protected void
processIdentifiers(Publication publicationToEnrich, Publication fetched)
processIdentifiers.protected void
processPublicationDate(Publication publicationToEnrich, Publication fetched)
processPublicationDate.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalPublicationEnricher
enrich, find, getPublicationEnricherListener, getPublicationFetcher, getRetryCount, onEnrichedVersionNotFound, processOtherProperties, 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
-
MinimalPublicationUpdater
public MinimalPublicationUpdater(PublicationFetcher fetcher)
Constructor for MinimalPublicationUpdater.
- Parameters:
fetcher
- aPublicationFetcher
object.
-
-
Method Detail
-
processPublicationDate
protected void processPublicationDate(Publication publicationToEnrich, Publication fetched) throws EnricherException
processPublicationDate.
- Overrides:
processPublicationDate
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processIdentifiers
protected void processIdentifiers(Publication publicationToEnrich, Publication fetched) throws EnricherException
processIdentifiers.
- Overrides:
processIdentifiers
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processAuthors
protected void processAuthors(Publication publicationToEnrich, Publication fetched) throws EnricherException
processAuthors.
- Overrides:
processAuthors
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
-