com.atlassian.jira.issue.fields
Class CustomFieldImpl

java.lang.Object
  extended bycom.atlassian.jira.issue.fields.AbstractField
      extended bycom.atlassian.jira.issue.fields.NavigableFieldImpl
          extended bycom.atlassian.jira.issue.fields.NavigableOrderableFieldImpl
              extended bycom.atlassian.jira.issue.fields.NavigableHideableFieldImpl
                  extended bycom.atlassian.jira.issue.fields.CustomFieldImpl
All Implemented Interfaces:
CustomField, Field, HideableField, NavigableField, OrderableField, RequirableField

public class CustomFieldImpl
extends NavigableHideableFieldImpl
implements CustomField


Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField
ORDER_ASCENDING, ORDER_DESCENDING
 
Constructor Summary
CustomFieldImpl(GenericValue customField)
           
 
Method Summary
 java.lang.Long getCustomFieldId()
           
 java.lang.String getDescription()
           
 GenericValue getGenericValue()
           
 java.lang.String getIssueType()
           
 GenericValue getProject()
           
 boolean isInScope(User remoteUser, GenericValue project, java.util.List issueTypes)
          Determines if the custom field based on the entities passed (project or issue type) If intities is null the method will not check whether the field is hidden for any entities but return false (unless it has been manually hidden).
 boolean isIssueTypeCustomField()
           
 boolean isProjectCustomField()
           
 
Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getColumnHeadingKey, getComparator, getDefaultSortOrder, isSortable
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractField
equals, getId, getNameKey, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.fields.NavigableField
getColumnHeadingKey, getComparator, getDefaultSortOrder, isSortable
 
Methods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getNameKey
 

Constructor Detail

CustomFieldImpl

public CustomFieldImpl(GenericValue customField)
Method Detail

getGenericValue

public GenericValue getGenericValue()
Specified by:
getGenericValue in interface CustomField

getIssueType

public java.lang.String getIssueType()
Specified by:
getIssueType in interface CustomField

isProjectCustomField

public boolean isProjectCustomField()
Specified by:
isProjectCustomField in interface CustomField

isIssueTypeCustomField

public boolean isIssueTypeCustomField()
Specified by:
isIssueTypeCustomField in interface CustomField

getProject

public GenericValue getProject()
Specified by:
getProject in interface CustomField

isInScope

public boolean isInScope(User remoteUser,
                         GenericValue project,
                         java.util.List issueTypes)
Determines if the custom field based on the entities passed (project or issue type) If intities is null the method will not check whether the field is hidden for any entities but return false (unless it has been manually hidden). If entities is an empty list the method will return false only if the field is a global custom field.

Specified by:
isInScope in interface CustomField
Returns:

getCustomFieldId

public java.lang.Long getCustomFieldId()

getDescription

public java.lang.String getDescription()