|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.fields.AbstractField com.atlassian.jira.issue.fields.NavigableFieldImpl com.atlassian.jira.issue.fields.CustomFieldImpl
Field Summary | |
static java.lang.String |
ENTITY_CF_TYPE_KEY
|
static java.lang.String |
ENTITY_CUSTOM_FIELD_SEARCHER
|
static java.lang.String |
ENTITY_DESCRIPTION
|
static java.lang.String |
ENTITY_ID
|
static java.lang.String |
ENTITY_ISSUETYPE
|
static java.lang.String |
ENTITY_NAME
|
static java.lang.String |
ENTITY_PROJECT
|
Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField |
ORDER_ASCENDING, ORDER_DESCENDING |
Constructor Summary | |
CustomFieldImpl(org.ofbiz.core.entity.GenericValue customField,
CustomFieldManager customFieldManager)
|
Method Summary | |
int |
compare(org.ofbiz.core.entity.GenericValue issue1,
org.ofbiz.core.entity.GenericValue issue2)
|
void |
createValue(org.ofbiz.core.entity.GenericValue issue,
java.lang.Object value)
|
java.util.Comparator |
getComparator()
|
CustomFieldSearcher |
getCustomFieldSearcher()
|
CustomFieldType |
getCustomFieldType()
|
CustomFieldParams |
getCustomFieldValues(java.util.Map customFieldValuesHolder)
Get the custom field string values that are relevant to this particular custom field |
java.lang.String |
getDescription()
|
org.ofbiz.core.entity.GenericValue |
getGenericValue()
Deprecated. |
java.lang.String |
getIssueType()
|
java.lang.String |
getName()
|
Options |
getOptions(java.lang.String key,
ProjectIssueType projectIssueType)
A list of the available options for this custom field. |
org.ofbiz.core.entity.GenericValue |
getProject()
This method returns the project in which the custom field has been associated with . |
protected CustomFieldParams |
getRelevantParams(java.util.Map params)
|
java.lang.String |
getSearchDescription(SearchParameter searchParameter)
|
java.lang.Object |
getValue(org.ofbiz.core.entity.GenericValue issue)
As far as I can tell - this is just an object that contains the value of a custom field, so that it can be passed around. |
java.lang.Object |
getValueFromParams(java.util.Map params)
Get a custom field value from the map of parameters passed. |
void |
index(org.apache.lucene.document.Document doc,
org.ofbiz.core.entity.GenericValue issue)
|
boolean |
isEditable()
|
boolean |
isInScope(com.opensymphony.user.User remoteUser,
org.ofbiz.core.entity.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()
|
boolean |
isSortable()
|
java.util.List |
makeSearchParameter(CustomFieldParams params)
|
void |
populateDefaults(java.util.Map customFieldValuesHolder)
|
void |
populateFromIssue(java.util.Map customFieldValuesHolder,
org.ofbiz.core.entity.GenericValue issue)
|
void |
populateFromParams(java.util.Map customFieldValuesHolder,
java.util.Map params)
|
void |
populateFromSearchRequest(java.util.Map customFieldValuesHolder,
SearchRequest searchRequest)
|
java.util.Set |
remove()
return set of issues affected |
void |
setCustomFieldSearcher(CustomFieldSearcher searcher)
|
void |
setDescription(java.lang.String description)
|
void |
setIssueType(java.lang.String issueType)
|
void |
setName(java.lang.String name)
|
void |
store()
|
java.lang.String |
toString()
|
ChangeItemBean |
updateValue(org.ofbiz.core.entity.GenericValue issue,
java.lang.Object newValue)
|
void |
validateParams(java.util.Map params,
ErrorCollection errorCollectionToAddTo)
|
(package private) boolean |
valuesEqual(java.lang.Object v1,
java.lang.Object v2)
|
(package private) boolean |
valuesEqual1(java.lang.Object v1,
java.lang.Object v2)
|
Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl |
getColumnHeadingKey, getDefaultSortOrder, setComparator, setDefaultSortOrder, setSortable |
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, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.issue.fields.NavigableField |
getColumnHeadingKey, getDefaultSortOrder |
Methods inherited from interface com.atlassian.jira.issue.fields.Field |
getId, getNameKey |
Field Detail |
public static final java.lang.String ENTITY_CF_TYPE_KEY
public static final java.lang.String ENTITY_CUSTOM_FIELD_SEARCHER
public static final java.lang.String ENTITY_NAME
public static final java.lang.String ENTITY_ISSUETYPE
public static final java.lang.String ENTITY_PROJECT
public static final java.lang.String ENTITY_ID
public static final java.lang.String ENTITY_DESCRIPTION
Constructor Detail |
public CustomFieldImpl(org.ofbiz.core.entity.GenericValue customField, CustomFieldManager customFieldManager)
Method Detail |
public java.lang.String getName()
getName
in interface CustomField
public void setName(java.lang.String name)
setName
in interface CustomField
public java.lang.String getDescription()
getDescription
in interface CustomField
public void setDescription(java.lang.String description)
setDescription
in interface CustomField
public CustomFieldSearcher getCustomFieldSearcher()
getCustomFieldSearcher
in interface CustomField
public void setCustomFieldSearcher(CustomFieldSearcher searcher)
setCustomFieldSearcher
in interface CustomField
public void store()
store
in interface CustomField
public org.ofbiz.core.entity.GenericValue getGenericValue()
getGenericValue
in interface CustomField
public java.lang.String getIssueType()
getIssueType
in interface CustomField
public void setIssueType(java.lang.String issueType)
setIssueType
in interface CustomField
public boolean isProjectCustomField()
isProjectCustomField
in interface CustomField
public boolean isIssueTypeCustomField()
isIssueTypeCustomField
in interface CustomField
public org.ofbiz.core.entity.GenericValue getProject()
getProject
in interface CustomField
java.lang.IllegalArgumentException
- if not a Project custom fieldpublic boolean isInScope(com.opensymphony.user.User remoteUser, org.ofbiz.core.entity.GenericValue project, java.util.List issueTypes)
isInScope
in interface CustomField
public CustomFieldType getCustomFieldType()
getCustomFieldType
in interface CustomField
public java.lang.Object getValue(org.ofbiz.core.entity.GenericValue issue)
CustomField
Multiselects will return a list, dates a date,
getValue
in interface CustomField
CustomField.getValueFromParams(java.util.Map)
public void index(org.apache.lucene.document.Document doc, org.ofbiz.core.entity.GenericValue issue)
index
in interface CustomField
public ChangeItemBean updateValue(org.ofbiz.core.entity.GenericValue issue, java.lang.Object newValue)
updateValue
in interface CustomField
boolean valuesEqual1(java.lang.Object v1, java.lang.Object v2)
boolean valuesEqual(java.lang.Object v1, java.lang.Object v2)
public int compare(org.ofbiz.core.entity.GenericValue issue1, org.ofbiz.core.entity.GenericValue issue2)
compare
in interface CustomField
public java.util.Comparator getComparator()
getComparator
in interface NavigableField
getComparator
in class NavigableFieldImpl
public boolean isSortable()
isSortable
in interface NavigableField
isSortable
in class NavigableFieldImpl
public boolean isEditable()
isEditable
in interface CustomField
public java.util.List makeSearchParameter(CustomFieldParams params)
makeSearchParameter
in interface CustomField
public java.lang.String getSearchDescription(SearchParameter searchParameter)
getSearchDescription
in interface CustomField
public Options getOptions(java.lang.String key, ProjectIssueType projectIssueType)
CustomField
As this is just used by the view layer, it can be a list of objects
getOptions
in interface CustomField
public void populateDefaults(java.util.Map customFieldValuesHolder)
populateDefaults
in interface CustomField
public void populateFromParams(java.util.Map customFieldValuesHolder, java.util.Map params)
populateFromParams
in interface CustomField
public void populateFromIssue(java.util.Map customFieldValuesHolder, org.ofbiz.core.entity.GenericValue issue)
populateFromIssue
in interface CustomField
public void populateFromSearchRequest(java.util.Map customFieldValuesHolder, SearchRequest searchRequest)
populateFromSearchRequest
in interface CustomField
public java.lang.Object getValueFromParams(java.util.Map params) throws CustomFieldValidationException
CustomField
This method is only used when creating an issue, and the value is passed back to CustomField.createValue(org.ofbiz.core.entity.GenericValue, java.lang.Object)
getValueFromParams
in interface CustomField
CustomFieldValidationException
public void createValue(org.ofbiz.core.entity.GenericValue issue, java.lang.Object value)
createValue
in interface CustomField
public void validateParams(java.util.Map params, ErrorCollection errorCollectionToAddTo)
validateParams
in interface CustomField
public CustomFieldParams getCustomFieldValues(java.util.Map customFieldValuesHolder)
CustomField
getCustomFieldValues
in interface CustomField
customFieldValuesHolder
- containing all params
String
objectspublic java.util.Set remove()
CustomField
remove
in interface CustomField
protected CustomFieldParams getRelevantParams(java.util.Map params)
params
-
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |