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 voidprocessAuthors(Publication publicationToEnrich, Publication fetched)processAuthors.protected voidprocessIdentifiers(Publication publicationToEnrich, Publication fetched)processIdentifiers.protected voidprocessPublicationDate(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- aPublicationFetcherobject.
-
-
Method Detail
-
processPublicationDate
protected void processPublicationDate(Publication publicationToEnrich, Publication fetched) throws EnricherException
processPublicationDate.
- Overrides:
processPublicationDatein classMinimalPublicationEnricher- Parameters:
publicationToEnrich- aPublicationobject.fetched- aPublicationobject.- Throws:
EnricherException- if any.
-
processIdentifiers
protected void processIdentifiers(Publication publicationToEnrich, Publication fetched) throws EnricherException
processIdentifiers.
- Overrides:
processIdentifiersin classMinimalPublicationEnricher- Parameters:
publicationToEnrich- aPublicationobject.fetched- aPublicationobject.- Throws:
EnricherException- if any.
-
processAuthors
protected void processAuthors(Publication publicationToEnrich, Publication fetched) throws EnricherException
processAuthors.
- Overrides:
processAuthorsin classMinimalPublicationEnricher- Parameters:
publicationToEnrich- aPublicationobject.fetched- aPublicationobject.- Throws:
EnricherException- if any.
-
-