Package com.carfey.ops.job.param
Annotation Type Parameter
-
@Target(ANNOTATION_TYPE) @Documented @Retention(RUNTIME) public @interface ParameterUsed to define parameters used by aSchedulableJobimplementation via theConfigurationannotation. Defined parameters will be collected and validated when a job configuration is saved or the job is executed.For customized validation, use
ConfigValidatingJob. To generate parameters dynamically, useConfigGeneratingJob.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowMultiplejava.lang.StringdefaultValuejava.lang.StringdescriptionA description of the parameter in the same vein asDescriptionthat will provide guidance in the user interface.java.lang.String[]listArgsIf specified with aListProvidervialistProvider(), this will act as the configuration for the provider.java.lang.Class<? extends ListProvider>listProviderUsed withlistArgs()booleanrequiredAtRuntimebooleanrequireUniqueSelectionTypetypejava.lang.String[]urlsIf specified, these values will be output as hyperlinks in the user interface.
-
-
-
-
type
Type type
- Returns:
- the type of the paramter which restricts valid values
- Default:
- com.carfey.ops.job.param.Type.STRING
-
-
-
listProvider
java.lang.Class<? extends ListProvider> listProvider
Used withlistArgs()- Returns:
- the
ListProviderimplementation used to enumerate valid values.
- Default:
- com.carfey.ops.job.param.StaticListProvider.class
-
-
-
listArgs
java.lang.String[] listArgs
If specified with aListProvidervialistProvider(), this will act as the configuration for the provider.If supplied without a list provider, this will be treated as a list of specific values that are valid for the parameter (via
StaticListProvider).- Returns:
- arguments passed into
ListProvider.getValidValues(java.util.List,boolean)for the configuredlistProvider()
- Default:
- {}
-
-
-
description
java.lang.String description
A description of the parameter in the same vein asDescriptionthat will provide guidance in the user interface.- Returns:
- The textual description to show in the UI.
- Since:
- 4.0.2
- Default:
- ""
-
-