org.cert.cc.jira.email.handler.mock
Class MockCustomFieldFactory

java.lang.Object
  extended by org.cert.cc.jira.email.handler.mock.MockCustomFieldFactory
All Implemented Interfaces:
CustomFieldFactory

public class MockCustomFieldFactory
extends Object
implements CustomFieldFactory


Constructor Summary
MockCustomFieldFactory()
           
 
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

MockCustomFieldFactory

public MockCustomFieldFactory()
Method Detail

updateCustomFieldOnIssue

public String updateCustomFieldOnIssue(CustomField cf,
                                       MutableIssue issue,
                                       String value)
Description copied from interface: CustomFieldFactory
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)
Description copied from interface: CustomFieldFactory
Returns if the field exists by name

Specified by:
fieldExistsByName in interface CustomFieldFactory

getCustomField

public CustomField getCustomField(String name)
Description copied from interface: CustomFieldFactory
Returns the custom field itself

Specified by:
getCustomField in interface CustomFieldFactory


Copyright © 2012 Carnegie Mellon University