Class JiraRendererModuleDescriptorImpl
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<JiraRendererPlugin>
com.atlassian.jira.plugin.renderer.JiraRendererModuleDescriptorImpl
- All Implemented Interfaces:
JiraResourcedModuleDescriptor<JiraRendererPlugin>
,JiraRendererModuleDescriptor
,com.atlassian.plugin.ModuleDescriptor<JiraRendererPlugin>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
public class JiraRendererModuleDescriptorImpl
extends AbstractJiraModuleDescriptor<JiraRendererPlugin>
implements JiraRendererModuleDescriptor
Descriptor that defines a JiraRendererModule.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
-
Constructor Summary
ConstructorsConstructorDescriptionJiraRendererModuleDescriptorImpl
(JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, com.atlassian.plugin.module.ModuleFactory moduleFactory, ModuleWebComponent moduleWebComponent, com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, IssueManager issueManager) -
Method Summary
Modifier and TypeMethodDescriptiongetCss()
getEditVM
(String value, String issueKey, String rendererType, String fieldId, String fieldName, Map params, boolean singleLine) This render an editable input field for the given values based on the edit template provided for the renderer.getJavaScript
(String contextPath) void
init
(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) boolean
boolean
boolean
Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, disabled, enabled, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtml
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.jira.plugin.JiraResourcedModuleDescriptor
getHtml, getHtml, getI18nBean, writeHtml
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocation
Methods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Field Details
-
TEMPLATE_NAME_CSS
- See Also:
-
TEMPLATE_NAME_JS
- See Also:
-
TEMPLATE_NAME_EDIT
- See Also:
-
WEB_PANELS_LOCATION
- See Also:
-
-
Constructor Details
-
JiraRendererModuleDescriptorImpl
public JiraRendererModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, com.atlassian.plugin.module.ModuleFactory moduleFactory, ModuleWebComponent moduleWebComponent, com.atlassian.plugin.web.api.DynamicWebInterfaceManager webInterfaceManager, IssueManager issueManager)
-
-
Method Details
-
init
public void init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException - Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<JiraRendererPlugin>
- Overrides:
init
in classAbstractJiraModuleDescriptor<JiraRendererPlugin>
- Throws:
com.atlassian.plugin.PluginParseException
-
getCss
- Specified by:
getCss
in interfaceJiraRendererModuleDescriptor
-
getJavaScript
- Specified by:
getJavaScript
in interfaceJiraRendererModuleDescriptor
-
getEditVM
public String getEditVM(String value, String issueKey, String rendererType, String fieldId, String fieldName, Map params, boolean singleLine) This render an editable input field for the given values based on the edit template provided for the renderer.- Specified by:
getEditVM
in interfaceJiraRendererModuleDescriptor
- Returns:
- the renderered html for the edit input
-
isCSSTemplateExists
public boolean isCSSTemplateExists()- Specified by:
isCSSTemplateExists
in interfaceJiraRendererModuleDescriptor
-
isJavaScriptTemplateExists
public boolean isJavaScriptTemplateExists()- Specified by:
isJavaScriptTemplateExists
in interfaceJiraRendererModuleDescriptor
-
isEditTemplateExists
public boolean isEditTemplateExists()- Specified by:
isEditTemplateExists
in interfaceJiraRendererModuleDescriptor
-