public interface CustomFieldValuePersister extends IdentifiableComponent
Modifier and Type | Method and Description |
---|---|
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)
Values returned in order by (UPDATED ASC, ID ASC)
|
List<Object> |
getValues(CustomField field,
Long issueId,
PersistenceFieldType persistenceFieldType,
String parentKey)
Values returned in order by (UPDATED ASC, ID ASC)
|
default List<CustomFieldValue> |
getValues(long issueId)
Deprecated.
since 8.13 use
getValues(Set) instead |
default Map<Long,List<CustomFieldValue>> |
getValues(Set<Long> issueIds)
Return custom field values of given issues batch.
|
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) |
void |
updateValues(CustomField field,
Long issueId,
PersistenceFieldType persistenceFieldType,
Collection values,
String parentKey) |
getIdentity
void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection value)
void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, @Nullable String parentKey)
void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values)
void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, @Nullable String parentKey)
Set<Long> removeValue(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Object value)
field
- the custom field.issueId
- the issue.persistenceFieldType
- the data type of the valuevalue
- the value to delete.List<Object> getValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType)
List<Object> getValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, String parentKey)
Set<Long> getIssueIdsWithValue(CustomField field, PersistenceFieldType persistenceFieldType, Object value)
field
- CustomFieldpersistenceFieldType
- PersistenceFieldTypevalue
- Value objectSet<Long> removeAllValues(String customFieldId)
customFieldId
- the id of the custom field@ExperimentalApi @Deprecated default List<CustomFieldValue> getValues(long issueId)
getValues(Set)
insteadCopyright © 2002-2021 Atlassian. All Rights Reserved.