com.atlassian.plugin.web.descriptors
Class DefaultAbstractWebFragmentModuleDescriptor<T>

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor
COMPOSITE_TYPE_AND, COMPOSITE_TYPE_OR
 
Constructor Summary
DefaultAbstractWebFragmentModuleDescriptor(WebFragmentModuleDescriptor<T> abstractDescriptor)
           
 
Method Summary
 void destroy()
           
 void destroy(com.atlassian.plugin.Plugin plugin)
           
 void disabled()
           
 void enabled()
           
 String getCompleteKey()
           
 Condition getCondition()
           
 ContextProvider getContextProvider()
          Returns the ContextProvider that augments the context used to render a web module.
protected  WebFragmentModuleDescriptor getDecoratedDescriptor()
           
 String getDescription()
           
 String getDescriptionKey()
           
 String getI18nNameKey()
           
 String getKey()
           
 Float getMinJavaVersion()
           
 T getModule()
           
 Class<T> 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)
          Deprecated. since 2.5.0 use getResourceDescriptors() and filter as required
 com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
           
 WebLabel getTooltip()
           
 WebLabel getWebLabel()
           
 WebParam getWebParams()
           
 int getWeight()
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
 boolean isEnabledByDefault()
           
 boolean isSystemModule()
           
 boolean satisfiesMinJavaVersion()
           
 void setWebInterfaceManager(WebInterfaceManager webInterfaceManager)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
equals, hashCode
 

Constructor Detail

DefaultAbstractWebFragmentModuleDescriptor

public DefaultAbstractWebFragmentModuleDescriptor(WebFragmentModuleDescriptor<T> abstractDescriptor)
Method Detail

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.