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

java.lang.Object
  extended by org.cert.cc.jira.email.handler.mock.MockCustomField

public class MockCustomField
extends Object


Constructor Summary
MockCustomField(String name)
           
 
Method Summary
 String availableForBulkEdit(BulkEditBean arg0)
           
 boolean canRemoveValueFromIssueObject(Issue arg0)
           
 int compare(Issue arg0, Issue arg1)
           
 int compareTo(Object o)
           
 SearchHandler createAssociatedSearchHandler()
           
 void createValue(Issue arg0, Object arg1)
           
 List<GenericValue> getAssociatedIssueTypes()
           
 List<GenericValue> getAssociatedProjectCategories()
           
 List<GenericValue> getAssociatedProjects()
           
 String getBulkEditHtml(OperationContext arg0, Action arg1, BulkEditBean arg2, Map arg3)
           
 ClauseNames getClauseNames()
           
 String getColumnCssClass()
           
 String getColumnHeadingKey()
           
 String getColumnViewHtml(FieldLayoutItem arg0, Map arg1, Issue arg2)
           
 List getConfigurationItemTypes()
           
 List<FieldConfigScheme> getConfigurationSchemes()
           
 String getCreateHtml(FieldLayoutItem arg0, OperationContext arg1, Action arg2, Issue arg3)
           
 String getCreateHtml(FieldLayoutItem arg0, OperationContext arg1, Action arg2, Issue arg3, Map arg4)
           
 CustomFieldSearcher getCustomFieldSearcher()
           
 CustomFieldType getCustomFieldType()
           
 CustomFieldParams getCustomFieldValues(Map arg0)
           
 String getDefaultSortOrder()
           
 Object getDefaultValue(Issue arg0)
           
 String getDescription()
           
 String getEditHtml(FieldLayoutItem arg0, OperationContext arg1, Action arg2, Issue arg3)
           
 String getEditHtml(FieldLayoutItem arg0, OperationContext arg1, Action arg2, Issue arg3, Map arg4)
           
 GenericValue getGenericValue()
           
 String getHiddenFieldId()
           
 String getId()
           
 Long getIdAsLong()
           
 String getName()
           
 String getNameKey()
           
 Options getOptions(String arg0, FieldConfig arg1, JiraContextNode arg2)
           
 Options getOptions(String arg0, JiraContextNode arg1)
           
 FieldConfig getRelevantConfig(Issue arg0)
           
 FieldConfig getRelevantConfig(IssueContext arg0)
           
 FieldConfig getReleventConfig(SearchContext arg0)
           
 SortComparatorSource getSortComparatorSource()
           
 LuceneFieldSorter getSorter()
           
 Object getValue(Issue arg0)
           
 String getValueFromIssue(Issue arg0)
           
 Object getValueFromParams(Map arg0)
           
 String getViewHtml(FieldLayoutItem arg0, Action arg1, Issue arg2)
           
 String getViewHtml(FieldLayoutItem arg0, Action arg1, Issue arg2, Map arg3)
           
 String getViewHtml(FieldLayoutItem arg0, Action arg1, Issue arg2, Object arg3, Map arg4)
           
 boolean hasValue(Issue arg0)
           
 boolean isAllIssueTypes()
           
 boolean isAllProjects()
           
 boolean isEditable()
           
 boolean isEnabled()
           
 boolean isGlobal()
           
 boolean isInScope(GenericValue arg0, List<String> arg1)
           
 boolean isInScope(Project arg0, List<String> arg1)
           
 boolean isInScope(SearchContext arg0)
           
 boolean isInScope(User arg0, SearchContext arg1)
           
 boolean isRenderable()
           
 boolean isShown(Issue arg0)
           
 MessagedResult needsMove(Collection arg0, Issue arg1, FieldLayoutItem arg2)
           
 void populateDefaults(Map arg0, Issue arg1)
           
 void populateForMove(Map arg0, Issue arg1, Issue arg2)
           
 void populateFromIssue(Map arg0, Issue arg1)
           
 void populateFromParams(Map arg0, Map arg1)
           
 void populateParamsFromString(Map arg0, String arg1, Issue arg2)
           
 String prettyPrintChangeHistory(String arg0)
           
 String prettyPrintChangeHistory(String arg0, I18nHelper arg1)
           
 Set<Long> remove()
           
 void removeValueFromIssueObject(MutableIssue arg0)
           
 void setCustomFieldSearcher(CustomFieldSearcher arg0)
           
 void setDescription(String arg0)
           
 void setName(String s)
           
 void store()
           
 String toString()
           
 void updateIssue(FieldLayoutItem arg0, MutableIssue arg1, Map arg2)
           
 void updateValue(FieldLayoutItem arg0, Issue arg1, ModifiedValue arg2, IssueChangeHolder arg3)
           
 void validateFromActionParams(Map arg0, ErrorCollection arg1, FieldConfig arg2)
           
 void validateParams(OperationContext arg0, ErrorCollection arg1, I18nHelper arg2, Issue arg3, FieldScreenRenderLayoutItem arg4)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockCustomField

public MockCustomField(String name)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getColumnCssClass

public String getColumnCssClass()

getColumnHeadingKey

public String getColumnHeadingKey()

getColumnViewHtml

public String getColumnViewHtml(FieldLayoutItem arg0,
                                Map arg1,
                                Issue arg2)

getDefaultSortOrder

public String getDefaultSortOrder()

getHiddenFieldId

public String getHiddenFieldId()

getSortComparatorSource

public SortComparatorSource getSortComparatorSource()

getSorter

public LuceneFieldSorter getSorter()

prettyPrintChangeHistory

public String prettyPrintChangeHistory(String arg0)

prettyPrintChangeHistory

public String prettyPrintChangeHistory(String arg0,
                                       I18nHelper arg1)

getId

public String getId()

getName

public String getName()

getNameKey

public String getNameKey()

compareTo

public int compareTo(Object o)

getConfigurationItemTypes

public List getConfigurationItemTypes()

availableForBulkEdit

public String availableForBulkEdit(BulkEditBean arg0)

canRemoveValueFromIssueObject

public boolean canRemoveValueFromIssueObject(Issue arg0)

createValue

public void createValue(Issue arg0,
                        Object arg1)

getBulkEditHtml

public String getBulkEditHtml(OperationContext arg0,
                              Action arg1,
                              BulkEditBean arg2,
                              Map arg3)

getCreateHtml

public String getCreateHtml(FieldLayoutItem arg0,
                            OperationContext arg1,
                            Action arg2,
                            Issue arg3)

getCreateHtml

public String getCreateHtml(FieldLayoutItem arg0,
                            OperationContext arg1,
                            Action arg2,
                            Issue arg3,
                            Map arg4)

getDefaultValue

public Object getDefaultValue(Issue arg0)

getEditHtml

public String getEditHtml(FieldLayoutItem arg0,
                          OperationContext arg1,
                          Action arg2,
                          Issue arg3)

getEditHtml

public String getEditHtml(FieldLayoutItem arg0,
                          OperationContext arg1,
                          Action arg2,
                          Issue arg3,
                          Map arg4)

getValueFromParams

public Object getValueFromParams(Map arg0)
                          throws FieldValidationException
Throws:
FieldValidationException

getViewHtml

public String getViewHtml(FieldLayoutItem arg0,
                          Action arg1,
                          Issue arg2)

getViewHtml

public String getViewHtml(FieldLayoutItem arg0,
                          Action arg1,
                          Issue arg2,
                          Map arg3)

getViewHtml

public String getViewHtml(FieldLayoutItem arg0,
                          Action arg1,
                          Issue arg2,
                          Object arg3,
                          Map arg4)

hasValue

public boolean hasValue(Issue arg0)

