com.atlassian.plugin.web.descriptors
Class DefaultAbstractWebFragmentModuleDescriptor<T>
java.lang.Object
com.atlassian.plugin.web.descriptors.DefaultAbstractWebFragmentModuleDescriptor<T>
- All Implemented Interfaces:
- com.atlassian.plugin.ModuleDescriptor<T>, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware, ConditionalDescriptor, ContextAware, WebFragmentModuleDescriptor<T>, WeightedDescriptor
public class DefaultAbstractWebFragmentModuleDescriptor<T>
- extends Object
- implements com.atlassian.plugin.StateAware, WebFragmentModuleDescriptor<T>
Wrapper for WebFragmentModuleDescriptor, so that it could be extended
by application specific wrappers to provide additional methods.
| Methods inherited from interface com.atlassian.plugin.ModuleDescriptor |
equals, hashCode |
DefaultAbstractWebFragmentModuleDescriptor
public DefaultAbstractWebFragmentModuleDescriptor(WebFragmentModuleDescriptor<T> abstractDescriptor)
enabled
public void enabled()
- Specified by:
enabled in interface com.atlassian.plugin.StateAware
disabled
public void disabled()
- Specified by:
disabled in interface com.atlassian.plugin.StateAware
getDecoratedDescriptor
protected WebFragmentModuleDescriptor getDecoratedDescriptor()
getWeight
public int getWeight()
- Specified by:
getWeight in interface WebFragmentModuleDescriptor<T>- Specified by:
getWeight in interface WeightedDescriptor
getKey
public String getKey()
- Specified by:
getKey in interface com.atlassian.plugin.ModuleDescriptor<T>
getModule
public T getModule()
- Specified by:
getModule in interface com.atlassian.plugin.ModuleDescriptor<T>
getI18nNameKey
public String getI18nNameKey()
- Specified by:
getI18nNameKey in interface com.atlassian.plugin.ModuleDescriptor<T>
getDescriptionKey
public String getDescriptionKey()
- Specified by:
getDescriptionKey in interface com.atlassian.plugin.ModuleDescriptor<T>
getPlugin
public com.atlassian.plugin.Plugin getPlugin()
- Specified by:
getPlugin in interface com.atlassian.plugin.ModuleDescriptor<T>
getWebLabel
public WebLabel getWebLabel()
- Specified by:
getWebLabel in interface WebFragmentModuleDescriptor<T>
getTooltip
public WebLabel getTooltip()
- Specified by:
getTooltip in interface WebFragmentModuleDescriptor<T>
setWebInterfaceManager
public void setWebInterfaceManager(WebInterfaceManager webInterfaceManager)
getCondition
public Condition getCondition()
- Specified by:
getCondition in interface ConditionalDescriptor- Specified by:
getCondition in interface WebFragmentModuleDescriptor<T>
getContextProvider
public ContextProvider getContextProvider()
- Description copied from interface:
ContextAware
- Returns the ContextProvider that augments the context used to render a
web module.
- Specified by:
getContextProvider in interface ContextAware
getWebParams
public WebParam getWebParams()
- Specified by:
getWebParams in interface WebFragmentModuleDescriptor<T>
getCompleteKey
public String getCompleteKey()
- Specified by:
getCompleteKey in interface com.atlassian.plugin.ModuleDescriptor<T>
getPluginKey
public String getPluginKey()
- Specified by:
getPluginKey in interface com.atlassian.plugin.ModuleDescriptor<T>
getName
public String getName()
- Specified by:
getName in interface com.atlassian.plugin.ModuleDescriptor<T>
getDescription
public String getDescription()
- Specified by:
getDescription in interface com.atlassian.plugin.ModuleDescriptor<T>
getModuleClass
public Class<T> getModuleClass()
- Specified by:
getModuleClass in interface com.atlassian.plugin.ModuleDescriptor<T>
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<T>
- Throws:
com.atlassian.plugin.PluginParseException
isEnabledByDefault
public boolean isEnabledByDefault()
- Specified by:
isEnabledByDefault in interface com.atlassian.plugin.ModuleDescriptor<T>
isSystemModule
public boolean isSystemModule()
- Specified by:
isSystemModule in interface com.atlassian.plugin.ModuleDescriptor<T>
destroy
public void destroy()
- Specified by:
destroy in interface com.atlassian.plugin.ModuleDescriptor<T>
destroy
public void destroy(com.atlassian.plugin.Plugin plugin)
- Specified by:
destroy in interface com.atlassian.plugin.ModuleDescriptor<T>
getMinJavaVersion
public Float getMinJavaVersion()
- Specified by:
getMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>
satisfiesMinJavaVersion
public boolean satisfiesMinJavaVersion()
- Specified by:
satisfiesMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>
getParams
public Map<String,String> getParams()
- Specified by:
getParams in interface com.atlassian.plugin.ModuleDescriptor<T>
getResourceDescriptors
public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
- Specified by:
getResourceDescriptors in interface com.atlassian.plugin.Resourced
getResourceDescriptors
@Deprecated
public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors(String type)
- Deprecated. since 2.5.0 use
getResourceDescriptors() and filter
as required
- Specified by:
getResourceDescriptors in interface com.atlassian.plugin.Resourced
getResourceLocation
public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type,
String name)
- Specified by:
getResourceLocation in interface com.atlassian.plugin.Resourced
getResourceDescriptor
public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type,
String name)
- Specified by:
getResourceDescriptor in interface com.atlassian.plugin.Resourced
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Atlassian. All rights reserved.