Package com.levelaccess.continuum
Enum AMPReportingService.ReportManagementStrategy
java.lang.Object
java.lang.Enum<AMPReportingService.ReportManagementStrategy>
com.levelaccess.continuum.AMPReportingService.ReportManagementStrategy
- All Implemented Interfaces:
Serializable
,Comparable<AMPReportingService.ReportManagementStrategy>
,java.lang.constant.Constable
- Enclosing class:
- AMPReportingService
public static enum AMPReportingService.ReportManagementStrategy
extends Enum<AMPReportingService.ReportManagementStrategy>
Defines supported strategies with which to create new reports and edit existing ones.
Choosing the correct report management strategy to meet your business objectives is critical to using Continuum's AMP reporting functionality correctly, so please consult our support documentation for more information.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAppend any new modules to a report, creating the report first if it doesn't already exist; do not overwrite any existing reports.Overwrite existing reports when a report with the same ID or name already exists, deleting any existing modules in the report in AMP prior to repopulating it with any new modules.Always create new reports, guaranteeing uniqueness by appending the current date and time as an ISO 8601 timestamp to the end of each report's name; do not overwrite or append modules to any existing reports. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
APPEND
Append any new modules to a report, creating the report first if it doesn't already exist; do not overwrite any existing reports. Useful for intentionally adding to an existing report, e.g. one that was just created recently, rather than creating a new report. -
OVERWRITE
Overwrite existing reports when a report with the same ID or name already exists, deleting any existing modules in the report in AMP prior to repopulating it with any new modules. This is the recommended strategy for a more manual report generation workflow, e.g. when a developer is creating new reports from their own workstation, or when there is otherwise little reason to retain old reports. While using this report management strategy, make sure to specify active modules by name (viaAMPReportingService.setActiveModule(String, String)
) rather than by ID (viaAMPReportingService.setActiveModule(Integer)
); any modules in the active report (including the active module, assuming it's in the active report) will be deleted from AMP next timeAMPReportingService.submitAccessibilityConcernsToAMP(List)
is invoked, making the active module ID invalid before any test results can be submitted to the module in AMP it used to reference, which will cause Continuum to throw aNotFoundException
. -
UNIQUE
Always create new reports, guaranteeing uniqueness by appending the current date and time as an ISO 8601 timestamp to the end of each report's name; do not overwrite or append modules to any existing reports. This is the recommended strategy for a continuous integration (CI) workflow, i.e. for a report generation process that's automatically performed periodically, or when you otherwise don't wish to overwrite any previous reports for record keeping purposes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-