Class AbstractWorkflowModuleDescriptor<T>
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<T>
com.atlassian.jira.plugin.workflow.AbstractWorkflowModuleDescriptor<T>
- All Implemented Interfaces:
JiraResourcedModuleDescriptor<T>
,com.atlassian.plugin.ModuleDescriptor<T>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
,Comparable<AbstractWorkflowModuleDescriptor<T>>
- Direct Known Subclasses:
WorkflowConditionModuleDescriptor
,WorkflowFunctionModuleDescriptor
,WorkflowValidatorModuleDescriptor
public abstract class AbstractWorkflowModuleDescriptor<T>
extends AbstractJiraModuleDescriptor<T>
implements Comparable<AbstractWorkflowModuleDescriptor<T>>
-
Field Summary
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
-
Constructor Summary
ConstructorDescriptionAbstractWorkflowModuleDescriptor
(JiraAuthenticationContext authenticationContext, OSWorkflowConfigurator workflowConfigurator, ComponentClassManager componentClassManager, com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionint
protected AbstractWorkflowModuleDescriptor<T>.com.atlassian.jira.plugin.workflow.AbstractWorkflowModuleDescriptor.PluginTypeResolver
void
disabled()
void
enabled()
abstract String
Get rendered HTML from a resource defined in the plugin descriptor.protected abstract String
protected String
getParamValue
(com.atlassian.plugin.module.Element element, String paramName) void
init
(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) abstract boolean
abstract boolean
boolean
abstract boolean
abstract boolean
isUnique()
Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtml
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescriptionKey, getDisplayName, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocation
Methods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Constructor Details
-
AbstractWorkflowModuleDescriptor
public AbstractWorkflowModuleDescriptor(JiraAuthenticationContext authenticationContext, OSWorkflowConfigurator workflowConfigurator, ComponentClassManager componentClassManager, com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
-
Method Details
-
init
public void init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException - Specified by:
init
in interfacecom.atlassian.plugin.ModuleDescriptor<T>
- Overrides:
init
in classAbstractJiraModuleDescriptor<T>
- Throws:
com.atlassian.plugin.PluginParseException
-
enabled
public void enabled()- Specified by:
enabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
enabled
in classAbstractJiraModuleDescriptor<T>
-
disabled
public void disabled()- Specified by:
disabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
disabled
in classAbstractJiraModuleDescriptor<T>
-
getParameterName
-
getParamValue
-
getImplementationClass
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-
getHtml
public abstract String getHtml(String resourceName, com.opensymphony.workflow.loader.AbstractDescriptor descriptor) Get rendered HTML from a resource defined in the plugin descriptor.- Parameters:
resourceName
- Eg. "view" or "input-parameters"descriptor
- ??- Returns:
- HTML rendered from resource (eg. velocity template or JSP)
-
isOrderable
public abstract boolean isOrderable() -
isUnique
public abstract boolean isUnique() -
isDeletable
public abstract boolean isDeletable() -
isAddable
-
isEditable
public boolean isEditable() -
createPluginTypeResolver
protected AbstractWorkflowModuleDescriptor<T>.com.atlassian.jira.plugin.workflow.AbstractWorkflowModuleDescriptor.PluginTypeResolver createPluginTypeResolver()
-