Class AMPReportingService

java.lang.Object
com.levelaccess.continuum.AMPReportingService

public class AMPReportingService extends Object
This class encapsulates all functionality for submitting accessibility concerns identified using Continuum to AMP. Reporting test results from Continuum to AMP is accomplished through a kind of state machine, where you set the active AMP instance, organization, asset, report, and module to use; once these are set, they remain set for as long as they're not set again and for as long as Continuum is initialized. Depending on the report and module management strategies you decide to use (see AMPReportingService.ReportManagementStrategy and AMPReportingService.ModuleManagementStrategy, respectively), invoking submitAccessibilityConcernsToAMP(List) will first create, overwrite, and/or delete reports and modules from AMP, then publish your test results to the active AMP module. You can set the active report and module management strategies using setActiveReportManagementStrategy(ReportManagementStrategy) and setActiveModuleManagementStrategy(ModuleManagementStrategy), respectively. Only once all of these active items are set should you invoke submitAccessibilityConcernsToAMP(List) using the list of accessibility concerns you'd like to report. More on report and module management strategies: they are designed with two primary use cases in mind: continuous integration (CI) workflows (where you usually want to retain the results of previously published reports), and more manual workflows (e.g. when Continuum is run from a developer's local workstation, where you usually don't want to retain the results of previously published reports). Choosing the correct report and module management strategies to meet your business objectives is critical to using Continuum's AMP reporting functionality correctly, so please consult our support documentation for more information.