Class CustomFieldUpdateServiceImpl
java.lang.Object
com.atlassian.greenhopper.issue.fields.CustomFieldUpdateServiceImpl
- All Implemented Interfaces:
CustomFieldUpdateService
Service that updates customer fields via the manager. Compatible with JIRA 6.4+
-
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldUpdateServiceImpl(com.atlassian.jira.issue.CustomFieldManager customFieldManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateDescription(com.atlassian.jira.issue.fields.CustomField field, String newDescription) Update and save a new description for the given fieldvoidupdateFieldSearcher(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.customfields.CustomFieldSearcher searcher) Update and save the CustomFieldSearcher to be used by this fieldvoidupdateName(com.atlassian.jira.issue.fields.CustomField field, String newName) Update and save a new name for the given fieldvoidupdateNameAndDescription(com.atlassian.jira.issue.fields.CustomField field, String newName, String newDescription) Update both the name and description of the field.
-
Constructor Details
-
CustomFieldUpdateServiceImpl
public CustomFieldUpdateServiceImpl(com.atlassian.jira.issue.CustomFieldManager customFieldManager)
-
-
Method Details
-
updateName
Description copied from interface:CustomFieldUpdateServiceUpdate and save a new name for the given field- Specified by:
updateNamein interfaceCustomFieldUpdateService- Parameters:
field- to updatenewName- the name to call the field
-
updateDescription
public void updateDescription(com.atlassian.jira.issue.fields.CustomField field, String newDescription) Description copied from interface:CustomFieldUpdateServiceUpdate and save a new description for the given field- Specified by:
updateDescriptionin interfaceCustomFieldUpdateService- Parameters:
field- to updatenewDescription- the description to set on the field
-
updateNameAndDescription
public void updateNameAndDescription(com.atlassian.jira.issue.fields.CustomField field, String newName, String newDescription) Description copied from interface:CustomFieldUpdateServiceUpdate both the name and description of the field. Similar to the above methods but only performs a single save operation.- Specified by:
updateNameAndDescriptionin interfaceCustomFieldUpdateService- Parameters:
field- to updatenewName- new namenewDescription- new description
-
updateFieldSearcher
public void updateFieldSearcher(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.customfields.CustomFieldSearcher searcher) Description copied from interface:CustomFieldUpdateServiceUpdate and save the CustomFieldSearcher to be used by this field- Specified by:
updateFieldSearcherin interfaceCustomFieldUpdateService- Parameters:
field- to updatesearcher- to use
-