com.atlassian.jira.event.type
Class EventType

java.lang.Object
  extended by com.atlassian.jira.event.type.EventType

public class EventType
extends java.lang.Object

This class describes the type of event.


Field Summary
static java.lang.String EVENT_TYPE
           
static java.lang.Long ISSUE_ASSIGNED_ID
           
static java.lang.Long ISSUE_CLOSED_ID
           
static java.lang.Long ISSUE_COMMENT_EDITED_ID
           
static java.lang.Long ISSUE_COMMENTED_ID
           
static java.lang.Long ISSUE_CREATED_ID
           
static java.lang.Long ISSUE_DELETED_ID
           
static java.lang.Long ISSUE_GENERICEVENT_ID
           
static java.lang.Long ISSUE_MOVED_ID
           
static java.lang.Long ISSUE_REOPENED_ID
           
static java.lang.Long ISSUE_RESOLVED_ID
           
static java.lang.Long ISSUE_UPDATED_ID
           
static java.lang.Long ISSUE_WORKLOG_DELETED_ID
           
static java.lang.Long ISSUE_WORKLOG_UPDATED_ID
           
static java.lang.Long ISSUE_WORKLOGGED_ID
           
static java.lang.Long ISSUE_WORKSTARTED_ID
           
static java.lang.Long ISSUE_WORKSTOPPED_ID
           
static java.lang.String JIRA_SYSTEM_EVENT_TYPE
           
 
Constructor Summary
EventType(org.ofbiz.core.entity.GenericValue eventTypeGV)
          Create an Event Type.
EventType(java.lang.Long id, java.lang.String name, java.lang.String description, java.lang.Long templateId)
          Create an Event Type.
EventType(java.lang.String name, java.lang.String description, java.lang.Long templateId)
          Create an Event Type.
 
Method Summary
 java.lang.String getDescKey()
           
 java.lang.String getDescription()
           
 java.lang.Long getId()
           
 java.lang.String getName()
           
 java.lang.String getNameKey()
           
 java.lang.Long getTemplateId()
          Retrieve the default template id associated with this event type.
 java.lang.String getTranslatedDesc(com.opensymphony.user.User remoteUser)
          Allows i18n keys to be specified in the properties file to allow translation of the event type description
 java.lang.String getTranslatedName(com.opensymphony.user.User remoteUser)
          Allows i18n keys to be specified in the properties file to allow translation of the event type name
 java.lang.String getType()
           
 boolean isSystemEventType()
           
 void setTemplateId(java.lang.Long templateId)
          Set the default template id to be associated with this event type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISSUE_CREATED_ID

public static final java.lang.Long ISSUE_CREATED_ID

ISSUE_UPDATED_ID

public static final java.lang.Long ISSUE_UPDATED_ID

ISSUE_ASSIGNED_ID

public static final java.lang.Long ISSUE_ASSIGNED_ID

ISSUE_RESOLVED_ID

public static final java.lang.Long ISSUE_RESOLVED_ID

ISSUE_CLOSED_ID

public static final java.lang.Long ISSUE_CLOSED_ID

ISSUE_COMMENTED_ID

public static final java.lang.Long ISSUE_COMMENTED_ID

ISSUE_REOPENED_ID

public static final java.lang.Long ISSUE_REOPENED_ID

ISSUE_DELETED_ID

public static final java.lang.Long ISSUE_DELETED_ID

ISSUE_MOVED_ID

public static final java.lang.Long ISSUE_MOVED_ID

ISSUE_WORKLOGGED_ID

public static final java.lang.Long ISSUE_WORKLOGGED_ID

ISSUE_WORKSTARTED_ID

public static final java.lang.Long ISSUE_WORKSTARTED_ID

ISSUE_WORKSTOPPED_ID

public static final java.lang.Long ISSUE_WORKSTOPPED_ID

ISSUE_GENERICEVENT_ID

public static final java.lang.Long ISSUE_GENERICEVENT_ID

ISSUE_COMMENT_EDITED_ID

public static final java.lang.Long ISSUE_COMMENT_EDITED_ID

ISSUE_WORKLOG_UPDATED_ID

public static final java.lang.Long ISSUE_WORKLOG_UPDATED_ID

ISSUE_WORKLOG_DELETED_ID

public static final java.lang.Long ISSUE_WORKLOG_DELETED_ID

JIRA_SYSTEM_EVENT_TYPE

public static final java.lang.String JIRA_SYSTEM_EVENT_TYPE
See Also:
Constant Field Values

EVENT_TYPE

public static final java.lang.String EVENT_TYPE
See Also:
Constant Field Values
Constructor Detail

EventType

public EventType(java.lang.String name,
                 java.lang.String description,
                 java.lang.Long templateId)
Create an Event Type.

Parameters:
name - name of this event type
description - description of this event type
templateId - the default template for his event type

EventType

public EventType(java.lang.Long id,
                 java.lang.String name,
                 java.lang.String description,
                 java.lang.Long templateId)
Create an Event Type.

Parameters:
id - id of this event type
name - name of this event type
description - description of this event type
templateId - the default template for his event type

EventType

public EventType(org.ofbiz.core.entity.GenericValue eventTypeGV)
Create an Event Type. The given generic value needs to have the following attributes set:

Parameters:
eventTypeGV - generic value
Method Detail

getId

public java.lang.Long getId()

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

getType

public java.lang.String getType()

getTemplateId

public java.lang.Long getTemplateId()
Retrieve the default template id associated with this event type.
If the event type is not associated with a default template, return the event type id as the template id. In this case, the event type id should match with a suitable template for this event.
Refer to email-template-id-mappings.xml and upgrade-system-event-types.xml.

Returns:
the default template id associated with this event type. The event type id is returned if no template id has been selected.

setTemplateId

public void setTemplateId(java.lang.Long templateId)
Set the default template id to be associated with this event type.

Parameters:
templateId - template id

isSystemEventType

public boolean isSystemEventType()

getNameKey

public java.lang.String getNameKey()

getDescKey

public java.lang.String getDescKey()

getTranslatedName

public java.lang.String getTranslatedName(com.opensymphony.user.User remoteUser)
Allows i18n keys to be specified in the properties file to allow translation of the event type name

Parameters:
remoteUser - current user
Returns:
String a i18n name or the original event type name

getTranslatedDesc

public java.lang.String getTranslatedDesc(com.opensymphony.user.User remoteUser)
Allows i18n keys to be specified in the properties file to allow translation of the event type description

Parameters:
remoteUser - current user
Returns:
String an i18n description or the original event type description


Copyright © 2002-2010 Atlassian. All Rights Reserved.