Enum Class ModuleDefinition
- All Implemented Interfaces:
Serializable,Comparable<ModuleDefinition>,Constable
Contains all the module definitions that can be dynamically loaded by the ModuleLoader based on the ModuleContext.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ModuleDefinition>Returns an List containing the module definitions applicable for the given PluginModuleContext.Returns a list of ModuleDefinition that are dependencies this module relies on being loaded before it can be loaded successfully.Returns the file name of the file that contains the module's xml contribution to the plugin's atlassian-plugin.xml file.booleanChecks if the module is applicable for the given context.static ModuleDefinitionReturns the enum constant of this class with the specified name.static ModuleDefinition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WEB_RESOURCES
-
GADGETS
-
RESOURCE_CHOOSE_LANGUAGE_SEQUENCE
-
PROJECT_TEMPLATES
-
SIDEBAR_INTEGRATION
-
MAU_EVENT_TRACKING
-
AGILE_REPORTS
-
DASHBOARD_ITEMS
-
ONBOARDING
-
PROJECT_IMPORT
-
KEYBOARD_SHORTCUTS
-
DEMO_DATA
-
DATA_IMPORT_VALIDATORS
-
DEV_MODE
-
-
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
-
getDefinitionsForContext
Returns an List containing the module definitions applicable for the given PluginModuleContext. The order of the definitions in the list is based on the order they should be loaded and takes dependencies into account.- Parameters:
ctx-- Returns:
-
getFileName
Returns the file name of the file that contains the module's xml contribution to the plugin's atlassian-plugin.xml file. This file must be in the same folder as atlassian-plugin.xml- Returns:
- A file name.
-
getDependencies
Returns a list of ModuleDefinition that are dependencies this module relies on being loaded before it can be loaded successfully.- Returns:
-
isApplicable
Checks if the module is applicable for the given context.- Parameters:
ctx-- Returns:
-