com.atlassian.jira.web.bean
Class WorkflowDescriptorFormatBean

java.lang.Object
  extended by com.atlassian.jira.web.bean.WorkflowDescriptorFormatBean
Direct Known Subclasses:
WorkflowConditionFormatBean

public class WorkflowDescriptorFormatBean
extends Object


Constructor Summary
WorkflowDescriptorFormatBean()
           
WorkflowDescriptorFormatBean(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 WorkflowDescriptorInfo formatDescriptor(com.opensymphony.workflow.loader.AbstractDescriptor descriptor)
           
 String getDeleteAction()
           
 Collection getDescriptorCollection()
           
 String getEditAction()
           
 String getOperatorTextKey()
           
 String getParentPrefix()
           
 String getPluginType()
           
protected  AbstractWorkflowModuleDescriptor getWorkflowModuleDescriptor(String className, String pluginType)
           
 boolean isAllowNested()
           
 boolean isDelete()
           
 boolean isEdit()
           
 boolean isHasRelevantArgs(Map args)
           
 boolean isHighlighted(int count, String current)
          Determines if the condition is the 'current' one, and should be highlighted.
 boolean isMultipleDescriptors()
          Determines if the descriptorCollection has only one element in it.
 boolean isOrderable()
           
 boolean isSingleDescriptor()
          Determines if the descriptorCollection has more than one element in it.
 void setDelete(boolean delete)
           
 void setDeleteAction(String deleteAction)
           
 void setDescriptorCollection(Collection descriptorCollection)
           
 void setEdit(boolean edit)
           
 void setEditAction(String editAction)
           
 void setOperatorTextKey(String operatorTextKey)
           
 void setOrderable(boolean orderable)
           
 void setParentPrefix(String parentPrefix)
           
 void setPluginType(String pluginType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowDescriptorFormatBean

public WorkflowDescriptorFormatBean(com.atlassian.plugin.PluginAccessor pluginAccessor)

WorkflowDescriptorFormatBean

public WorkflowDescriptorFormatBean()
Method Detail

formatDescriptor

public WorkflowDescriptorInfo formatDescriptor(com.opensymphony.workflow.loader.AbstractDescriptor descriptor)

getWorkflowModuleDescriptor

protected AbstractWorkflowModuleDescriptor getWorkflowModuleDescriptor(String className,
                                                                       String pluginType)
                                                                throws com.atlassian.plugin.PluginParseException
Throws:
com.atlassian.plugin.PluginParseException

getDescriptorCollection

public Collection getDescriptorCollection()

setDescriptorCollection

public void setDescriptorCollection(Collection descriptorCollection)

isDelete

public boolean isDelete()

setDelete

public void setDelete(boolean delete)

isOrderable

public boolean isOrderable()

setOrderable

public void setOrderable(boolean orderable)

isEdit

public boolean isEdit()

setEdit

public void setEdit(boolean edit)

getDeleteAction

public String getDeleteAction()

setDeleteAction

public void setDeleteAction(String deleteAction)

getEditAction

public String getEditAction()

setEditAction

public void setEditAction(String editAction)

getPluginType

public String getPluginType()

setPluginType

public void setPluginType(String pluginType)

isHasRelevantArgs

public boolean isHasRelevantArgs(Map args)

getOperatorTextKey

public String getOperatorTextKey()

setOperatorTextKey

public void setOperatorTextKey(String operatorTextKey)

getParentPrefix

public String getParentPrefix()

setParentPrefix

public void setParentPrefix(String parentPrefix)

isAllowNested

public boolean isAllowNested()

isHighlighted

public boolean isHighlighted(int count,
                             String current)
Determines if the condition is the 'current' one, and should be highlighted. For example, when a condition is added to a Conditions block it is highlighted.

This method is used from JSPs.


isMultipleDescriptors

public boolean isMultipleDescriptors()
Determines if the descriptorCollection has only one element in it.

This method is used from JSPs.


isSingleDescriptor

public boolean isSingleDescriptor()
Determines if the descriptorCollection has more than one element in it.

This method is used from JSPs.



Copyright © 2002-2012 Atlassian. All Rights Reserved.