|
||||||||||
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,
com.atlassian.event.api.EventPublisher eventPublisher)
|
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)
|
void |
onClearCache(ClearCacheEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
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, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public Collection getEventTypes()
getEventTypes
in interface EventTypeManager
public Map getEventTypesMap()
getEventTypesMap
in interface EventTypeManager
public EventType getEventType(Long id)
getEventType
in interface EventTypeManager
id
- ID
public boolean isActive(EventType eventType)
isActive
in interface EventTypeManager
eventType
- event type
public org.apache.commons.collections.MultiMap getAssociatedWorkflows(EventType eventType, boolean statusCheck)
getAssociatedWorkflows
in interface EventTypeManager
eventType
- event typestatusCheck
- option to break on first association discovered - used when checking if event type is active
WorkflowTransitionKey
s -> transitionspublic Map getAssociatedNotificationSchemes(EventType eventType)
getAssociatedNotificationSchemes
in interface EventTypeManager
eventType
- event type
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 |