com.atlassian.greenhopper.web.rapid.issue.fields
Class NumberCustomField
java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.fields.NumberCustomField
- All Implemented Interfaces:
- ComplexEditableField, Field, SimpleEditableField
public class NumberCustomField
- extends java.lang.Object
- implements Field, SimpleEditableField, ComplexEditableField
Number custom fields.
These are ComplexEditableField because we have to do some pre-validation on update to ensure user does not enter
negative numbers. However, we are also SimpleEditableField so that we can reuse FieldHelper.updateField(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, SimpleEditableField, String).
|
Method Summary |
void |
addIssueInputParameters(com.atlassian.jira.issue.IssueInputParametersImpl issueInputParameters,
java.lang.String newValue)
Modify the parameters accordingly to register this field's update. |
FieldEntry |
createEditEntry(I18n2 i18n,
com.atlassian.jira.issue.Issue issue,
com.atlassian.crowd.embedded.api.User user)
|
FieldEntry |
createViewEntry(I18n2 i18n,
com.atlassian.jira.issue.Issue issue,
com.atlassian.crowd.embedded.api.User user)
|
java.lang.String |
getId()
|
ServiceOutcome<java.lang.Void> |
updateField(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue,
java.lang.String newValue)
Field will update the issue itself to the new value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberCustomField
public NumberCustomField(com.atlassian.jira.issue.fields.CustomField customField,
FieldHelper fieldHelper)
getId
public java.lang.String getId()
- Specified by:
getId in interface Field
createViewEntry
public FieldEntry createViewEntry(I18n2 i18n,
com.atlassian.jira.issue.Issue issue,
com.atlassian.crowd.embedded.api.User user)
- Specified by:
createViewEntry in interface Field
createEditEntry
public FieldEntry createEditEntry(I18n2 i18n,
com.atlassian.jira.issue.Issue issue,
com.atlassian.crowd.embedded.api.User user)
- Specified by:
createEditEntry in interface Field
addIssueInputParameters
public void addIssueInputParameters(com.atlassian.jira.issue.IssueInputParametersImpl issueInputParameters,
java.lang.String newValue)
- Description copied from interface:
SimpleEditableField
- Modify the parameters accordingly to register this field's update.
- Specified by:
addIssueInputParameters in interface SimpleEditableField
- Parameters:
issueInputParameters - the parameters to modifynewValue - the new value
updateField
public ServiceOutcome<java.lang.Void> updateField(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue,
java.lang.String newValue)
- Description copied from interface:
ComplexEditableField
- Field will update the issue itself to the new value.
- Specified by:
updateField in interface ComplexEditableField
- Parameters:
user - the user performing the updateissue - the issue to be updatednewValue - the new value
- Returns:
- the outcome - may contain errors
Copyright © 2007-2012 Atlassian. All Rights Reserved.