public class TimerCFType extends com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<TimerDto> implements com.atlassian.jira.issue.fields.rest.RestAwareCustomFieldType, com.atlassian.jira.issue.customfields.SortableCustomField<TimerDto>, com.atlassian.jira.issue.export.customfield.ExportableCustomFieldType
Constructor and Description |
---|
TimerCFType(com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister customFieldValuePersister,
com.atlassian.jira.issue.customfields.manager.GenericConfigManager genericConfigManager,
com.jibrok.jira.plugins.timeinstatus.timer.service.TimerService timerService,
TimerManager timerManager,
com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext,
com.jibrok.jira.plugins.timeinstatus.timer.service.TimerFieldConfigService timerFieldConfigService,
com.jibrok.jira.plugins.timeinstatus.utils.PermissionChecker permissionChecker,
com.jibrok.jira.plugins.timeinstatus.timer.service.TimerRenderService timerRenderService,
com.jibrok.jira.plugins.timeinstatus.timer.service.TimerSchemeService timerSchemeService,
com.jibrok.jira.plugins.timeinstatus.timer.service.TimerGoalService timerGoalService) |
Modifier and Type | Method and Description |
---|---|
int |
compare(TimerDto customFieldObjectValue1,
TimerDto customFieldObjectValue2,
com.atlassian.jira.issue.fields.config.FieldConfig fieldConfig) |
java.lang.String |
getChangelogString(com.atlassian.jira.issue.fields.CustomField field,
TimerDto value) |
java.lang.String |
getChangelogValue(com.atlassian.jira.issue.fields.CustomField field,
TimerDto value) |
java.util.List<com.atlassian.jira.issue.fields.config.FieldConfigItemType> |
getConfigurationItemTypes() |
protected com.atlassian.jira.issue.customfields.persistence.PersistenceFieldType |
getDatabaseType() |
protected java.lang.Object |
getDbValueFromObject(TimerDto timer) |
com.atlassian.jira.issue.fields.rest.FieldTypeInfo |
getFieldTypeInfo(com.atlassian.jira.issue.fields.rest.FieldTypeInfoContext fieldTypeInfoContext) |
com.atlassian.jira.issue.fields.rest.FieldJsonRepresentation |
getJsonFromIssue(com.atlassian.jira.issue.fields.CustomField field,
com.atlassian.jira.issue.Issue issue,
boolean renderedVersionRequested,
com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem fieldLayoutItem) |
com.atlassian.jira.issue.fields.rest.json.JsonType |
getJsonSchema(com.atlassian.jira.issue.fields.CustomField customField) |
protected TimerDto |
getObjectFromDbValue(java.lang.Object databaseValue) |
com.atlassian.jira.issue.fields.config.FieldConfig |
getRelevantConfig(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField field) |
com.atlassian.jira.issue.export.FieldExportParts |
getRepresentationFromIssue(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.export.customfield.CustomFieldExportContext customFieldExportContext) |
TimerDto |
getSingularObjectFromString(java.lang.String string) |
java.lang.String |
getStringFromSingularObject(TimerDto timer) |
TimerDto |
getValue(com.atlassian.jira.issue.fields.CustomField field,
com.atlassian.jira.issue.Issue issue) |
TimerDto |
getValue(com.atlassian.jira.issue.Issue issue,
TimerFieldConfigDto timerFieldConfig) |
TimerDto |
getValueFromIssue(com.atlassian.jira.issue.fields.CustomField field,
com.atlassian.jira.issue.Issue issue) |
java.util.Map<java.lang.String,java.lang.Object> |
getVelocityParameters(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.fields.CustomField field,
com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem fieldLayoutItem) |
java.util.Set<java.lang.Long> |
remove(com.atlassian.jira.issue.fields.CustomField field) |
accept, createValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromCustomFieldParams, getValueFromIssue, setDefaultValue, updateValue, validateFromParams
assertObjectImplementsType, availableForBulkEdit, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, init, isRenderable, valuesEqual
public TimerCFType(com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister customFieldValuePersister, com.atlassian.jira.issue.customfields.manager.GenericConfigManager genericConfigManager, com.jibrok.jira.plugins.timeinstatus.timer.service.TimerService timerService, TimerManager timerManager, com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, com.jibrok.jira.plugins.timeinstatus.timer.service.TimerFieldConfigService timerFieldConfigService, com.jibrok.jira.plugins.timeinstatus.utils.PermissionChecker permissionChecker, com.jibrok.jira.plugins.timeinstatus.timer.service.TimerRenderService timerRenderService, com.jibrok.jira.plugins.timeinstatus.timer.service.TimerSchemeService timerSchemeService, com.jibrok.jira.plugins.timeinstatus.timer.service.TimerGoalService timerGoalService)
@Nullable public TimerDto getValueFromIssue(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.Issue issue)
public java.lang.String getChangelogValue(com.atlassian.jira.issue.fields.CustomField field, TimerDto value)
@Nonnull protected com.atlassian.jira.issue.customfields.persistence.PersistenceFieldType getDatabaseType()
getDatabaseType
in class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<TimerDto>
@Nullable protected java.lang.Object getDbValueFromObject(TimerDto timer)
getDbValueFromObject
in class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<TimerDto>
@Nullable protected TimerDto getObjectFromDbValue(@Nonnull java.lang.Object databaseValue) throws com.atlassian.jira.issue.customfields.impl.FieldValidationException
getObjectFromDbValue
in class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<TimerDto>
com.atlassian.jira.issue.customfields.impl.FieldValidationException
public java.util.Set<java.lang.Long> remove(com.atlassian.jira.issue.fields.CustomField field)
@Nonnull public java.util.Map<java.lang.String,java.lang.Object> getVelocityParameters(com.atlassian.jira.issue.Issue issue, com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem fieldLayoutItem)
@Nonnull public java.util.List<com.atlassian.jira.issue.fields.config.FieldConfigItemType> getConfigurationItemTypes()
public java.lang.String getChangelogString(com.atlassian.jira.issue.fields.CustomField field, TimerDto value)
public com.atlassian.jira.issue.fields.rest.FieldTypeInfo getFieldTypeInfo(com.atlassian.jira.issue.fields.rest.FieldTypeInfoContext fieldTypeInfoContext)
getFieldTypeInfo
in interface com.atlassian.jira.issue.fields.rest.RestAwareCustomFieldType
public com.atlassian.jira.issue.fields.rest.json.JsonType getJsonSchema(com.atlassian.jira.issue.fields.CustomField customField)
getJsonSchema
in interface com.atlassian.jira.issue.fields.rest.RestAwareCustomFieldType
public com.atlassian.jira.issue.fields.rest.FieldJsonRepresentation getJsonFromIssue(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.Issue issue, boolean renderedVersionRequested, @Nullable com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem fieldLayoutItem)
getJsonFromIssue
in interface com.atlassian.jira.issue.fields.rest.RestAwareCustomFieldType
public int compare(@Nonnull TimerDto customFieldObjectValue1, @Nonnull TimerDto customFieldObjectValue2, com.atlassian.jira.issue.fields.config.FieldConfig fieldConfig)
compare
in interface com.atlassian.jira.issue.customfields.SortableCustomField<TimerDto>
public java.lang.String getStringFromSingularObject(TimerDto timer)
public TimerDto getSingularObjectFromString(java.lang.String string) throws com.atlassian.jira.issue.customfields.impl.FieldValidationException
public TimerDto getValue(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.Issue issue)
public TimerDto getValue(com.atlassian.jira.issue.Issue issue, TimerFieldConfigDto timerFieldConfig)
public com.atlassian.jira.issue.fields.config.FieldConfig getRelevantConfig(com.atlassian.jira.issue.Issue issue, com.atlassian.jira.issue.fields.CustomField field)
public com.atlassian.jira.issue.export.FieldExportParts getRepresentationFromIssue(com.atlassian.jira.issue.Issue issue, com.atlassian.jira.issue.export.customfield.CustomFieldExportContext customFieldExportContext)
getRepresentationFromIssue
in interface com.atlassian.jira.issue.export.customfield.ExportableCustomFieldType