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 boolean
canEncodeStateIntoUrl()
void
destroy()
void
disabled()
void
enabled()
boolean
equals(Object obj)
String
getCompleteKey()
Set<String>
getContexts()
Map<String,com.atlassian.webresource.api.data.WebResourceDataProvider>
getDataProviders()
List<String>
getDependencies()
String
getDescription()
String
getDescriptionKey()
String
getI18nNameKey()
String
getKey()
Float
getMinJavaVersion()
Void
getModule()
Class<Void>
getModuleClass()
String
getName()
Map<String,String>
getParams()
com.atlassian.plugin.Plugin
getPlugin()
String
getPluginKey()
com.atlassian.plugin.elements.ResourceDescriptor
getResourceDescriptor(String type, String name)
List<com.atlassian.plugin.elements.ResourceDescriptor>
getResourceDescriptors()
com.atlassian.plugin.elements.ResourceLocation
getResourceLocation(String type, String name)
int
hashCode()
void
init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
boolean
isDisableMinification()
boolean
isEnabledByDefault()
boolean
isSystemModule()
boolean
satisfiesMinJavaVersion()
void
setPlugin(com.atlassian.plugin.Plugin plugin)
boolean
shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
boolean
shouldDisplayImmediate()
String
toString()
-
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
-
-
-
-
Method Detail
-
init
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<Void>
- Overrides:
init
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
- Throws:
com.atlassian.plugin.PluginParseException
-
getModule
public Void getModule()
- Specified by:
getModule
in interfacecom.atlassian.plugin.ModuleDescriptor<Void>
- Overrides:
getModule
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
enabled
public void enabled()
- Specified by:
enabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
enabled
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
disabled
public void disabled()
- Specified by:
disabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
disabled
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
getContexts
public Set<String> getContexts()
- Overrides:
getContexts
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
getDependencies
public List<String> getDependencies()
- Overrides:
getDependencies
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
isDisableMinification
public boolean isDisableMinification()
- Overrides:
isDisableMinification
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
canEncodeStateIntoUrl
public boolean canEncodeStateIntoUrl()
- Overrides:
canEncodeStateIntoUrl
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
shouldDisplay
public boolean shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
- Overrides:
shouldDisplay
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
shouldDisplayImmediate
public boolean shouldDisplayImmediate()
- Overrides:
shouldDisplayImmediate
in classcom.atlassian.plugin.webresource.WebResourceModuleDescriptor
-
getDataProviders
public Map<String,com.atlassian.webresource.api.data.WebResourceDataProvider> getDataProviders()
- Overrides:
getDataProviders
in 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:
getResourceDescriptors
in interfacecom.atlassian.plugin.Resourced
- Overrides:
getResourceDescriptors
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getResourceLocation
public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
- Specified by:
getResourceLocation
in interfacecom.atlassian.plugin.Resourced
- Overrides:
getResourceLocation
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getResourceDescriptor
public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type, String name)
- Specified by:
getResourceDescriptor
in interfacecom.atlassian.plugin.Resourced
- Overrides:
getResourceDescriptor
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getMinJavaVersion
public Float getMinJavaVersion()
-
satisfiesMinJavaVersion
public boolean satisfiesMinJavaVersion()
-
setPlugin
public void setPlugin(com.atlassian.plugin.Plugin plugin)
- Overrides:
setPlugin
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
getPlugin
public com.atlassian.plugin.Plugin getPlugin()
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-