com.atlassian.confluence.plugin.dev
Class WebResourceModuleDescriptorDelegate

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
      extended by com.atlassian.plugin.webresource.WebResourceModuleDescriptor
          extended by com.atlassian.confluence.plugin.dev.WebResourceModuleDescriptorDelegate
All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<Void>, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware

public abstract class WebResourceModuleDescriptorDelegate
extends com.atlassian.plugin.webresource.WebResourceModuleDescriptor


Field Summary
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton
 
Constructor Summary
WebResourceModuleDescriptorDelegate(com.atlassian.plugin.webresource.WebResourceModuleDescriptor delegate)
           
 
Method Summary
 void addToUrl(String type, com.atlassian.plugin.webresource.transformer.StaticTransformers transformers, com.atlassian.plugin.webresource.transformer.TransformerCache transformerCache, com.atlassian.plugin.webresource.url.DefaultUrlBuilder urlBuilder, com.atlassian.plugin.webresource.condition.ConditionState conditionsRun)
           
 boolean canEncodeStateIntoUrl()
           
 void destroy()
           
 void destroy(com.atlassian.plugin.Plugin plugin)
          Deprecated. 
 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()
           
 List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors(String type)
           
 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 isSingleton()
          Deprecated. 
 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, getDeprecatedConditionKeys, getDeprecatedTransformKeys, getTransformations
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, getModuleClassName, getRequiredPermissions, isSingletonByDefault, loadClass, loadClass, provideValidationRules
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebResourceModuleDescriptorDelegate

public WebResourceModuleDescriptorDelegate(com.atlassian.plugin.webresource.WebResourceModuleDescriptor delegate)
Method Detail

init

public void init(com.atlassian.plugin.Plugin plugin,
                 org.dom4j.Element element)
          throws com.atlassian.plugin.PluginParseException
Specified by:
init in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
init in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor
Throws:
com.atlassian.plugin.PluginParseException

getModule

public Void getModule()
Specified by:
getModule in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getModule in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

enabled

public void enabled()
Specified by:
enabled in interface com.atlassian.plugin.StateAware
Overrides:
enabled in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

disabled

public void disabled()
Specified by:
disabled in interface com.atlassian.plugin.StateAware
Overrides:
disabled in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

getContexts

public Set<String> getContexts()
Overrides:
getContexts in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

getDependencies

public List<String> getDependencies()
Overrides:
getDependencies in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

isDisableMinification

public boolean isDisableMinification()
Overrides:
isDisableMinification in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

addToUrl

public void addToUrl(String type,
                     com.atlassian.plugin.webresource.transformer.StaticTransformers transformers,
                     com.atlassian.plugin.webresource.transformer.TransformerCache transformerCache,
                     com.atlassian.plugin.webresource.url.DefaultUrlBuilder urlBuilder,
                     com.atlassian.plugin.webresource.condition.ConditionState conditionsRun)
Overrides:
addToUrl in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

canEncodeStateIntoUrl

public boolean canEncodeStateIntoUrl()
Overrides:
canEncodeStateIntoUrl in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

shouldDisplay

public boolean shouldDisplay(com.atlassian.plugin.webresource.QueryParams params)
Overrides:
shouldDisplay in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

shouldDisplayImmediate

public boolean shouldDisplayImmediate()
Overrides:
shouldDisplayImmediate in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

getDataProviders

public Map<String,com.atlassian.webresource.api.data.WebResourceDataProvider> getDataProviders()
Overrides:
getDataProviders in class com.atlassian.plugin.webresource.WebResourceModuleDescriptor

destroy

public void destroy()
Specified by:
destroy in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
destroy in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

destroy

@Deprecated
public void destroy(com.atlassian.plugin.Plugin plugin)
Deprecated. 

Specified by:
destroy in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
destroy in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

isEnabledByDefault

public boolean isEnabledByDefault()
Specified by:
isEnabledByDefault in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
isEnabledByDefault in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

isSystemModule

public boolean isSystemModule()
Specified by:
isSystemModule in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
isSystemModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

isSingleton

@Deprecated
public boolean isSingleton()
Deprecated. 

Overrides:
isSingleton in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getCompleteKey

public String getCompleteKey()
Specified by:
getCompleteKey in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getCompleteKey in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getPluginKey

public String getPluginKey()
Specified by:
getPluginKey in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getPluginKey in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getKey

public String getKey()
Specified by:
getKey in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getKey in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getName

public String getName()
Specified by:
getName in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getName in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getModuleClass

public Class<Void> getModuleClass()
Specified by:
getModuleClass in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getModuleClass in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getDescription

public String getDescription()
Specified by:
getDescription in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getDescription in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getParams

public Map<String,String> getParams()
Specified by:
getParams in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getParams in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getI18nNameKey

public String getI18nNameKey()
Specified by:
getI18nNameKey in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getI18nNameKey in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getDescriptionKey

public String getDescriptionKey()
Specified by:
getDescriptionKey in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getDescriptionKey in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getResourceDescriptors

public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
Specified by:
getResourceDescriptors in interface com.atlassian.plugin.Resourced
Overrides:
getResourceDescriptors in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getResourceDescriptors

public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors(String type)
Specified by:
getResourceDescriptors in interface com.atlassian.plugin.Resourced
Overrides:
getResourceDescriptors in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getResourceLocation

public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type,
                                                                          String name)
Specified by:
getResourceLocation in interface com.atlassian.plugin.Resourced
Overrides:
getResourceLocation in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getResourceDescriptor

public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type,
                                                                              String name)
Specified by:
getResourceDescriptor in interface com.atlassian.plugin.Resourced
Overrides:
getResourceDescriptor in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getMinJavaVersion

public Float getMinJavaVersion()
Specified by:
getMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getMinJavaVersion in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

satisfiesMinJavaVersion

public boolean satisfiesMinJavaVersion()
Specified by:
satisfiesMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
satisfiesMinJavaVersion in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

setPlugin

public void setPlugin(com.atlassian.plugin.Plugin plugin)
Overrides:
setPlugin in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

getPlugin

public com.atlassian.plugin.Plugin getPlugin()
Specified by:
getPlugin in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
getPlugin in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

equals

public boolean equals(Object obj)
Specified by:
equals in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
equals in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

hashCode

public int hashCode()
Specified by:
hashCode in interface com.atlassian.plugin.ModuleDescriptor<Void>
Overrides:
hashCode in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>

toString

public String toString()
Overrides:
toString in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>


Copyright © 2003–2015 Atlassian. All rights reserved.