Class IssueLinkRendererModuleDescriptorImpl

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<IssueLinkRenderer>
com.atlassian.jira.plugin.issuelink.IssueLinkRendererModuleDescriptorImpl
All Implemented Interfaces:
IssueLinkRendererModuleDescriptor, JiraResourcedModuleDescriptor<IssueLinkRenderer>, com.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware

public class IssueLinkRendererModuleDescriptorImpl extends AbstractJiraModuleDescriptor<IssueLinkRenderer> implements IssueLinkRendererModuleDescriptor
Default implementation of an IssueLinkRendererModuleDescriptor.
Since:
v5.0
  • Field Details

  • Constructor Details

    • IssueLinkRendererModuleDescriptorImpl

      public IssueLinkRendererModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory)
  • 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 interface com.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>
      Overrides:
      init in class AbstractJiraModuleDescriptor<IssueLinkRenderer>
      Throws:
      com.atlassian.plugin.PluginParseException
    • enabled

      public void enabled()
      Specified by:
      enabled in interface com.atlassian.plugin.StateAware
      Overrides:
      enabled in class AbstractJiraModuleDescriptor<IssueLinkRenderer>
    • validate

      protected void validate(com.atlassian.plugin.module.Element element)
      Overrides:
      validate in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<IssueLinkRenderer>
    • isDefaultHandler

      public boolean isDefaultHandler()
      Description copied from interface: IssueLinkRendererModuleDescriptor
      Returns true if the module descriptor is the default handler for issue links.
      Specified by:
      isDefaultHandler in interface IssueLinkRendererModuleDescriptor
      Returns:
      true if the module descriptor is the default handler for issue links
    • handlesApplicationType

      public boolean handlesApplicationType(String applicationType)
      Description copied from interface: IssueLinkRendererModuleDescriptor
      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 (.
      Specified by:
      handlesApplicationType in interface IssueLinkRendererModuleDescriptor
      Parameters:
      applicationType - application type to handle
      Returns:
      true if the module descriptor can handle the application type
    • getInitialHtml

      public String getInitialHtml(RemoteIssueLink remoteIssueLink)
      Description copied from interface: IssueLinkRendererModuleDescriptor
      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.
      Specified by:
      getInitialHtml in interface IssueLinkRendererModuleDescriptor
      Parameters:
      remoteIssueLink - remote issue link
      Returns:
      initial HTML that goes between the relationship text and the delete icon
    • getFinalHtml

      public String getFinalHtml(RemoteIssueLink remoteIssueLink)
      Description copied from interface: IssueLinkRendererModuleDescriptor
      Returns the final HTML to place between the relationship text and the delete icon. Remote calls may be made to construct the final HTML.
      Specified by:
      getFinalHtml in interface IssueLinkRendererModuleDescriptor
      Parameters:
      remoteIssueLink - remote issue link
      Returns:
      final HTML that goes between the relationship text and the delete icon
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>
      Overrides:
      equals in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<IssueLinkRenderer>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>
      Overrides:
      hashCode in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<IssueLinkRenderer>