@Service public class DefaultSurveyReportGenerator extends Object implements ISurveyReportGenerator
| Constructor and Description |
|---|
DefaultSurveyReportGenerator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(SurveyDTO survey)
ISurveyReportGenerator instances are responsible for knowing the
surveys for which they are supposed to generate reports. |
org.springframework.web.servlet.ModelAndView |
generateReport(SurveyDTO survey,
ResponseDTO response) |
int |
getPriority()
Used to decide which
ISurveyReportGenerator instances take
precedence over others. |
public int getPriority()
ISurveyReportGeneratorISurveyReportGenerator instances take
precedence over others. Lower priority values trump higher values. The
first ISurveyReportGenerator that claims a report wins.getPriority in interface ISurveyReportGeneratorpublic boolean appliesTo(SurveyDTO survey)
ISurveyReportGeneratorISurveyReportGenerator instances are responsible for knowing the
surveys for which they are supposed to generate reports. There is a
DefaultSurveyReportGenerator that will prepare a report if no
other generator claims the survey.appliesTo in interface ISurveyReportGeneratorpublic org.springframework.web.servlet.ModelAndView generateReport(SurveyDTO survey, ResponseDTO response)
generateReport in interface ISurveyReportGeneratorCopyright © 2016 Jasig. All rights reserved.