public class ReportModuleDescriptorImpl extends AbstractConfigurableModuleDescriptor<Report> implements ReportModuleDescriptor, com.atlassian.plugin.web.descriptors.ConditionalDescriptor
Report
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_THUMBNAIL_CSS_CLASS |
static int |
DEFAULT_WEIGHT |
static String |
PARAMS_PATTERN |
Constructor and Description |
---|
ReportModuleDescriptorImpl(JiraAuthenticationContext authenticationContext,
com.atlassian.plugin.module.ModuleFactory moduleFactory)
Deprecated.
|
ReportModuleDescriptorImpl(JiraAuthenticationContext authenticationContext,
com.atlassian.plugin.module.ModuleFactory moduleFactory,
ConditionDescriptorFactory conditionDescFactory) |
Modifier and Type | Method and Description |
---|---|
void |
enabled() |
ReportCategory |
getCategory()
Returns the report category.
|
com.atlassian.plugin.web.Condition |
getCondition() |
String |
getLabel() |
String |
getLabelKey() |
Report |
getModule() |
String |
getThumbnailCssClass()
Returns the class which will be used to decorate report thumbnail
|
com.atlassian.fugue.Option<String> |
getUrl(Map<String,Object> context)
Returns optional URL for the first page of this report within specified context.
|
String |
getUrl(Project context)
Returns url for first page of this report.
|
int |
getWeight() |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
protected boolean |
isSingletonByDefault() |
disabled, getObjectConfiguration, getObjectDescriptor
assertResourceExists, createModule, createVelocityParams, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getName, getText, getText, isResourceExist, writeHtml
assertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSingleton, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getHtml, getHtml, getI18nBean, writeHtml
destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation
getObjectConfiguration
public static final String PARAMS_PATTERN
public static final int DEFAULT_WEIGHT
public static final String DEFAULT_THUMBNAIL_CSS_CLASS
@Deprecated public ReportModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory)
public ReportModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory, ConditionDescriptorFactory conditionDescFactory)
protected boolean isSingletonByDefault()
isSingletonByDefault
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Report>
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.ModuleDescriptor<Report>
init
in class AbstractConfigurableModuleDescriptor<Report>
com.atlassian.plugin.PluginParseException
public void enabled()
enabled
in interface com.atlassian.plugin.StateAware
enabled
in class AbstractConfigurableModuleDescriptor<Report>
public Report getModule()
getModule
in interface ReportModuleDescriptor
getModule
in interface com.atlassian.plugin.ModuleDescriptor<Report>
getModule
in class AbstractJiraModuleDescriptor<Report>
public String getLabel()
getLabel
in interface ReportModuleDescriptor
public String getLabelKey()
getLabelKey
in interface ReportModuleDescriptor
public String getUrl(Project context)
ReportModuleDescriptor
getUrl
in interface ReportModuleDescriptor
context
- project in which context this report is openedpublic com.atlassian.fugue.Option<String> getUrl(Map<String,Object> context)
ReportModuleDescriptor
none()
means the report should not show in this particular context.getUrl
in interface ReportModuleDescriptor
context
- context in which this report is openedOption.none()
when report should not show in this contextpublic ReportCategory getCategory()
ReportModuleDescriptor
getCategory
in interface ReportModuleDescriptor
public String getThumbnailCssClass()
ReportModuleDescriptor
getThumbnailCssClass
in interface ReportModuleDescriptor
public int getWeight()
getWeight
in interface com.atlassian.plugin.web.descriptors.WeightedDescriptor
public com.atlassian.plugin.web.Condition getCondition()
getCondition
in interface com.atlassian.plugin.web.descriptors.ConditionalDescriptor
Copyright © 2002-2018 Atlassian. All Rights Reserved.