|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.event.type.DefaultEventTypeManager
public class DefaultEventTypeManager
Manages event types within the system. Used to add, edit, delete and retrieve event types.
Field Summary | |
---|---|
static String |
EVENT_TYPE_ID
|
Constructor Summary | |
---|---|
DefaultEventTypeManager(OfBizDelegator delegator,
WorkflowManager workflowManager,
NotificationSchemeManager notificationSchemeManager)
|
Method Summary | |
---|---|
void |
addEventType(EventType eventType)
|
void |
clearCache()
|
void |
deleteEventType(Long eventTypeId)
|
void |
editEventType(Long eventTypeId,
String name,
String description,
Long templateId)
|
Map |
getAssociatedNotificationSchemes(EventType eventType)
Return a collection of notificiation scheme names that the specified eventType is associated with. |
org.apache.commons.collections.MultiMap |
getAssociatedWorkflows(EventType eventType,
boolean statusCheck)
Determines which workflows and transitions are associated with the specified eventType. |
EventType |
getEventType(Long id)
Retrieve the event type by the specified id. |
Collection |
getEventTypes()
|
Map |
getEventTypesMap()
Retrieve a map of all event types. |
boolean |
isActive(EventType eventType)
Determine if the EventType specified is associated with a workflow and/or notification scheme. |
boolean |
isEventTypeExists(Long eventTypeId)
|
boolean |
isEventTypeExists(String issueEventTypeName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EVENT_TYPE_ID
Constructor Detail |
---|
public DefaultEventTypeManager(OfBizDelegator delegator, WorkflowManager workflowManager, NotificationSchemeManager notificationSchemeManager)
Method Detail |
---|
public Collection getEventTypes()
getEventTypes
in interface EventTypeManager
public Map getEventTypesMap()
getEventTypesMap
in interface EventTypeManager
public EventType getEventType(Long id)
getEventType
in interface EventTypeManager
id
-
public boolean isActive(EventType eventType)
isActive
in interface EventTypeManager
eventType
-
public org.apache.commons.collections.MultiMap getAssociatedWorkflows(EventType eventType, boolean statusCheck)
The event type can be associated with a workflow through a post function on any of the workflow transitions.
getAssociatedWorkflows
in interface EventTypeManager
eventType
- statusCheck
- option to break on first association discovered - used when checking if event type is active
WorkflowTransitionKey
s -> transitionspublic Map getAssociatedNotificationSchemes(EventType eventType)
The event type can be associated with a notification scheme if the scheme has at least one notification type and template selected for the event type.
getAssociatedNotificationSchemes
in interface EventTypeManager
eventType
-
public void addEventType(EventType eventType)
addEventType
in interface EventTypeManager
public void editEventType(Long eventTypeId, String name, String description, Long templateId)
editEventType
in interface EventTypeManager
public void deleteEventType(Long eventTypeId)
deleteEventType
in interface EventTypeManager
public boolean isEventTypeExists(String issueEventTypeName)
isEventTypeExists
in interface EventTypeManager
public boolean isEventTypeExists(Long eventTypeId)
isEventTypeExists
in interface EventTypeManager
public void clearCache()
clearCache
in interface EventTypeManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |