Class DateCustomFieldOperationsHandler
java.lang.Object
com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler<String>
com.atlassian.jira.issue.customfields.impl.rest.DateCustomFieldOperationsHandler
- All Implemented Interfaces:
RestFieldOperationsHandler
Basic operation handler for single value Text Fields.
- Since:
- v5.0
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler
field, i18nHelper
-
Constructor Summary
ConstructorsConstructorDescriptionDateCustomFieldOperationsHandler
(CustomField field, DateFieldFormat dateFieldFormat, I18nHelper i18nHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finaliseOperation
(String finalValue, IssueInputParameters parameters, ErrorCollection errors) takes the value returnd by a call to applyOperation() and puts it into the inputparamsprotected String
getInitialCreateValue
(IssueContext issueCtx) compute the "currentValue" to be passed to applyOperation()protected String
getInitialValue
(Issue issue, ErrorCollection errors) compute the "currentValue" to be passed to applyOperation()protected String
handleSetOperation
(IssueContext issueCtx, Issue issue, String currentFieldValue, JsonData operationValue, ErrorCollection errors) Methods inherited from class com.atlassian.jira.issue.customfields.impl.rest.AbstractCustomFieldOperationsHandler
applyOperation, getSupportedOperations, handleAddOperation, handleRemoveOperation, updateIssueInputParameters
-
Constructor Details
-
DateCustomFieldOperationsHandler
public DateCustomFieldOperationsHandler(CustomField field, DateFieldFormat dateFieldFormat, I18nHelper i18nHelper)
-
-
Method Details
-
getInitialValue
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialValue
in classAbstractCustomFieldOperationsHandler<String>
-
getInitialCreateValue
compute the "currentValue" to be passed to applyOperation()- Specified by:
getInitialCreateValue
in classAbstractCustomFieldOperationsHandler<String>
- Parameters:
issueCtx
-
-
finaliseOperation
protected void finaliseOperation(String finalValue, IssueInputParameters parameters, ErrorCollection errors) takes the value returnd by a call to applyOperation() and puts it into the inputparams- Specified by:
finaliseOperation
in classAbstractCustomFieldOperationsHandler<String>
-
handleSetOperation
protected String handleSetOperation(IssueContext issueCtx, Issue issue, String currentFieldValue, JsonData operationValue, ErrorCollection errors) - Overrides:
handleSetOperation
in classAbstractCustomFieldOperationsHandler<String>
-