Package com.atlassian.jira.plugin
Class AbstractJiraModuleDescriptor<T>
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<T>
- Type Parameters:
T- The Plugin interface for this ModuleDescriptor.
- All Implemented Interfaces:
JiraResourcedModuleDescriptor<T>,com.atlassian.plugin.ModuleDescriptor<T>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware
- Direct Known Subclasses:
AbstractConfigurableModuleDescriptor,AbstractTabPanelModuleDescriptor,AbstractWorkflowModuleDescriptor,AnonymizationHandlerModuleDescriptor,AoImportHandlerModuleDescriptor,AoOverviewHandlerModuleDescriptor,AoPreImportHandlerModuleDescriptor,AttachmentProcessorModuleDescriptor,AttachmentValidatorModuleDescriptor,AuthorisationModuleDescriptor,AutoWatchOverrideModuleDescriptor,ContentLinkResolverDescriptor,CustomFieldSearcherModuleDescriptorImpl,CustomFieldTypeModuleDescriptorImpl,DataImportOSPropertyValidatorModuleDescriptor,DefaultEntityIndexExtractorModuleDescriptor,DefaultSimpleLinkFactoryModuleDescriptor,EntityPropertyConditionHelperModuleDescriptor,EntityPropertyIndexDocumentModuleDescriptorImpl,FieldTypeModuleDescriptor,FilterDeletionVerifierModuleDescriptor,FirstUseFlowModuleDescriptor,FooterModuleDescriptorImpl,GlobalPermissionModuleDescriptorImpl,IconTypeModuleDescriptor,IssueLinkRendererModuleDescriptorImpl,IssueTabPanelModuleDescriptorImpl,IssueViewModuleDescriptorImpl,JiraRendererModuleDescriptorImpl,JqlFunctionModuleDescriptorImpl,KeyboardShortcutModuleDescriptor,LanguageModuleDescriptorImpl,MacroModuleDescriptor,NotificationFilterModuleDescriptor,OfBizImportHandlerModuleDescriptor,OfBizPreImportHandlerModuleDescriptor,PasswordPolicyModuleDescriptor,PostImportHandlerModuleDescriptor,PreDeleteUserErrorsModuleDescriptor,PreImportHandlerModuleDescriptor,ProjectOperationModuleDescriptorImpl,ProjectPermissionModuleDescriptorImpl,ProjectPermissionOverrideModuleDescriptorImpl,ProjectRoleActorModuleDescriptor,RemoteLinkFilterDescriptor,RendererComponentDecoratorFactoryDescriptor,RendererComponentFactoryDescriptor,SearchRequestViewModuleDescriptorImpl,TopNavigationModuleDescriptorImpl,TranslationTransformModuleDescriptorImpl,UserFormatModuleDescriptorImpl,ValidatorModuleDescriptor,ViewProfilePanelModuleDescriptorImpl,WebworkModuleDescriptor
public abstract class AbstractJiraModuleDescriptor<T>
extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
implements JiraResourcedModuleDescriptor<T>
Base class for Jira Plugin ModuleDescriptors.
-
Field Summary
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJiraModuleDescriptor(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertResourceExists(String type, String name) protected TCreates an instance of the Module.createVelocityParams(Map<String, Object> startingParams) voiddisabled()voidenabled()protected JiraAuthenticationContextprotected ClassLoadergetName()Deprecated.Please use i18nBean.getText() instead.voidinit(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) protected booleanisResourceExist(String resourceName) voidMethods 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, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, 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
-
AbstractJiraModuleDescriptor
protected AbstractJiraModuleDescriptor(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 -
assertResourceExists
protected void assertResourceExists(String type, String name) throws com.atlassian.plugin.PluginParseException - Throws:
com.atlassian.plugin.PluginParseException
-
getHtml
- Specified by:
getHtmlin interfaceJiraResourcedModuleDescriptor<T>
-
getHtml
- Specified by:
getHtmlin interfaceJiraResourcedModuleDescriptor<T>
-
writeHtml
public void writeHtml(String resourceName, Map<String, ?> startingParams, Writer writer) throws IOException- Specified by:
writeHtmlin interfaceJiraResourcedModuleDescriptor<T>- Throws:
IOException
-
getModule
-
createModule
Creates an instance of the Module.This is called by the lazy load logic of getModule() and is suitable for overriding in subclasses if they want to customize how the Module class is instantiated.
- Returns:
- a new instance of the module.
-
getDescription
-
getName
-
getAuthenticationContext
-
getText
Deprecated.Please use i18nBean.getText() instead. Since 5.0- Parameters:
key- the property key- Returns:
- the translated text
-
getText
-
getI18nBean
- Specified by:
getI18nBeanin interfaceJiraResourcedModuleDescriptor<T>
-
createVelocityParams
-
isResourceExist
-
getClassLoader
-
enabled
public void enabled()- Specified by:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
-
disabled
public void disabled()- Specified by:
disabledin interfacecom.atlassian.plugin.StateAware- Overrides:
disabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
-