Class ContentTypeModuleDescriptor

  • All Implemented Interfaces:
    PluginModuleFactory<ContentType>, com.atlassian.plugin.ModuleDescriptor<ContentType>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware

    public class ContentTypeModuleDescriptor
    extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ContentType>
    implements PluginModuleFactory<ContentType>
    Module descriptor for pluggable content types.
    • Field Summary

      • Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

        key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ContentType createModule()  
      void disabled()  
      void enabled()  
      String getContentType()
      Get content type.
      ContentType getModule()  
      void init​(@NonNull com.atlassian.plugin.Plugin plugin, @NonNull org.dom4j.Element element)  
      • Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

        assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
      • Methods inherited from interface com.atlassian.plugin.ModuleDescriptor

        getDisplayName, init
    • Constructor Detail

      • ContentTypeModuleDescriptor

        public ContentTypeModuleDescriptor​(com.atlassian.plugin.module.ModuleFactory moduleFactory,
                                           ApiSupportProvider apiSupportProvider)
    • Method Detail

      • init

        public void init​(@NonNull com.atlassian.plugin.Plugin plugin,
                         @NonNull org.dom4j.Element element)
                  throws com.atlassian.plugin.PluginParseException
        Specified by:
        init in interface com.atlassian.plugin.ModuleDescriptor<ContentType>
        Overrides:
        init in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ContentType>
        Throws:
        com.atlassian.plugin.PluginParseException
      • enabled

        public void enabled()
        Specified by:
        enabled in interface com.atlassian.plugin.StateAware
        Overrides:
        enabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ContentType>
      • disabled

        public void disabled()
        Specified by:
        disabled in interface com.atlassian.plugin.StateAware
        Overrides:
        disabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ContentType>
      • getModule

        public ContentType getModule()
        Specified by:
        getModule in interface com.atlassian.plugin.ModuleDescriptor<ContentType>
        Specified by:
        getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ContentType>
      • getContentType

        public String getContentType()
        Get content type. Override this method when content type is different than the complete key.
        Returns:
        content type