com.atlassian.jira.web.util
Interface SubTaskQuickCreationConfig

All Known Implementing Classes:
SubTaskQuickCreationConfigImpl

public interface SubTaskQuickCreationConfig

Used to provide the SubTaskQuickCreationWebComponent with configuration parameters. For example, what fields should be displayed


Method Summary
 Collection getDisplayFieldIds()
          Returns a collection of field ids taht shodu be shown on the sub task quick creation form.
 String getFieldI18nLabelKey(String fieldId)
          Returns the i18n key for the given field id if such label for such field was defined, otherwise null.
 Collection getFieldIds()
          Same as getDisplayFieldIds(), only all the emty strings are stripped out of the returned collection.
 String getPreset(String fieldId)
          Returns the default field value
 Collection getPresetFieldIds()
          Returns a collection of field ids that have default values.
 String getVelocityTemplate()
          Returns the path to the template.
 

Method Detail

getDisplayFieldIds

Collection getDisplayFieldIds()
Returns a collection of field ids taht shodu be shown on the sub task quick creation form. The collection uses empty strings to denote that an empty cell should be shown instead of a field. See IssueFieldConstants for possible field ids.

Returns:
collection of display field ids as String objects

getFieldIds

Collection getFieldIds()
Same as getDisplayFieldIds(), only all the emty strings are stripped out of the returned collection. This method is used by validation code.

Returns:
collection of field ids as String objects

getPresetFieldIds

Collection getPresetFieldIds()
Returns a collection of field ids that have default values.

Returns:
a collection of field ids that have default values.

getPreset

String getPreset(String fieldId)
Returns the default field value

Parameters:
fieldId - field id
Returns:
the default field value

getVelocityTemplate

String getVelocityTemplate()
Returns the path to the template. The value comes from application properties.

Returns:
the path to the template
See Also:
APKeys.JIRA_SUBTASK_QUICKCREATE_TEMPLATE

getFieldI18nLabelKey

String getFieldI18nLabelKey(String fieldId)
Returns the i18n key for the given field id if such label for such field was defined, otherwise null.

Parameters:
fieldId - field id
Returns:
the i18n key or null
Since:
v3.11


Copyright © 2002-2012 Atlassian. All Rights Reserved.