public class ReportManager
extends java.lang.Object
Constructor and Description |
---|
ReportManager() |
Modifier and Type | Method and Description |
---|---|
static void |
applyAllReportFilters(long surveyId)
Calculates the report filters from scratch for all respondents for all reports, for the survey.
|
static void |
applyReportFilters(Report report,
long surveyId)
Calculates the report filters from scratch for all respondents, for the survey.
|
static Report |
createCommentReport(long surveyId,
java.lang.String reportName,
java.lang.String heading) |
static QuestionCondition |
createDropdownQuestionCondition(java.lang.String conditionName,
java.lang.String optionValue)
Creates a condition for a dropdown question.
|
static ReportFilter |
createReportFilter(java.lang.String filterName,
int filterType,
int lastNDays)
Creates filtered reports for the interviewer.
|
static Report |
getReport(long reportId)
Gets the report by id.
|
static void |
updateFiltersExist(long surveyId)
Updates the filters.
|
static void |
updateReport(Report report)
Updates the report.
|
public static Report getReport(long reportId) throws SurveySystemException
reportId
- Report idSurveySecurityException
- Thrown if the user has no permission to fulfill the
operationSurveySystemException
public static void applyReportFilters(Report report, long surveyId) throws SurveySystemException
report
- The reportsurveyId
- The survey idSurveySystemException
public static void applyAllReportFilters(long surveyId) throws SurveySystemException, SurveySecurityException
report
- surveyProxy
- SurveySecurityException
- Thrown if the user has no permission to fulfill the operationSurveySystemException
- If an error occurs in the applicationcom.objectplanet.survey.exception.SurveySystemException
public static Report createCommentReport(long surveyId, java.lang.String reportName, java.lang.String heading)
public static void updateFiltersExist(long surveyId) throws SurveySystemException
SurveySystemException
public static void updateReport(Report report) throws SurveySecurityException, SurveySystemException
com.objectplanet.survey.business.SurveySecurityException
com.objectplanet.survey.persistence.PersistenceException
SurveySecurityException
SurveySystemException
public static ReportFilter createReportFilter(java.lang.String filterName, int filterType, int lastNDays)
public static QuestionCondition createDropdownQuestionCondition(java.lang.String conditionName, java.lang.String optionValue)
conditionName
- The name of the conditionoptionValue
- The option valueBuilt on September 5 2019