isShown

public boolean isShown(Issue arg0)

needsMove

public MessagedResult needsMove(Collection arg0,
                                Issue arg1,
                                FieldLayoutItem arg2)

populateDefaults

public void populateDefaults(Map arg0,
                             Issue arg1)

populateForMove

public void populateForMove(Map arg0,
                            Issue arg1,
                            Issue arg2)

populateFromIssue

public void populateFromIssue(Map arg0,
                              Issue arg1)

populateFromParams

public void populateFromParams(Map arg0,
                               Map arg1)

populateParamsFromString

public void populateParamsFromString(Map arg0,
                                     String arg1,
                                     Issue arg2)
                              throws FieldValidationException
Throws:
FieldValidationException

removeValueFromIssueObject

public void removeValueFromIssueObject(MutableIssue arg0)

updateIssue

public void updateIssue(FieldLayoutItem arg0,
                        MutableIssue arg1,
                        Map arg2)

updateValue

public void updateValue(FieldLayoutItem arg0,
                        Issue arg1,
                        ModifiedValue arg2,
                        IssueChangeHolder arg3)

validateParams

public void validateParams(OperationContext arg0,
                           ErrorCollection arg1,
                           I18nHelper arg2,
                           Issue arg3,
                           FieldScreenRenderLayoutItem arg4)

createAssociatedSearchHandler

public SearchHandler createAssociatedSearchHandler()

getValueFromIssue

public String getValueFromIssue(Issue arg0)

isRenderable

public boolean isRenderable()

compare

public int compare(Issue arg0,
                   Issue arg1)
            throws IllegalArgumentException
Throws:
IllegalArgumentException

getAssociatedIssueTypes

public List<GenericValue> getAssociatedIssueTypes()

getAssociatedProjectCategories

public List<GenericValue> getAssociatedProjectCategories()

getAssociatedProjects

public List<GenericValue> getAssociatedProjects()

getClauseNames

public ClauseNames getClauseNames()

getConfigurationSchemes

public List<FieldConfigScheme> getConfigurationSchemes()

getCustomFieldSearcher

public CustomFieldSearcher getCustomFieldSearcher()

getCustomFieldType

public CustomFieldType getCustomFieldType()

getCustomFieldValues

public CustomFieldParams getCustomFieldValues(Map arg0)

getDescription

public String getDescription()

getGenericValue

public GenericValue getGenericValue()

getIdAsLong

public Long getIdAsLong()

getOptions

public Options getOptions(String arg0,
                          JiraContextNode arg1)

getOptions

public Options getOptions(String arg0,
                          FieldConfig arg1,
                          JiraContextNode arg2)

getRelevantConfig

public FieldConfig getRelevantConfig(Issue arg0)

getRelevantConfig

public FieldConfig getRelevantConfig(IssueContext arg0)

getReleventConfig

public FieldConfig getReleventConfig(SearchContext arg0)

getValue

public Object getValue(Issue arg0)

isAllIssueTypes

public boolean isAllIssueTypes()

isAllProjects

public boolean isAllProjects()

isEditable

public boolean isEditable()

isEnabled

public boolean isEnabled()

isGlobal

public boolean isGlobal()

isInScope

public boolean isInScope(SearchContext arg0)

isInScope

public boolean isInScope(Project arg0,
                         List<String> arg1)

isInScope

public boolean isInScope(GenericValue arg0,
                         List<String> arg1)

isInScope

public boolean isInScope(User arg0,
                         SearchContext arg1)

remove

public Set<Long> remove()

setCustomFieldSearcher

public void setCustomFieldSearcher(CustomFieldSearcher arg0)

setDescription

public void setDescription(String arg0)

setName

public void setName(String s)

store

public void store()

validateFromActionParams

public void validateFromActionParams(Map arg0,
                                     ErrorCollection arg1,
                                     FieldConfig arg2)


Copyright © 2012 Carnegie Mellon University