|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 documentationField Summary |
---|
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
---|
plugin, resources, singleton |
Constructor Summary | |
---|---|
CustomMacroModuleDescriptor()
|
Method Summary | |
---|---|
com.atlassian.renderer.v2.macro.Macro |
createModule()
|
void |
disabled()
|
void |
enabled()
|
java.lang.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. |
java.lang.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)
|
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.PluginParseException
public 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.StateAware
enabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.renderer.v2.macro.Macro>
public boolean hasHelp()
public java.lang.String getHelpSection()
public com.atlassian.plugin.elements.ResourceDescriptor getHelpDescriptor()
getHelp()
public java.lang.String getHelp()
getHelpDescriptor()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public MacroMetadata getMacroMetadata()
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
setI18NBeanFactory
in interface UserLocaleAware
i18NBeanFactory
- the user locale sensitive i18n bean factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |