org.cert.cc.jira
Class CustomFieldFactoryImpl

java.lang.Object
  extended by org.cert.cc.jira.CustomFieldFactoryImpl
All Implemented Interfaces:
CustomFieldFactory

public final class CustomFieldFactoryImpl
extends Object
implements CustomFieldFactory

CustomFieldFactoryImpl handles JIRA Custom Fields

© 2012 Carnegie Mellon University

Author:
Steve Scholnick

Constructor Summary
CustomFieldFactoryImpl()
           
 
Method Summary
 boolean fieldExistsByName(String name)
          Returns if the field exists by name
 CustomField getCustomField(String name)
          Returns the custom field itself
 String updateCustomFieldOnIssue(CustomField cf, MutableIssue issue, String value)
          This will correctly set a single custom value field on a mutable issue that has not been persisted yet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldFactoryImpl

public CustomFieldFactoryImpl()
Method Detail

updateCustomFieldOnIssue

public String updateCustomFieldOnIssue(CustomField cf,
                                       MutableIssue issue,
                                       String value)
This will correctly set a single custom value field on a mutable issue that has not been persisted yet. Primary use for this method would be during creation of a brand new issue with custom fields.

Specified by:
updateCustomFieldOnIssue in interface CustomFieldFactory
Parameters:
cf - - {@link CustomField)
issue - - MutableIssue
value - - String value to put into the custom field.

fieldExistsByName

public boolean fieldExistsByName(String name)
Returns if the field exists by name

Specified by:
fieldExistsByName in interface CustomFieldFactory

getCustomField

public CustomField getCustomField(String name)
Returns the custom field itself

Specified by:
getCustomField in interface CustomFieldFactory


Copyright © 2012 Carnegie Mellon University