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
ConstructorsConstructorDescriptionAbstractWorkflowModuleDescriptor(JiraAuthenticationContext authenticationContext, OSWorkflowConfigurator workflowConfigurator, ComponentClassManager componentClassManager, com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionintprotected AbstractWorkflowModuleDescriptor<T>.com.atlassian.jira.plugin.workflow.AbstractWorkflowModuleDescriptor.PluginTypeResolvervoiddisabled()voidenabled()abstract StringGet rendered HTML from a resource defined in the plugin descriptor.protected abstract Stringprotected StringgetParamValue(com.atlassian.plugin.module.Element element, String paramName) voidinit(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) abstract booleanabstract booleanbooleanabstract booleanabstract booleanisUnique()Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtmlMethods 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, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, setBrokenMethods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocationMethods 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:
initin interfacecom.atlassian.plugin.ModuleDescriptor<T>- Overrides:
initin classAbstractJiraModuleDescriptor<T>- Throws:
com.atlassian.plugin.PluginParseException
-
enabled
public void enabled()- Specified by:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classAbstractJiraModuleDescriptor<T>
-
disabled
public void disabled()- Specified by:
disabledin interfacecom.atlassian.plugin.StateAware- Overrides:
disabledin classAbstractJiraModuleDescriptor<T>
-
getParameterName
-
getParamValue
-
getImplementationClass
-
compareTo
- Specified by:
compareToin 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()
-