Class AbstractCapabilityTypeModule

    • Constructor Detail

      • AbstractCapabilityTypeModule

        public AbstractCapabilityTypeModule()
    • Method Detail

      • getSortOrder

        public int getSortOrder()
        Description copied from interface: CapabilityType
        Specifies how early in the UI the type should be shown
        Specified by:
        getSortOrder in interface CapabilityType
        Returns:
      • getNewKeyFromLabel

        @NotNull
        public @NotNull String getNewKeyFromLabel​(@NotNull
                                                  @NotNull String oldKey,
                                                  @NotNull
                                                  @NotNull String label)
        Description copied from interface: CapabilityType
        From the key and label, return a new key. This is used in the rename process
        Specified by:
        getNewKeyFromLabel in interface CapabilityType
        Returns:
      • getEditHtml

        public String getEditHtml()
        Renders the edit form using the ftl template declared in module descriptor.

        This method sets this as capabilityType variable which you can use in the template

        Override this method if you need custom rendering.

        Specified by:
        getEditHtml in interface CapabilityTypeModule
        Returns:
        the Edit html
      • init

        public void init​(@NotNull
                         @NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
        Description copied from interface: InitablePluginModule
        Initialises the Plugin with the plugin module descriptor
        Specified by:
        init in interface InitablePluginModule
        Parameters:
        moduleDescriptor - Plugin module descriptor
      • setTemplateRenderer

        @Deprecated
        public void setTemplateRenderer​(TemplateRenderer templateRenderer)
        Deprecated.
        since 6.8 use constructor injection or annotation injection