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 Summary
FieldsFields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources -
Constructor Summary
ConstructorsConstructorDescriptionIssueLinkRendererModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidenabled()booleangetFinalHtml(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.inthashCode()voidinit(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) booleanReturns true if the module descriptor is the default handler for issue links.protected voidvalidate(com.atlassian.plugin.module.Element element) Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, disabled, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtmlMethods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toStringMethods 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, getCompleteKey, getDescription, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, 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
-
XML_ELEMENT_NAME
- See Also:
-
INITIAL_VIEW_RESOURCE_NAME
- See Also:
-
FINAL_VIEW_RESOURCE_NAME
- See Also:
-
-
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:
initin interfacecom.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>- Overrides:
initin classAbstractJiraModuleDescriptor<IssueLinkRenderer>- Throws:
com.atlassian.plugin.PluginParseException
-
enabled
public void enabled()- Specified by:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classAbstractJiraModuleDescriptor<IssueLinkRenderer>
-
validate
protected void validate(com.atlassian.plugin.module.Element element) - Overrides:
validatein classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<IssueLinkRenderer>
-
isDefaultHandler
public boolean isDefaultHandler()Description copied from interface:IssueLinkRendererModuleDescriptorReturns true if the module descriptor is the default handler for issue links.- Specified by:
isDefaultHandlerin interfaceIssueLinkRendererModuleDescriptor- Returns:
- true if the module descriptor is the default handler for issue links
-
handlesApplicationType
Description copied from interface:IssueLinkRendererModuleDescriptorReturns 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:
handlesApplicationTypein interfaceIssueLinkRendererModuleDescriptor- Parameters:
applicationType- application type to handle- Returns:
- true if the module descriptor can handle the application type
-
getInitialHtml
Description copied from interface:IssueLinkRendererModuleDescriptorReturns 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:
getInitialHtmlin interfaceIssueLinkRendererModuleDescriptor- Parameters:
remoteIssueLink- remote issue link- Returns:
- initial HTML that goes between the relationship text and the delete icon
-
getFinalHtml
Description copied from interface:IssueLinkRendererModuleDescriptorReturns 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:
getFinalHtmlin interfaceIssueLinkRendererModuleDescriptor- Parameters:
remoteIssueLink- remote issue link- Returns:
- final HTML that goes between the relationship text and the delete icon
-
equals
- Specified by:
equalsin interfacecom.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>- Overrides:
equalsin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<IssueLinkRenderer>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.atlassian.plugin.ModuleDescriptor<IssueLinkRenderer>- Overrides:
hashCodein classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<IssueLinkRenderer>
-