|
@@ -10,9 +10,6 @@ import org.apache.logging.log4j.Logger;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import scot.carricksoftware.grantswriter.domains.people.Person;
|
|
|
import scot.carricksoftware.grantswriter.writer.latex.LatexSubSectionHeader;
|
|
|
-import scot.carricksoftware.grantswriter.writer.latex.parts.people.subsections.helpers.ClearExistingTimeLineData;
|
|
|
-import scot.carricksoftware.grantswriter.writer.latex.parts.people.subsections.helpers.GatherTimeLineData;
|
|
|
-import scot.carricksoftware.grantswriter.writer.latex.parts.people.subsections.helpers.WriteReferences;
|
|
|
import scot.carricksoftware.grantswriter.writer.latex.parts.people.subsections.helpers.WriteTimeLine;
|
|
|
|
|
|
@Component
|
|
@@ -22,21 +19,12 @@ public class PersonSubSectionTimeLineWriterImpl implements PersonSubSectionTimeL
|
|
|
|
|
|
private final LatexSubSectionHeader latexSubSectionHeader;
|
|
|
private final WriteTimeLine writeTimeLine;
|
|
|
- private final WriteReferences writeReferences;
|
|
|
- private final ClearExistingTimeLineData clearExistingTimeLineData;
|
|
|
- private final GatherTimeLineData gatherTimeLineData;
|
|
|
-
|
|
|
- public PersonSubSectionTimeLineWriterImpl(LatexSubSectionHeader latexSubSectionHeader,
|
|
|
- WriteTimeLine writeTimeLine,
|
|
|
- WriteReferences writeReferences,
|
|
|
- ClearExistingTimeLineData clearExistingTimeLineData,
|
|
|
- GatherTimeLineData gatherTimeLineData) {
|
|
|
|
|
|
+ public PersonSubSectionTimeLineWriterImpl(
|
|
|
+ LatexSubSectionHeader latexSubSectionHeader,
|
|
|
+ WriteTimeLine writeTimeLine) {
|
|
|
this.latexSubSectionHeader = latexSubSectionHeader;
|
|
|
this.writeTimeLine = writeTimeLine;
|
|
|
- this.writeReferences = writeReferences;
|
|
|
- this.clearExistingTimeLineData = clearExistingTimeLineData;
|
|
|
- this.gatherTimeLineData = gatherTimeLineData;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -44,11 +32,7 @@ public class PersonSubSectionTimeLineWriterImpl implements PersonSubSectionTimeL
|
|
|
logger.info("PersonSubSectionTimeLineWriterImp::write");
|
|
|
|
|
|
latexSubSectionHeader.write("Timeline");
|
|
|
- clearExistingTimeLineData.clear();
|
|
|
- gatherTimeLineData.gather();
|
|
|
-
|
|
|
writeTimeLine.write();
|
|
|
- writeReferences.write();
|
|
|
}
|
|
|
|
|
|
|