|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.web.descriptors.DefaultAbstractWebFragmentModuleDescriptor
public class DefaultAbstractWebFragmentModuleDescriptor
Wrapper for WebFragmentModuleDescriptor, so that it could be extended by application specific
wrappers to provide additional methods.
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor |
|---|
COMPOSITE_TYPE_AND, COMPOSITE_TYPE_OR |
| Constructor Summary | |
|---|---|
DefaultAbstractWebFragmentModuleDescriptor(WebFragmentModuleDescriptor abstractDescriptor)
|
|
| Method Summary | |
|---|---|
void |
destroy(Plugin plugin)
Override this if your plugin needs to clean up when it's been removed. |
void |
disabled()
Called by the plugin manager when the module is deactivated. |
void |
enabled()
Called by the plugin manager when the module is activated. |
java.lang.String |
getCompleteKey()
The complete key for this module, including the plugin key. |
Condition |
getCondition()
|
ContextProvider |
getContextProvider()
|
protected WebFragmentModuleDescriptor |
getDecoratedDescriptor()
|
java.lang.String |
getDescription()
A simple description of this descriptor. |
java.lang.String |
getDescriptionKey()
Key used to override ModuleDescriptor.getDescription() when using internationalisation. |
java.lang.String |
getI18nNameKey()
Key used to override ModuleDescriptor.getName() when using internationalisation. |
java.lang.String |
getKey()
The key for this module, unique within the plugin. |
java.lang.Float |
getMinJavaVersion()
|
java.lang.Object |
getModule()
The particular module object created by this plugin. |
java.lang.Class |
getModuleClass()
The class of the module this descriptor creates. |
java.lang.String |
getName()
A simple string name for this descriptor. |
java.util.Map |
getParams()
|
Plugin |
getPlugin()
|
java.lang.String |
getPluginKey()
The plugin key for this module, derived from the complete key |
ResourceDescriptor |
getResourceDescriptor(java.lang.String type,
java.lang.String name)
|
java.util.List |
getResourceDescriptors()
|
java.util.List |
getResourceDescriptors(java.lang.String type)
|
ResourceLocation |
getResourceLocation(java.lang.String type,
java.lang.String name)
|
WebLabel |
getTooltip()
|
WebLabel |
getWebLabel()
|
WebParam |
getWebParams()
|
int |
getWeight()
|
void |
init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element representing the module. |
boolean |
isEnabledByDefault()
Whether or not this plugin module is enabled by default. |
boolean |
isSystemModule()
Whether or not this plugin module is a "system" plugin that shouldn't be made visible/disableable to the user |
boolean |
satisfiesMinJavaVersion()
If a min java version has been specified this will return true if the running jvm is >= to the specified version. |
void |
setWebInterfaceManager(WebInterfaceManager webInterfaceManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAbstractWebFragmentModuleDescriptor(WebFragmentModuleDescriptor abstractDescriptor)
| Method Detail |
|---|
public void enabled()
StateAware
enabled in interface StateAwarepublic void disabled()
StateAware
disabled in interface StateAwareprotected WebFragmentModuleDescriptor getDecoratedDescriptor()
public int getWeight()
getWeight in interface WebFragmentModuleDescriptorgetWeight in interface WeightedDescriptorpublic java.lang.String getKey()
ModuleDescriptor
getKey in interface ModuleDescriptorpublic java.lang.Object getModule()
ModuleDescriptor
getModule in interface ModuleDescriptorgetModule in interface WebFragmentModuleDescriptorpublic java.lang.String getI18nNameKey()
ModuleDescriptorModuleDescriptor.getName() when using internationalisation.
getI18nNameKey in interface ModuleDescriptorpublic java.lang.String getDescriptionKey()
ModuleDescriptorModuleDescriptor.getDescription() when using internationalisation.
getDescriptionKey in interface ModuleDescriptorpublic Plugin getPlugin()
getPlugin in interface ModuleDescriptorpublic WebLabel getWebLabel()
getWebLabel in interface WebFragmentModuleDescriptorpublic WebLabel getTooltip()
getTooltip in interface WebFragmentModuleDescriptorpublic void setWebInterfaceManager(WebInterfaceManager webInterfaceManager)
public Condition getCondition()
getCondition in interface WebFragmentModuleDescriptorpublic ContextProvider getContextProvider()
getContextProvider in interface WebFragmentModuleDescriptorpublic WebParam getWebParams()
getWebParams in interface WebFragmentModuleDescriptorpublic java.lang.String getCompleteKey()
ModuleDescriptorFormat is plugin.key:module.key
getCompleteKey in interface ModuleDescriptorpublic java.lang.String getPluginKey()
ModuleDescriptor
getPluginKey in interface ModuleDescriptorpublic java.lang.String getName()
ModuleDescriptor
getName in interface ModuleDescriptorpublic java.lang.String getDescription()
ModuleDescriptor
getDescription in interface ModuleDescriptorpublic java.lang.Class getModuleClass()
ModuleDescriptor
getModuleClass in interface ModuleDescriptor
public void init(Plugin plugin,
org.dom4j.Element element)
throws PluginParseException
ModuleDescriptor
init in interface ModuleDescriptorPluginParseExceptionpublic boolean isEnabledByDefault()
ModuleDescriptor
isEnabledByDefault in interface ModuleDescriptorpublic boolean isSystemModule()
ModuleDescriptor
isSystemModule in interface ModuleDescriptorpublic void destroy(Plugin plugin)
ModuleDescriptor
destroy in interface ModuleDescriptorpublic java.lang.Float getMinJavaVersion()
getMinJavaVersion in interface ModuleDescriptorpublic boolean satisfiesMinJavaVersion()
ModuleDescriptor
satisfiesMinJavaVersion in interface ModuleDescriptorpublic java.util.Map getParams()
getParams in interface ModuleDescriptorpublic java.util.List getResourceDescriptors()
getResourceDescriptors in interface Resourcedpublic java.util.List getResourceDescriptors(java.lang.String type)
getResourceDescriptors in interface Resourced
public ResourceLocation getResourceLocation(java.lang.String type,
java.lang.String name)
getResourceLocation in interface Resourced
public ResourceDescriptor getResourceDescriptor(java.lang.String type,
java.lang.String name)
getResourceDescriptor in interface Resourced
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||