Class WebResourceModuleDescriptorDelegate
- java.lang.Object
-
- com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
- com.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
- com.atlassian.confluence.plugin.dev.WebResourceModuleDescriptorDelegate
-
- All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<Void>,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware,com.atlassian.plugin.StateAware
public abstract class WebResourceModuleDescriptorDelegate extends com.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
-
Constructor Summary
Constructors Constructor Description WebResourceModuleDescriptorDelegate(com.atlassian.plugin.webresource.WebResourceModuleDescriptor delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEncodeStateIntoUrl()voiddestroy()voiddisabled()voidenabled()booleanequals(Object obj)StringgetCompleteKey()Set<String>getContexts()Map<String,com.atlassian.webresource.api.data.WebResourceDataProvider>getDataProviders()List<String>getDependencies()StringgetDescription()StringgetDescriptionKey()StringgetI18nNameKey()StringgetKey()FloatgetMinJavaVersion()VoidgetModule()Class<Void>getModuleClass()StringgetName()Map<String,String>getParams()com.atlassian.plugin.PlugingetPlugin()StringgetPluginKey()com.atlassian.plugin.elements.ResourceDescriptorgetResourceDescriptor(String type, String name)List<com.atlassian.plugin.elements.ResourceDescriptor>getResourceDescriptors()com.atlassian.plugin.elements.ResourceLocationgetResourceLocation(String type, String name)inthashCode()voidinit(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)booleanisDisableMinification()booleanisEnabledByDefault()booleanisSystemModule()booleansatisfiesMinJavaVersion()voidsetPlugin(com.atlassian.plugin.Plugin plugin)booleanshouldDisplay(com.atlassian.plugin.webresource.QueryParams params)booleanshouldDisplayImmediate()StringtoString()-
Methods inherited from class com.atlassian.plugin.webresource.WebResourceModuleDescriptor
getCondition, getContextDependencies, getDeprecatedConditionKeys, getDeprecatedTransformKeys, getDeprecation, getTransformations, isDeprecated, isRootPage, parseCondition, parseTransformations
-
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, getModuleClassName, getRequiredPermissions, getScopeKey, isBroken, isEnabled, loadClass, provideValidationRules, setBroken, validate
-
-
-
-
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<Void>- Overrides:
initin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor- Throws:
com.atlassian.plugin.PluginParseException
-
getModule
public Void getModule()
- Specified by:
getModulein interfacecom.atlassian.plugin.ModuleDescriptor<Void>- Overrides:
getModulein classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
enabled
public void enabled()
- Specified by:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
disabled
public void disabled()
- Specified by:
disabledin interfacecom.atlassian.plugin.StateAware- Overrides:
disabledin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
getContexts
public Set<String> getContexts()
- Overrides:
getContextsin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
getDependencies
public List<String> getDependencies()
- Overrides:
getDependenciesin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
isDisableMinification
public boolean isDisableMinification()
- Overrides:
isDisableMinificationin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
canEncodeStateIntoUrl
public boolean canEncodeStateIntoUrl()
- Overrides:
canEncodeStateIntoUrlin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
shouldDisplay
public boolean shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
- Overrides:
shouldDisplayin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
shouldDisplayImmediate
public boolean shouldDisplayImmediate()
- Overrides:
shouldDisplayImmediatein classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
getDataProviders
public Map<String,com.atlassian.webresource.api.data.WebResourceDataProvider> getDataProviders()
- Overrides:
getDataProvidersin classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
destroy
public void destroy()
-
isEnabledByDefault
public boolean isEnabledByDefault()
-
isSystemModule
public boolean isSystemModule()
-
getCompleteKey
public String getCompleteKey()
-
getPluginKey
public String getPluginKey()
-
getKey
public String getKey()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getI18nNameKey
public String getI18nNameKey()
-
getDescriptionKey
public String getDescriptionKey()
-
getResourceDescriptors
public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
- Specified by:
getResourceDescriptorsin interfacecom.atlassian.plugin.Resourced- Overrides:
getResourceDescriptorsin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getResourceLocation
public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
- Specified by:
getResourceLocationin interfacecom.atlassian.plugin.Resourced- Overrides:
getResourceLocationin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getResourceDescriptor
public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type, String name)
- Specified by:
getResourceDescriptorin interfacecom.atlassian.plugin.Resourced- Overrides:
getResourceDescriptorin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getMinJavaVersion
public Float getMinJavaVersion()
-
satisfiesMinJavaVersion
public boolean satisfiesMinJavaVersion()
-
setPlugin
public void setPlugin(com.atlassian.plugin.Plugin plugin)
- Overrides:
setPluginin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getPlugin
public com.atlassian.plugin.Plugin getPlugin()
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-