Class ReportValidator
java.lang.Object
com.appiancorp.suiteapi.process.analytics2.ReportValidator
Validator for
ProcessReport
s. This is used to validate ProcessReport
s
(as far as is possible) before passing them through from the browser.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Report has column with no aggregation function.static final int
Report has no columns.static final int
Custom toolbar not specified.static final int
DrillPath has no type.static final int
SimpleColumnFilter has no constant value to compare against.static final int
Report has no name.static final int
Report has no viewable columns. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
validate
(ProcessReport report_, ServiceContext sc_) Validates a ProcessReport and returns an array of messages. for any errors found in the report.
-
Field Details
-
ERROR_NO_REPORT_NAME
public static final int ERROR_NO_REPORT_NAMEReport has no name. Used to produce a bundle key of "errors.code.1".- See Also:
-
ERROR_NO_COLUMN_AGGREGATION
public static final int ERROR_NO_COLUMN_AGGREGATIONReport has column with no aggregation function. Used to produce a bundle key of "errors.code.2".- See Also:
-
ERROR_NO_COLUMNS
public static final int ERROR_NO_COLUMNSReport has no columns. Used to produce a bundle key of "errors.code.3".- See Also:
-
ERROR_NO_VIEWABLE_COLUMNS
public static final int ERROR_NO_VIEWABLE_COLUMNSReport has no viewable columns. Used to produce a bundle key of "errors.code.4".- See Also:
-
ERROR_NO_FILTER_VALUE
public static final int ERROR_NO_FILTER_VALUESimpleColumnFilter has no constant value to compare against. Used to produce a bundle key of "errors.code.5".- See Also:
-
ERROR_NO_DRILL_PATH_TYPE
public static final int ERROR_NO_DRILL_PATH_TYPEDrillPath has no type. Used to produce a bundle key of "errors.code.6".- See Also:
-
ERROR_NO_CUSTOM_TOOLBAR_PATH
public static final int ERROR_NO_CUSTOM_TOOLBAR_PATHCustom toolbar not specified. Used to produce a bundle key of "errors.code.7".- See Also:
-
-
Constructor Details
-
ReportValidator
public ReportValidator()
-
-
Method Details
-
validate
Validates a ProcessReport and returns an array of messages. for any errors found in the report.- Parameters:
report_
- the ProcessReportsc_
- the ServiceContext- Returns:
- an array of error messages
-