Class FullCuratedPublicationUpdater
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<Publication>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalCuratedPublicationEnricher
-
- psidev.psi.mi.jami.enricher.impl.full.FullCuratedPublicationEnricher
-
- psidev.psi.mi.jami.enricher.impl.full.FullCuratedPublicationUpdater
-
- All Implemented Interfaces:
CuratedPublicationEnricher
,MIEnricher<Publication>
,PublicationEnricher
public class FullCuratedPublicationUpdater extends FullCuratedPublicationEnricher
Provides full update of Publication. - update full properties as described in FullPublicationUpdater - update released date. If the released date of the publication to enrich is different from the released date of the fetched publication, it will override the released date with the released date of the fetched publication - update curation depth. If the curation depth of the publication to enrich is different from the curation depth of the fetched publication, it will override the curation depth with the curation depth of the fetched publication- Since:
- 01/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Modifier Constructor Description FullCuratedPublicationUpdater(PublicationFetcher fetcher)
Constructor for FullCuratedPublicationUpdater.protected
FullCuratedPublicationUpdater(MinimalCuratedPublicationUpdater minimalPublicationUpdater)
Constructor for FullCuratedPublicationUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Publication
find(Publication publicationToEnrich)
find.protected MinimalCuratedPublicationUpdater
getMinimalPublicationUpdater()
Getter for the fieldminimalPublicationUpdater
.PublicationEnricherListener
getPublicationEnricherListener()
getPublicationEnricherListener.PublicationFetcher
getPublicationFetcher()
getPublicationFetcher.SourceEnricher
getSourceEnricher()
Getter for the fieldsourceEnricher
.protected void
processCurationDepth(Publication publicationToEnrich, Publication fetched)
processCurationDepth.void
processPublication(Publication publicationToEnrich, Publication fetchedPublication)
The strategy for the enrichment of the publication.protected void
processReleasedDate(Publication publicationToEnrich, Publication fetched)
processReleasedDate.void
setPublicationEnricherListener(PublicationEnricherListener listener)
setPublicationEnricherListener.void
setSourceEnricher(SourceEnricher cvTermEnricher)
setSourceEnricher.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.full.FullCuratedPublicationEnricher
processOtherProperties
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalCuratedPublicationEnricher
enrich, getDelegate, onEnrichedVersionNotFound, processSource
-
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
-
FullCuratedPublicationUpdater
public FullCuratedPublicationUpdater(PublicationFetcher fetcher)
Constructor for FullCuratedPublicationUpdater.
- Parameters:
fetcher
- aPublicationFetcher
object.
-
FullCuratedPublicationUpdater
protected FullCuratedPublicationUpdater(MinimalCuratedPublicationUpdater minimalPublicationUpdater)
Constructor for FullCuratedPublicationUpdater.
- Parameters:
minimalPublicationUpdater
- aMinimalCuratedPublicationUpdater
object.
-
-
Method Detail
-
processPublication
public void processPublication(Publication publicationToEnrich, Publication fetchedPublication) throws EnricherException
The strategy for the enrichment of the publication. This methods can be overwritten to change the behaviour of the enrichment.- Overrides:
processPublication
in classMinimalCuratedPublicationEnricher
- Parameters:
publicationToEnrich
- The publication which is being enriched.fetchedPublication
- aPublication
object.- Throws:
EnricherException
- if any.
-
processCurationDepth
protected void processCurationDepth(Publication publicationToEnrich, Publication fetched) throws EnricherException
processCurationDepth.
- Overrides:
processCurationDepth
in classFullCuratedPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processReleasedDate
protected void processReleasedDate(Publication publicationToEnrich, Publication fetched) throws EnricherException
processReleasedDate.
- Overrides:
processReleasedDate
in classFullCuratedPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
setSourceEnricher
public void setSourceEnricher(SourceEnricher cvTermEnricher)
setSourceEnricher.
- Specified by:
setSourceEnricher
in interfaceCuratedPublicationEnricher
- Overrides:
setSourceEnricher
in classMinimalCuratedPublicationEnricher
- Parameters:
cvTermEnricher
- aSourceEnricher
object.
-
setPublicationEnricherListener
public void setPublicationEnricherListener(PublicationEnricherListener listener)
setPublicationEnricherListener.
- Specified by:
setPublicationEnricherListener
in interfacePublicationEnricher
- Overrides:
setPublicationEnricherListener
in classMinimalCuratedPublicationEnricher
- Parameters:
listener
- aPublicationEnricherListener
object.
-
getPublicationFetcher
public PublicationFetcher getPublicationFetcher()
getPublicationFetcher.
- Specified by:
getPublicationFetcher
in interfacePublicationEnricher
- Overrides:
getPublicationFetcher
in classMinimalCuratedPublicationEnricher
- Returns:
- a
PublicationFetcher
object.
-
getSourceEnricher
public SourceEnricher getSourceEnricher()
Getter for the field
sourceEnricher
.- Specified by:
getSourceEnricher
in interfaceCuratedPublicationEnricher
- Overrides:
getSourceEnricher
in classMinimalCuratedPublicationEnricher
- Returns:
- a
SourceEnricher
object.
-
getPublicationEnricherListener
public PublicationEnricherListener getPublicationEnricherListener()
getPublicationEnricherListener.
- Specified by:
getPublicationEnricherListener
in interfacePublicationEnricher
- Overrides:
getPublicationEnricherListener
in classMinimalCuratedPublicationEnricher
- Returns:
- a
PublicationEnricherListener
object.
-
find
public Publication find(Publication publicationToEnrich) throws EnricherException
find.
- Overrides:
find
in classMinimalCuratedPublicationEnricher
- Parameters:
publicationToEnrich
- a T object.- Returns:
- a T object.
- Throws:
EnricherException
- if any.
-
getMinimalPublicationUpdater
protected MinimalCuratedPublicationUpdater getMinimalPublicationUpdater()
Getter for the field
minimalPublicationUpdater
.- Returns:
- a
MinimalCuratedPublicationUpdater
object.
-
-