@PublicApi public class EventType extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_TYPE |
static Long |
ISSUE_ARCHIVED_ID |
static Long |
ISSUE_ASSIGNED_ID |
static Long |
ISSUE_CLOSED_ID |
static Long |
ISSUE_COMMENT_DELETED_ID |
static Long |
ISSUE_COMMENT_EDITED_ID |
static Long |
ISSUE_COMMENTED_ID |
static Long |
ISSUE_CREATED_ID |
static Long |
ISSUE_DELETED_ID |
static Long |
ISSUE_GENERICEVENT_ID |
static Long |
ISSUE_MOVED_ID |
static Long |
ISSUE_REOPENED_ID |
static Long |
ISSUE_RESOLVED_ID |
static Long |
ISSUE_RESTORED_ID |
static Long |
ISSUE_UPDATED_ID |
static Long |
ISSUE_WORKLOG_DELETED_ID |
static Long |
ISSUE_WORKLOG_UPDATED_ID |
static Long |
ISSUE_WORKLOGGED_ID |
static Long |
ISSUE_WORKSTARTED_ID |
static Long |
ISSUE_WORKSTOPPED_ID |
static String |
JIRA_SYSTEM_EVENT_TYPE |
Constructor and Description |
---|
EventType(org.ofbiz.core.entity.GenericValue eventTypeGV)
Create an Event Type.
|
EventType(Long id,
String name,
String description,
Long templateId)
Create an Event Type.
|
EventType(String name,
String description,
Long templateId)
Create an Event Type.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescKey() |
String |
getDescription() |
Long |
getId() |
String |
getName() |
String |
getNameKey() |
Long |
getTemplateId()
Retrieve the default template id associated with this event type.
|
String |
getTranslatedDesc(ApplicationUser remoteUser)
Allows i18n keys to be specified in the properties file to allow translation of the event type description.
|
String |
getTranslatedName(ApplicationUser remoteUser)
Allows i18n keys to be specified in the properties file to allow translation of the event type name.
|
String |
getType() |
boolean |
isSystemEventType() |
void |
setTemplateId(Long templateId)
Set the default template id to be associated with this event type.
|
String |
toString() |
String |
translateDesc(ApplicationUser remoteUser)
Allows i18n keys to be specified in the properties file to allow translation of the event type description.
|
String |
translateName(ApplicationUser remoteUser)
Allows i18n keys to be specified in the properties file to allow translation of the event type name.
|
public static final Long ISSUE_CREATED_ID
public static final Long ISSUE_UPDATED_ID
public static final Long ISSUE_ASSIGNED_ID
public static final Long ISSUE_RESOLVED_ID
public static final Long ISSUE_CLOSED_ID
public static final Long ISSUE_COMMENTED_ID
public static final Long ISSUE_REOPENED_ID
public static final Long ISSUE_DELETED_ID
public static final Long ISSUE_MOVED_ID
public static final Long ISSUE_WORKLOGGED_ID
public static final Long ISSUE_WORKSTARTED_ID
public static final Long ISSUE_WORKSTOPPED_ID
public static final Long ISSUE_GENERICEVENT_ID
public static final Long ISSUE_COMMENT_EDITED_ID
public static final Long ISSUE_WORKLOG_UPDATED_ID
public static final Long ISSUE_WORKLOG_DELETED_ID
public static final Long ISSUE_COMMENT_DELETED_ID
public static final Long ISSUE_ARCHIVED_ID
public static final Long ISSUE_RESTORED_ID
public static final String JIRA_SYSTEM_EVENT_TYPE
public static final String EVENT_TYPE
public EventType(String name, String description, Long templateId)
name
- name of this event typedescription
- description of this event typetemplateId
- the default template for his event typepublic EventType(Long id, String name, String description, Long templateId)
id
- id of this event typename
- name of this event typedescription
- description of this event typetemplateId
- the default template for his event typepublic EventType(org.ofbiz.core.entity.GenericValue eventTypeGV)
eventTypeGV
- generic valuepublic Long getId()
public String getName()
public String getDescription()
public String getType()
public Long getTemplateId()
public void setTemplateId(Long templateId)
templateId
- template idpublic boolean isSystemEventType()
public String getNameKey()
public String getDescKey()
public String getTranslatedName(ApplicationUser remoteUser)
remoteUser
- current usertranslateName(com.atlassian.jira.user.ApplicationUser)
public String translateName(ApplicationUser remoteUser)
remoteUser
- current userpublic String getTranslatedDesc(ApplicationUser remoteUser)
remoteUser
- current usertranslateDesc(com.atlassian.jira.user.ApplicationUser)
public String translateDesc(ApplicationUser remoteUser)
remoteUser
- current userCopyright © 2002-2019 Atlassian. All Rights Reserved.