Class XWorkModuleDescriptor
- java.lang.Object
-
- com.atlassian.plugin.descriptors.AbstractModuleDescriptor
-
- com.atlassian.confluence.plugin.descriptor.XWorkModuleDescriptor
-
- All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware,com.opensymphony.xwork.config.ConfigurationProvider
public class XWorkModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor implements com.opensymphony.xwork.config.ConfigurationProviderAn XWork-WebWork plugin, which can provide actions and results to add to Confluence's web UI layer. Actions will normally want to extendConfluenceActionSupport.
-
-
Constructor Summary
Constructors Constructor Description XWorkModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.EventManager eventManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAction(org.dom4j.Element actionElement, com.opensymphony.xwork.config.entities.PackageConfig packageContext)protected voidaddResultTypes(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element element)protected ListbuildExternalRefs(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)protected ListbuildInterceptorList(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)protected com.opensymphony.xwork.config.entities.PackageConfigbuildPackageContext(org.dom4j.Element packageElement, com.opensymphony.xwork.config.Configuration configuration)protected MapbuildResults(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig packageContext)voiddestroy()voiddisabled()voidenabled()ObjectgetModule()static HashMapgetParams(org.dom4j.Element paramsElement)voidinit(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)voidinit(com.opensymphony.xwork.config.Configuration configuration)booleanisEnabled()protected voidloadDefaultInterceptorRef(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element element)protected voidloadGlobalResults(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element packageElement)protected voidloadInterceptors(com.opensymphony.xwork.config.entities.PackageConfig context, org.dom4j.Element element)protected com.opensymphony.xwork.config.entities.InterceptorStackConfigloadInterceptorStack(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)protected voidloadInterceptorStacks(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context)booleanneedsReload()-
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
-
-
-
-
Method Detail
-
init
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException- Specified by:
initin interfacecom.atlassian.plugin.ModuleDescriptor- Overrides:
initin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor- Throws:
com.atlassian.plugin.PluginParseException
-
enabled
public void enabled()
- Specified by:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor
-
disabled
public void disabled()
- Specified by:
disabledin interfacecom.atlassian.plugin.StateAware- Overrides:
disabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacecom.atlassian.plugin.ModuleDescriptor- Overrides:
isEnabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor
-
loadInterceptors
protected void loadInterceptors(com.opensymphony.xwork.config.entities.PackageConfig context, org.dom4j.Element element) throws com.opensymphony.xwork.config.ConfigurationException- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
loadDefaultInterceptorRef
protected void loadDefaultInterceptorRef(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element element)
-
loadGlobalResults
protected void loadGlobalResults(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element packageElement)
-
buildResults
protected Map buildResults(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig packageContext)
-
loadInterceptorStack
protected com.opensymphony.xwork.config.entities.InterceptorStackConfig loadInterceptorStack(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context) throws com.opensymphony.xwork.config.ConfigurationException- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
loadInterceptorStacks
protected void loadInterceptorStacks(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context) throws com.opensymphony.xwork.config.ConfigurationException- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
addAction
protected void addAction(org.dom4j.Element actionElement, com.opensymphony.xwork.config.entities.PackageConfig packageContext) throws com.opensymphony.xwork.config.ConfigurationException- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
buildExternalRefs
protected List buildExternalRefs(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context) throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
addResultTypes
protected void addResultTypes(com.opensymphony.xwork.config.entities.PackageConfig packageContext, org.dom4j.Element element)
-
getModule
public Object getModule()
- Specified by:
getModulein interfacecom.atlassian.plugin.ModuleDescriptor- Specified by:
getModulein classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor
-
buildPackageContext
protected com.opensymphony.xwork.config.entities.PackageConfig buildPackageContext(org.dom4j.Element packageElement, com.opensymphony.xwork.config.Configuration configuration)
-
buildInterceptorList
protected List buildInterceptorList(org.dom4j.Element element, com.opensymphony.xwork.config.entities.PackageConfig context) throws com.opensymphony.xwork.config.ConfigurationException
- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
getParams
public static HashMap getParams(org.dom4j.Element paramsElement)
-
destroy
public void destroy()
- Specified by:
destroyin interfacecom.opensymphony.xwork.config.ConfigurationProvider- Specified by:
destroyin interfacecom.atlassian.plugin.ModuleDescriptor- Overrides:
destroyin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor
-
init
public void init(com.opensymphony.xwork.config.Configuration configuration) throws com.opensymphony.xwork.config.ConfigurationException- Specified by:
initin interfacecom.opensymphony.xwork.config.ConfigurationProvider- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
needsReload
public boolean needsReload()
- Specified by:
needsReloadin interfacecom.opensymphony.xwork.config.ConfigurationProvider
-
-