public interface

CustomFieldValuePersister

com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister
Known Indirect Subclasses

Summary

Public Methods
void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection value)
void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)
Set<Long> getIssueIdsWithValue(CustomField field, PersistenceFieldType persistenceFieldType, Object value)
Return a set of issue ids that have a certain value.
List<Object> getValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, String parentKey)
List<Object> getValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType)
Set<Long> removeAllValues(String customFieldId)
Called when removing a field.
Set<Long> removeValue(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Object value)
Removes a specific custom field value for the given custom field, from a given issue, of a particular type.
void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)
void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values)

Public Methods

public void createValues (CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection value)

public void createValues (CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)

public Set<Long> getIssueIdsWithValue (CustomField field, PersistenceFieldType persistenceFieldType, Object value)

Return a set of issue ids that have a certain value. This is used when you need to do a global 'swap' of a certain custom field value.

Parameters
field CustomField
persistenceFieldType PersistenceFieldType
value Value object
Returns
  • Set of Issue IDs

public List<Object> getValues (CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, String parentKey)

public List<Object> getValues (CustomField field, Long issueId, PersistenceFieldType persistenceFieldType)

public Set<Long> removeAllValues (String customFieldId)

Called when removing a field. Removes all the customfield values linked to the customfield Id provided.

Parameters
customFieldId the id of the custom field
Returns
  • issue IDs affected.

public Set<Long> removeValue (CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Object value)

Removes a specific custom field value for the given custom field, from a given issue, of a particular type.

Parameters
field the custom field.
issueId the issue.
persistenceFieldType the data type of the value
value the value to delete.
Returns
  • returns the set of ids of issues that were affected for some reason (should be 1, just the given issue!).

public void updateValues (CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)

public void updateValues (CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values)