Class JiraRendererModuleDescriptorImpl
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<JiraRendererPlugin>
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 Stringstatic final Stringstatic final Stringstatic final StringFields 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) voidinit(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) booleanbooleanbooleanMethods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, disabled, enabled, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtmlMethods 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, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.jira.plugin.JiraResourcedModuleDescriptor
getHtml, getHtml, getI18nBean, writeHtmlMethods 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, setBrokenMethods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocationMethods 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:
initin interfacecom.atlassian.plugin.ModuleDescriptor<JiraRendererPlugin>- Overrides:
initin classAbstractJiraModuleDescriptor<JiraRendererPlugin>- Throws:
com.atlassian.plugin.PluginParseException
-
getCss
- Specified by:
getCssin interfaceJiraRendererModuleDescriptor
-
getJavaScript
- Specified by:
getJavaScriptin 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:
getEditVMin interfaceJiraRendererModuleDescriptor- Returns:
- the renderered html for the edit input
-
isCSSTemplateExists
public boolean isCSSTemplateExists()- Specified by:
isCSSTemplateExistsin interfaceJiraRendererModuleDescriptor
-
isJavaScriptTemplateExists
public boolean isJavaScriptTemplateExists()- Specified by:
isJavaScriptTemplateExistsin interfaceJiraRendererModuleDescriptor
-
isEditTemplateExists
public boolean isEditTemplateExists()- Specified by:
isEditTemplateExistsin interfaceJiraRendererModuleDescriptor
-