|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Custom Field interface.
Typically one obtains a CustomField using CustomFieldManager
,
eg. CustomFieldManager.getCustomFieldObjectByName(String)
To create or update an instance of a CustomField for an issue (a CustomFieldValue
),
use OrderableField.createValue(com.atlassian.jira.issue.Issue, Object)
or OrderableField.updateValue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem,com.atlassian.jira.issue.Issue,com.atlassian.jira.issue.ModifiedValue,com.atlassian.jira.issue.util.IssueChangeHolder)
.
CustomFieldValue - a value of this field for a specific issue
,
CustomFieldType - The type of custom field (text, number, user picker etc).
Field Summary |
Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField |
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH |
Fields inherited from interface com.atlassian.jira.issue.fields.OrderableField |
MOVE_ISSUE_PARAM_KEY, TEMPLATE_DIRECTORY_PATH |
Method Summary | |
int |
compare(Issue issue1,
Issue issue2)
|
List |
getAssociatedIssueTypes()
Returns a list of issue types associated with this project. |
List |
getAssociatedProjectCategories()
|
List |
getAssociatedProjects()
Returns a list of projects associated with this project. |
List |
getConfigurationSchemes()
|
CustomFieldSearcher |
getCustomFieldSearcher()
|
CustomFieldType |
getCustomFieldType()
|
CustomFieldParams |
getCustomFieldValues(Map customFieldValuesHolder)
Get the custom field string values that are relevant to this particular custom field |
String |
getDescription()
|
FieldConfig |
getFirstReleventConfig(org.ofbiz.core.entity.GenericValue project,
List issueTypeIds)
|
org.ofbiz.core.entity.GenericValue |
getGenericValue()
Deprecated. |
Long |
getIdAsLong()
|
Options |
getOptions(String key,
FieldConfig config,
JiraContextNode contextNode)
|
Options |
getOptions(String key,
JiraContextNode jiraContextNode)
A list of the available options for this custom field. |
FieldConfig |
getRelevantConfig(Issue issue)
Returns the field configuration applying to this field in the specified issue. |
FieldConfig |
getRelevantConfig(IssueContext issueContext)
|
FieldConfig |
getReleventConfig(SearchContext searchContext)
The FieldConfig that is relevent to all issue contexts in the search context |
Object |
getValue(Issue issue)
As far as I can tell - this is just an object that contains the value of a custom field, so that it can be passed around. |
boolean |
isAllIssueTypes()
|
boolean |
isAllProjects()
|
boolean |
isEditable()
|
boolean |
isEnabled()
Returns if the custom field is enabled for any issue type / projects |
boolean |
isGlobal()
Returns true if the custom field applies for all projects and all issue types |
boolean |
isInScope(User remoteUser,
org.ofbiz.core.entity.GenericValue project,
List issueTypeIds)
This is used for determining whether we can view a custom field in view issue |
boolean |
isInScope(User user,
SearchContext searchContext)
|
Set |
remove()
return set of issues affected |
void |
setCustomFieldSearcher(CustomFieldSearcher searcher)
|
void |
setDescription(String description)
|
void |
setName(String name)
|
void |
store()
|
void |
validateFromActionParams(Map actionParameters,
ErrorCollection errorCollection,
FieldConfig config)
|
Methods inherited from interface com.atlassian.jira.issue.fields.NavigableField |
getColumnCssClass, getColumnHeadingKey, getColumnViewHtml, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getSorter, prettyPrintChangeHistory |
Methods inherited from interface com.atlassian.jira.issue.fields.Field |
getId, getName, getNameKey |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface com.atlassian.jira.issue.fields.ConfigurableField |
getConfigurationItemTypes |
Methods inherited from interface com.atlassian.jira.issue.fields.OrderableField |
availableForBulkEdit, createValue, getBulkEditHtml, getCreateHtml, getCreateHtml, getDefaultValue, getEditHtml, getEditHtml, getValueFromParams, getViewHtml, getViewHtml, getViewHtml, hasValue, isShown, needsMove, populateDefaults, populateForMove, populateFromIssue, populateFromParams, populateParamsFromString, removeValue, updateIssue, updateValue, validateParams |
Methods inherited from interface com.atlassian.jira.issue.fields.SearchableField |
getAssociatedSearchers |
Methods inherited from interface com.atlassian.jira.issue.fields.renderer.RenderableField |
getId, getValueFromIssue, isRenderable |
Method Detail |
public boolean isInScope(User remoteUser, org.ofbiz.core.entity.GenericValue project, List issueTypeIds)
public org.ofbiz.core.entity.GenericValue getGenericValue()
public int compare(Issue issue1, Issue issue2)
public CustomFieldParams getCustomFieldValues(Map customFieldValuesHolder)
customFieldValuesHolder
- containing all params
CustomFieldParams
of String
objectspublic Object getValue(Issue issue)
Multiselects will return a list, dates a date,
OrderableField.getValueFromParams(java.util.Map)
public Set remove()
public Options getOptions(String key, JiraContextNode jiraContextNode)
As this is just used by the view layer, it can be a list of objects
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public CustomFieldSearcher getCustomFieldSearcher()
public void setCustomFieldSearcher(CustomFieldSearcher searcher)
public void store()
public boolean isEditable()
public Long getIdAsLong()
public List getConfigurationSchemes()
public Options getOptions(String key, FieldConfig config, JiraContextNode contextNode)
public FieldConfig getRelevantConfig(Issue issue)
public FieldConfig getFirstReleventConfig(org.ofbiz.core.entity.GenericValue project, List issueTypeIds)
public void validateFromActionParams(Map actionParameters, ErrorCollection errorCollection, FieldConfig config)
public List getAssociatedProjectCategories()
public List getAssociatedProjects()
getAssociatedProjects
in interface ConfigurableField
public List getAssociatedIssueTypes()
public boolean isGlobal()
public boolean isAllProjects()
public boolean isAllIssueTypes()
public boolean isEnabled()
public CustomFieldType getCustomFieldType()
public FieldConfig getRelevantConfig(IssueContext issueContext)
getRelevantConfig
in interface ConfigurableField
public FieldConfig getReleventConfig(SearchContext searchContext)
FieldConfig
that is relevent to all issue contexts in the search context
searchContext
- public boolean isInScope(User user, SearchContext searchContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |