Package com.atlassian.jira.plugin.report
Class ReportModuleDescriptorImpl
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<T>
com.atlassian.jira.plugin.AbstractConfigurableModuleDescriptor<Report>
com.atlassian.jira.plugin.report.ReportModuleDescriptorImpl
- All Implemented Interfaces:
ConfigurableModuleDescriptor
,JiraResourcedModuleDescriptor<Report>
,ReportModuleDescriptor
,com.atlassian.plugin.ModuleDescriptor<Report>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
,com.atlassian.plugin.web.api.descriptors.ConditionalDescriptor
,com.atlassian.plugin.web.api.descriptors.WeightedDescriptor
,com.atlassian.plugin.web.descriptors.ConditionalDescriptor
public class ReportModuleDescriptorImpl
extends AbstractConfigurableModuleDescriptor<Report>
implements ReportModuleDescriptor, com.atlassian.plugin.web.descriptors.ConditionalDescriptor
The report plugin allows end users to write pluggable reports for JIRA.
- See Also:
-
Field Summary
FieldsFields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
-
Constructor Summary
ConstructorsConstructorDescriptionReportModuleDescriptorImpl
(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory) Deprecated.ReportModuleDescriptorImpl
(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory, ConditionDescriptorFactory conditionDescFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enabled()
Returns the report category.com.atlassian.plugin.web.Condition
Returns an optional string to display as an informative remark on report configuration pageReturns an optional string to display as the header for an informative remark on report configuration pagegetLabel()
Returns an optional URL to display as the "Learn more" link on the informative remark on report configuration pageReturns the class which will be used to decorate report thumbnailReturns url for first page of this report.io.atlassian.fugue.Option<String>
Returns optional URL for the first page of this report within specified context.int
void
init
(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) boolean
protected boolean
Methods inherited from class com.atlassian.jira.plugin.AbstractConfigurableModuleDescriptor
disabled, getObjectConfiguration, getObjectDescriptor
Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getName, getText, getText, isResourceExist, writeHtml
Methods 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, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.jira.plugin.ConfigurableModuleDescriptor
getObjectConfiguration
Methods inherited from interface com.atlassian.jira.plugin.JiraResourcedModuleDescriptor
getHtml, getHtml, getI18nBean, writeHtml
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocation
Methods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Field Details
-
PARAMS_PATTERN
- See Also:
-
DEFAULT_WEIGHT
public static final int DEFAULT_WEIGHT- See Also:
-
DEFAULT_THUMBNAIL_CSS_CLASS
- See Also:
-
-
Constructor Details
-
ReportModuleDescriptorImpl
@Deprecated public ReportModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory) Deprecated. -
ReportModuleDescriptorImpl
public ReportModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory, ConditionDescriptorFactory conditionDescFactory)
-
-
Method Details
-
isSingletonByDefault
protected boolean isSingletonByDefault() -
init
public void init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException - Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<Report>
- Overrides:
init
in classAbstractConfigurableModuleDescriptor<Report>
- Throws:
com.atlassian.plugin.PluginParseException
-
enabled
public void enabled()- Specified by:
enabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
enabled
in classAbstractConfigurableModuleDescriptor<Report>
-
getModule
- Specified by:
getModule
in interfacecom.atlassian.plugin.ModuleDescriptor<Report>
- Specified by:
getModule
in interfaceReportModuleDescriptor
- Overrides:
getModule
in classAbstractJiraModuleDescriptor<Report>
-
isSingleton
public boolean isSingleton() -
getLabel
- Specified by:
getLabel
in interfaceReportModuleDescriptor
-
getLabelKey
- Specified by:
getLabelKey
in interfaceReportModuleDescriptor
-
getUrl
Description copied from interface:ReportModuleDescriptor
Returns url for first page of this report. Project parameter is provided to insert context into the URL- Specified by:
getUrl
in interfaceReportModuleDescriptor
- Parameters:
context
- project in which context this report is opened- Returns:
- url for the first page of this report
-
getUrl
Description copied from interface:ReportModuleDescriptor
Returns optional URL for the first page of this report within specified context.none()
means the report should not show in this particular context.- Specified by:
getUrl
in interfaceReportModuleDescriptor
- Parameters:
context
- context in which this report is opened- Returns:
- Report URL or
Option.none()
when report should not show in this context
-
getCategory
Description copied from interface:ReportModuleDescriptor
Returns the report category. Should not be null.- Specified by:
getCategory
in interfaceReportModuleDescriptor
- Returns:
- the report category
-
getThumbnailCssClass
Description copied from interface:ReportModuleDescriptor
Returns the class which will be used to decorate report thumbnail- Specified by:
getThumbnailCssClass
in interfaceReportModuleDescriptor
- Returns:
- css class
-
getConfigurationRemarks
Description copied from interface:ReportModuleDescriptor
Returns an optional string to display as an informative remark on report configuration page- Specified by:
getConfigurationRemarks
in interfaceReportModuleDescriptor
- Returns:
- a string representing configuration remarks
-
getConfigurationRemarksHeader
Description copied from interface:ReportModuleDescriptor
Returns an optional string to display as the header for an informative remark on report configuration page- Specified by:
getConfigurationRemarksHeader
in interfaceReportModuleDescriptor
- Returns:
- a string representing configuration remarks header
-
getLearnMoreLinkURL
Description copied from interface:ReportModuleDescriptor
Returns an optional URL to display as the "Learn more" link on the informative remark on report configuration page- Specified by:
getLearnMoreLinkURL
in interfaceReportModuleDescriptor
- Returns:
- a string representing of the "Learn more" URL
-
getWeight
public int getWeight()- Specified by:
getWeight
in interfacecom.atlassian.plugin.web.api.descriptors.WeightedDescriptor
-
getCondition
public com.atlassian.plugin.web.Condition getCondition()- Specified by:
getCondition
in interfacecom.atlassian.plugin.web.api.descriptors.ConditionalDescriptor
-