Package com.atlassian.jira.workflow
Class DefaultWorkflowPropertyEditor
java.lang.Object
com.atlassian.jira.workflow.DefaultWorkflowPropertyEditor
- All Implemented Interfaces:
WorkflowPropertyEditor
- Since:
- v6.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface com.atlassian.jira.workflow.WorkflowPropertyEditor
WorkflowPropertyEditor.Result, WorkflowPropertyEditor.WorkflowPropertyEditorFactory -
Field Summary
Fields inherited from interface com.atlassian.jira.workflow.WorkflowPropertyEditor
DEFAULT_NAME_KEY, DEFAULT_VALUE_KEY -
Method Summary
Modifier and TypeMethodDescriptionaddProperty(String name, String property) Add a property to the workflow.deleteProperty(String name) Delete a property from the workflow.Return the key used by the editor in theErrorCollectionwhen reporting errors on the property key.Return the key used by the editor in theErrorCollectionwhen reporting errors on the property value.Set the key used by the editor in theErrorCollectionwhen reporting errors on the property name.updateProperty(String name, String property) Update a property on the workflow.Set the key used by the editor in theErrorCollectionwhen reporting errors on the property value.
-
Method Details
-
addProperty
Description copied from interface:WorkflowPropertyEditorAdd a property to the workflow. It is an error to try an update a property that already exists.The caller must check the returned
WorkflowPropertyEditor.Resultto work out the actual name and value saved as they may have been transformed during the save.- Specified by:
addPropertyin interfaceWorkflowPropertyEditor- Parameters:
name- the name of the property.property- the value of the property.- Returns:
- the result of the operation. The
ServiceOutcomeeither contains errors or theWorkflowPropertyEditor.Resultof the operation if successful.
-
updateProperty
Description copied from interface:WorkflowPropertyEditorUpdate a property on the workflow. A property that does not exist will be added if necessary.The caller must check the returned
WorkflowPropertyEditor.Resultto work out the actual name and value saved as they may have been transformed during the save.- Specified by:
updatePropertyin interfaceWorkflowPropertyEditor- Parameters:
name- the name of the property.property- the value of the property.- Returns:
- the result of the operation. The
ServiceOutcomeeither contains errors or theWorkflowPropertyEditor.Resultof the operation if successful.
-
deleteProperty
Description copied from interface:WorkflowPropertyEditorDelete a property from the workflow.- Specified by:
deletePropertyin interfaceWorkflowPropertyEditor- Parameters:
name- the name of the property.- Returns:
- the result of the operation. The
ServiceOutcomeeither contains errors or theWorkflowPropertyEditor.Resultof the operation if successful.
-
nameKey
Description copied from interface:WorkflowPropertyEditorSet the key used by the editor in theErrorCollectionwhen reporting errors on the property name. The default isWorkflowPropertyEditor.DEFAULT_NAME_KEY.- Specified by:
nameKeyin interfaceWorkflowPropertyEditor- Parameters:
nameKey- the name of the key to use.- Returns:
- the current editor.
-
valueKey
Description copied from interface:WorkflowPropertyEditorSet the key used by the editor in theErrorCollectionwhen reporting errors on the property value. The default isWorkflowPropertyEditor.DEFAULT_VALUE_KEY.- Specified by:
valueKeyin interfaceWorkflowPropertyEditor- Parameters:
valueKey- the name of the key to use.- Returns:
- the current editor.
-
getNameKey
Description copied from interface:WorkflowPropertyEditorReturn the key used by the editor in theErrorCollectionwhen reporting errors on the property key.- Specified by:
getNameKeyin interfaceWorkflowPropertyEditor- Returns:
- the key used by the editor to report property name errors.
-
getValueKey
Description copied from interface:WorkflowPropertyEditorReturn the key used by the editor in theErrorCollectionwhen reporting errors on the property value.- Specified by:
getValueKeyin interfaceWorkflowPropertyEditor- Returns:
- the key used by the editor to report property key errors.
-