Class DefaultSimpleLinkFactoryModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<SimpleLinkFactory>
com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<SimpleLinkFactory>
com.atlassian.jira.plugin.webfragment.descriptors.DefaultSimpleLinkFactoryModuleDescriptor
- All Implemented Interfaces:
JiraResourcedModuleDescriptor<SimpleLinkFactory>,SimpleLinkFactoryModuleDescriptor,com.atlassian.plugin.ModuleDescriptor<SimpleLinkFactory>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware,com.atlassian.plugin.web.api.descriptors.WeightedDescriptor
public class DefaultSimpleLinkFactoryModuleDescriptor
extends AbstractJiraModuleDescriptor<SimpleLinkFactory>
implements SimpleLinkFactoryModuleDescriptor
Plugin in Module descriptor that defines a
SimpleLinkFactory. This is
used by the SimpleLinkManager to display a list of simple links. The
special attributes for this are: lazy - whether the section should be loaded lazily, weight - the position to include
the generated list, and section - the section that the generated links go into.- Since:
- v4.0
-
Field Summary
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSimpleLinkFactoryModuleDescriptor(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionThe section that this list will be inserted into.intvoidinit(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) booleanWhether or not this should be lazily loaded.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, 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.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
-
Constructor Details
-
DefaultSimpleLinkFactoryModuleDescriptor
public DefaultSimpleLinkFactoryModuleDescriptor(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<SimpleLinkFactory>- Overrides:
initin classAbstractJiraModuleDescriptor<SimpleLinkFactory>- Throws:
com.atlassian.plugin.PluginParseException
-
shouldBeLazy
public boolean shouldBeLazy()Description copied from interface:SimpleLinkFactoryModuleDescriptorWhether or not this should be lazily loaded. This should be true if the list is expensive. Note that this can be ignored if the list does not support lazily loaded links.- Specified by:
shouldBeLazyin interfaceSimpleLinkFactoryModuleDescriptor- Returns:
- true if the list is expensive to generate and should be loaded lazily if possible, false otherwise.
-
getWeight
public int getWeight()- Specified by:
getWeightin interfacecom.atlassian.plugin.web.api.descriptors.WeightedDescriptor
-
getSection
Description copied from interface:SimpleLinkFactoryModuleDescriptorThe section that this list will be inserted into. This usually refers to aWebSectionModuleDescriptorlocation + "/" + key.This should never return null.
- Specified by:
getSectionin interfaceSimpleLinkFactoryModuleDescriptor- Returns:
- The section that this list will be inserted into.
-