Interface IssueLinkRendererModuleDescriptor
- All Superinterfaces:
JiraResourcedModuleDescriptor<IssueLinkRenderer>,com.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware
- All Known Implementing Classes:
IssueLinkRendererModuleDescriptorImpl
public interface IssueLinkRendererModuleDescriptor
extends JiraResourcedModuleDescriptor<IssueLinkRenderer>
Module descriptor for an issue link renderer that customises the way issue links are rendered.
- Since:
- v5.0
-
Method Summary
Modifier and TypeMethodDescriptiongetFinalHtml(RemoteIssueLink remoteIssueLink) Returns the final HTML to place between the relationship text and the delete icon.getInitialHtml(RemoteIssueLink remoteIssueLink) Returns the initial HTML to place between the relationship text and the delete icon.booleanhandlesApplicationType(String applicationType) Returns true if the module descriptor can handle the application type.booleanReturns true if the module descriptor is the default handler for issue links.Methods 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, init, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBrokenMethods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocationMethods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Method Details
-
isDefaultHandler
boolean isDefaultHandler()Returns true if the module descriptor is the default handler for issue links.- Returns:
- true if the module descriptor is the default handler for issue links
-
handlesApplicationType
Returns true if the module descriptor can handle the application type. Only one module descriptor should be capable of handling an application type. If there are more than one modules that can handle an application type, only the first module (in loading order) will be used. If no descriptors handle an application type, then the default issue link renderer module descriptor is used (.- Parameters:
applicationType- application type to handle- Returns:
- true if the module descriptor can handle the application type
-
getInitialHtml
Returns the initial HTML to place between the relationship text and the delete icon. No remote calls should be made to construct the initial HTML.- Parameters:
remoteIssueLink- remote issue link- Returns:
- initial HTML that goes between the relationship text and the delete icon
-
getFinalHtml
Returns the final HTML to place between the relationship text and the delete icon. Remote calls may be made to construct the final HTML.- Parameters:
remoteIssueLink- remote issue link- Returns:
- final HTML that goes between the relationship text and the delete icon
-