Package ubic.gemma.core.analysis.service
Class ExpressionMetadataChangelogFileServiceImpl
- java.lang.Object
-
- ubic.gemma.core.analysis.service.ExpressionMetadataChangelogFileServiceImpl
-
- All Implemented Interfaces:
ExpressionMetadataChangelogFileService
@Service public class ExpressionMetadataChangelogFileServiceImpl extends Object implements ExpressionMetadataChangelogFileService
-
-
Constructor Summary
Constructors Constructor Description ExpressionMetadataChangelogFileServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangelogEntry(ExpressionExperiment expressionExperiment, String changelogEntry)
void
addChangelogEntry(ExpressionExperiment expressionExperiment, String changelogEntry, LocalDate date)
Add a changelog entry to the changelog file of the given experiment.String
readChangelog(ExpressionExperiment expressionExperiment)
Read the content of the changelog file of the given experiment.
-
-
-
Method Detail
-
readChangelog
public String readChangelog(ExpressionExperiment expressionExperiment) throws IOException
Description copied from interface:ExpressionMetadataChangelogFileService
Read the content of the changelog file of the given experiment.If no changelog file is found, an empty string is returned.
- Specified by:
readChangelog
in interfaceExpressionMetadataChangelogFileService
- Throws:
IOException
-
addChangelogEntry
public void addChangelogEntry(ExpressionExperiment expressionExperiment, String changelogEntry) throws IOException
- Specified by:
addChangelogEntry
in interfaceExpressionMetadataChangelogFileService
- Throws:
IOException
- See Also:
ExpressionMetadataChangelogFileService.addChangelogEntry(ExpressionExperiment, String, LocalDate)
-
addChangelogEntry
public void addChangelogEntry(ExpressionExperiment expressionExperiment, String changelogEntry, LocalDate date) throws IOException
Description copied from interface:ExpressionMetadataChangelogFileService
Add a changelog entry to the changelog file of the given experiment.- Specified by:
addChangelogEntry
in interfaceExpressionMetadataChangelogFileService
- Parameters:
expressionExperiment
- the experiment to add the entry tochangelogEntry
- the content of the entry, the date and author are automatically addeddate
- the date of the entry. This is a local date because the changelog format does not include a timezone.- Throws:
IOException
-
-