com.atlassian.jira.event.issue.field
Class AbstractCustomFieldEvent

java.lang.Object
  extended by com.atlassian.jira.event.issue.field.AbstractCustomFieldEvent
Direct Known Subclasses:
CustomFieldCreatedEvent, CustomFieldDeletedEvent, CustomFieldUpdatedEvent

public class AbstractCustomFieldEvent
extends Object

Abstract event that captures the data relevant to custom field events.

Since:
v5.1

Constructor Summary
AbstractCustomFieldEvent(CustomField customField)
           
AbstractCustomFieldEvent(Long id, String customFieldId, String fieldType)
           
 
Method Summary
 String getCustomFieldId()
          Returns the ID of the custom field that this event relates to.
 String getFieldType()
           
 Long getId()
          Returns the ID of the custom field that this event relates to, as a number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCustomFieldEvent

public AbstractCustomFieldEvent(CustomField customField)

AbstractCustomFieldEvent

public AbstractCustomFieldEvent(Long id,
                                String customFieldId,
                                String fieldType)
Method Detail

getId

public Long getId()
Returns the ID of the custom field that this event relates to, as a number. Note that the custom field's full ID is returned by getCustomFieldId().

Returns:
a Long containing the numeric id of the custom field

getCustomFieldId

public String getCustomFieldId()
Returns the ID of the custom field that this event relates to. The custom field's string ID will have the form "customfield_XXXXX", where XXXXX is the value of getId().

Returns:
a String containing the ID of the custom field

getFieldType

public String getFieldType()


Copyright © 2002-2012 Atlassian. All Rights Reserved.