use of com.thoughtworks.go.domain.StageAsDMR in project gocd by gocd.
the class LocalDependencyMaterialSourceDao method getPassedStagesAfter.
public List<Modification> getPassedStagesAfter(final String lastRevision, DependencyMaterial material, Pagination pagination) {
StageIdentifier identifier = new StageIdentifier(lastRevision);
List<StageAsDMR> passedStagesAfter = stageDao.getPassedStagesAfter(identifier, pagination.getPageSize(), pagination.getOffset());
List<Modification> mods = new ArrayList<>();
for (StageAsDMR stage : passedStagesAfter) {
StageIdentifier stageIdentifier = stage.getIdentifier();
Modification modification = new Modification(stage.getCompletedDate(), stageIdentifier.stageLocator(), stageIdentifier.getPipelineLabel(), stage.getPipelineId());
mods.add(modification);
}
return mods;
}
Aggregations