|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>
com.atlassian.confluence.plugin.descriptor.CustomMacroModuleDescriptor
public class CustomMacroModuleDescriptor
A plugin macro in Confluence with metadata and notation guide help.
Macro,
Macro
plugin documentation| Field Summary |
|---|
| Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
|---|
moduleClassName, moduleFactory, plugin, resources, singleton |
| Constructor Summary | |
|---|---|
CustomMacroModuleDescriptor()
|
|
| Method Summary | |
|---|---|
com.atlassian.renderer.v2.macro.Macro |
createModule()
|
void |
disabled()
|
void |
enabled()
|
String |
getHelp()
Returns the macro help as rendered HTML, or null if there is no help. |
com.atlassian.plugin.elements.ResourceDescriptor |
getHelpDescriptor()
Returns the macro help descriptor, or null if there is no help. |
String |
getHelpSection()
Returns the section of notation guide in which the macro help appears. |
MacroMetadata |
getMacroMetadata()
|
com.atlassian.renderer.v2.macro.Macro |
getModule()
Returns the macro defined by this module descriptor. |
boolean |
hasHelp()
Returns true if the macro has help, otherwise false. |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
|
void |
setMacroMetadataParser(MacroMetadataParser macroMetadataParser)
|
| Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
|---|
assertModuleClassImplements, destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.plugin.ModuleDescriptor |
|---|
destroy, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion |
| Methods inherited from interface com.atlassian.plugin.Resourced |
|---|
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation |
| Constructor Detail |
|---|
public CustomMacroModuleDescriptor()
| Method Detail |
|---|
public void init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
throws com.atlassian.plugin.PluginParseException
init in interface com.atlassian.plugin.ModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>init in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>com.atlassian.plugin.PluginParseExceptionpublic com.atlassian.renderer.v2.macro.Macro getModule()
getModule in interface com.atlassian.plugin.ModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>public com.atlassian.renderer.v2.macro.Macro createModule()
createModule in interface PluginModuleFactory<com.atlassian.renderer.v2.macro.Macro>public void enabled()
enabled in interface com.atlassian.plugin.StateAwareenabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>public void disabled()
disabled in interface com.atlassian.plugin.StateAwaredisabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>public boolean hasHelp()
public String getHelpSection()
public com.atlassian.plugin.elements.ResourceDescriptor getHelpDescriptor()
getHelp()public String getHelp()
getHelpDescriptor()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic MacroMetadata getMacroMetadata()
getMacroMetadata in interface MacroModuleDescriptorpublic void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
setI18NBeanFactory in interface UserLocaleAwarei18NBeanFactory - the user locale sensitive i18n bean factorypublic void setMacroMetadataParser(MacroMetadataParser macroMetadataParser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||