Class AutomationTriggerModuleDescriptor

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.plugin.automation.core.Trigger>
com.codebarrel.jira.plugin.automation.module.legacy.AutomationTriggerModuleDescriptor
All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<com.atlassian.plugin.automation.core.Trigger>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware, Comparable<AutomationTriggerModuleDescriptor>

public class AutomationTriggerModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.plugin.automation.core.Trigger> implements Comparable<AutomationTriggerModuleDescriptor>
  • Field Summary

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

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

    Constructors
    Constructor
    Description
    AutomationTriggerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    com.atlassian.plugin.automation.core.Trigger
     
    boolean
    This allows this rule component to be added in project specific rules in the project admin section Pluggable components should only allow this if the rule component is safe to be used by project administrators and cannot be used by them to escalate their permissions.
    protected void
    validate(com.atlassian.plugin.module.Element element)
     

    Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

    assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, init, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.atlassian.plugin.ModuleDescriptor

    getDisplayName
  • Constructor Details

    • AutomationTriggerModuleDescriptor

      public AutomationTriggerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
  • Method Details

    • validate

      protected void validate(com.atlassian.plugin.module.Element element)
      Overrides:
      validate in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.plugin.automation.core.Trigger>
    • getModule

      public com.atlassian.plugin.automation.core.Trigger getModule()
      Specified by:
      getModule in interface com.atlassian.plugin.ModuleDescriptor<com.atlassian.plugin.automation.core.Trigger>
      Specified by:
      getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<com.atlassian.plugin.automation.core.Trigger>
    • compareTo

      public int compareTo(AutomationTriggerModuleDescriptor otherDescriptor)
      Specified by:
      compareTo in interface Comparable<AutomationTriggerModuleDescriptor>
    • isProjectSafe

      public boolean isProjectSafe()
      This allows this rule component to be added in project specific rules in the project admin section Pluggable components should only allow this if the rule component is safe to be used by project administrators and cannot be used by them to escalate their permissions. This generally means:
      • Don't use velocity rendering (velocity allows access to any underlying objects and methods which could be used to get around permission checks)
      • Perform appropriate permission checks in your server-side validation if your rule action can perform actions that now all users should be able to do.

      Return false by default.

      Returns:
      true if this module can show up in project admin