Class CustomFieldUpdateServiceImpl

java.lang.Object
com.atlassian.greenhopper.issue.fields.CustomFieldUpdateServiceImpl
All Implemented Interfaces:
CustomFieldUpdateService

public class CustomFieldUpdateServiceImpl extends Object implements CustomFieldUpdateService
Service that updates customer fields via the manager. Compatible with JIRA 6.4+
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomFieldUpdateServiceImpl(com.atlassian.jira.issue.CustomFieldManager customFieldManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateDescription(com.atlassian.jira.issue.fields.CustomField field, String newDescription)
    Update and save a new description for the given field
    void
    updateFieldSearcher(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.customfields.CustomFieldSearcher searcher)
    Update and save the CustomFieldSearcher to be used by this field
    void
    updateName(com.atlassian.jira.issue.fields.CustomField field, String newName)
    Update and save a new name for the given field
    void
    updateNameAndDescription(com.atlassian.jira.issue.fields.CustomField field, String newName, String newDescription)
    Update both the name and description of the field.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomFieldUpdateServiceImpl

      public CustomFieldUpdateServiceImpl(com.atlassian.jira.issue.CustomFieldManager customFieldManager)
  • Method Details

    • updateName

      public void updateName(com.atlassian.jira.issue.fields.CustomField field, String newName)
      Description copied from interface: CustomFieldUpdateService
      Update and save a new name for the given field
      Specified by:
      updateName in interface CustomFieldUpdateService
      Parameters:
      field - to update
      newName - the name to call the field
    • updateDescription

      public void updateDescription(com.atlassian.jira.issue.fields.CustomField field, String newDescription)
      Description copied from interface: CustomFieldUpdateService
      Update and save a new description for the given field
      Specified by:
      updateDescription in interface CustomFieldUpdateService
      Parameters:
      field - to update
      newDescription - 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: CustomFieldUpdateService
      Update both the name and description of the field. Similar to the above methods but only performs a single save operation.
      Specified by:
      updateNameAndDescription in interface CustomFieldUpdateService
      Parameters:
      field - to update
      newName - new name
      newDescription - new description
    • updateFieldSearcher

      public void updateFieldSearcher(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.customfields.CustomFieldSearcher searcher)
      Description copied from interface: CustomFieldUpdateService
      Update and save the CustomFieldSearcher to be used by this field
      Specified by:
      updateFieldSearcher in interface CustomFieldUpdateService
      Parameters:
      field - to update
      searcher - to use