com.pyxis.greenhopper.jira.fields
Class AbstractReadOnlyField

java.lang.Object
  extended by com.pyxis.greenhopper.jira.fields.AbstractIssueField
      extended by com.pyxis.greenhopper.jira.fields.AbstractTextField
          extended by com.pyxis.greenhopper.jira.fields.AbstractReadOnlyField
All Implemented Interfaces:
IssueField, IssueTextField
Direct Known Subclasses:
CustomFieldReadOnly, IssueKey, ParentStatusField, StatusField

public abstract class AbstractReadOnlyField
extends AbstractTextField


Field Summary
static java.lang.String READONLY
           
 
Fields inherited from class com.pyxis.greenhopper.jira.fields.AbstractIssueField
GREENHOPPER_PLUGIN, GROUP_PICKER, id, idLong, label, log, MULTI_GROUP_PICKER, MULTI_SELECT, MULTI_USER_PICKER, NUMBER, SELECT, TEXT, TEXT_AREA, TEXT_FIELD, USER_PICKER
 
Constructor Summary
AbstractReadOnlyField(java.lang.String id, java.lang.String label)
           
 
Method Summary
 boolean canEdit(BoardIssue boardIssue)
           
 void doValidate(BoardIssue boardIssue, java.lang.String newValue)
           
 java.lang.String getCreateTemplate()
           
 java.lang.String getDefaultDisplayValue(BoardIssue boardIssue)
           
 java.lang.Object getDefaultValue(BoardIssue boardIssue)
           
 java.lang.String getEditTemplate()
           
 java.lang.String getType()
           
 boolean isNumeric()
           
 void updateValue(BoardIssue boardIssue, java.lang.String newValue)
           
 
Methods inherited from class com.pyxis.greenhopper.jira.fields.AbstractTextField
getDisplayTemplate, getInputType, getValueFromString, lines, weight
 
Methods inherited from class com.pyxis.greenhopper.jira.fields.AbstractIssueField
equals, getCssType, getId, getIdAsLong, getJsonDisplayTemplate, getLabel, getLink, getTransitionTemplate, getUpdateTemplate, hashCode, isClickable, isCorner, isCustomField, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pyxis.greenhopper.jira.fields.IssueField
getDisplayValue, getTooltipValue, getValue
 

Field Detail

READONLY

public static final java.lang.String READONLY
See Also:
Constant Field Values
Constructor Detail

AbstractReadOnlyField

public AbstractReadOnlyField(java.lang.String id,
                             java.lang.String label)
Method Detail

getType

public java.lang.String getType()

getEditTemplate

public java.lang.String getEditTemplate()
Specified by:
getEditTemplate in interface IssueField
Overrides:
getEditTemplate in class AbstractTextField

getCreateTemplate

public java.lang.String getCreateTemplate()
Specified by:
getCreateTemplate in interface IssueField
Overrides:
getCreateTemplate in class AbstractTextField

canEdit

public boolean canEdit(BoardIssue boardIssue)

updateValue

public void updateValue(BoardIssue boardIssue,
                        java.lang.String newValue)
                 throws GreenHopperException,
                        java.lang.Exception
Throws:
GreenHopperException
java.lang.Exception

getDefaultDisplayValue

public java.lang.String getDefaultDisplayValue(BoardIssue boardIssue)

getDefaultValue

public java.lang.Object getDefaultValue(BoardIssue boardIssue)

doValidate

public void doValidate(BoardIssue boardIssue,
                       java.lang.String newValue)
                throws GreenHopperException
Specified by:
doValidate in class AbstractIssueField
Throws:
GreenHopperException

isNumeric

public boolean isNumeric()


Copyright © 2007-2014 Atlassian. All Rights Reserved.