Class ReportValidator

java.lang.Object
com.appiancorp.suiteapi.process.analytics2.ReportValidator

public class ReportValidator extends Object
Validator for ProcessReports. This is used to validate ProcessReports (as far as is possible) before passing them through from the browser.
  • Field Details

    • ERROR_NO_REPORT_NAME

      public static final int ERROR_NO_REPORT_NAME
      Report 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_AGGREGATION
      Report 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_COLUMNS
      Report 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_COLUMNS
      Report 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_VALUE
      SimpleColumnFilter 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_TYPE
      DrillPath 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_PATH
      Custom toolbar not specified. Used to produce a bundle key of "errors.code.7".
      See Also:
  • Constructor Details

    • ReportValidator

      public ReportValidator()
  • Method Details

    • validate

      public static String[] validate(ProcessReport report_, ServiceContext sc_)
      Validates a ProcessReport and returns an array of messages. for any errors found in the report.
      Parameters:
      report_ - the ProcessReport
      sc_ - the ServiceContext
      Returns:
      an array of error messages