Package io.jmix.reports.entity
Enum Class CustomTemplateDefinedBy
- All Implemented Interfaces:
EnumClass<Integer>,Serializable,Comparable<CustomTemplateDefinedBy>,Constable
public enum CustomTemplateDefinedBy
extends Enum<CustomTemplateDefinedBy>
implements EnumClass<Integer>
Determines how a custom report generation is defined and invoked.
Used by custom report templates.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCustom template renderer is defined by a class located on the classpath.Object implementingCustomReportprovided by the user.Custom template renderer is implemented as a Groovy script.Renderer is implemented as a remote HTTP service. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTemplateDefinedBygetId()static IntegergetId(CustomTemplateDefinedBy definedBy) static CustomTemplateDefinedByReturns the enum constant of this class with the specified name.static CustomTemplateDefinedBy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS
Custom template renderer is defined by a class located on the classpath. The class must implementCustomReport, and must have a zero-argument constructor. The class is lazily loaded, and its instance is created at the moment of report generation. -
SCRIPT
Custom template renderer is implemented as a Groovy script. -
URL
Renderer is implemented as a remote HTTP service. Calling the renderer is performed in two stages:- Groovy script is called to determine the URL, including query parameters
- command-line
curlutility is used to invoke the remote service
CURL-related properties are applicable here. -
DELEGATE
Object implementingCustomReportprovided by the user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
-
getId
-
fromId
-