|
||||||||||
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
Field Summary | |
---|---|
static String |
EVENT_TYPE_ID
|
Constructor Summary | |
---|---|
DefaultEventTypeManager(OfBizDelegator delegator,
WorkflowManager workflowManager,
NotificationSchemeManager notificationSchemeManager,
com.atlassian.cache.CacheManager cacheManager)
|
Method Summary | |
---|---|
void |
addEventType(EventType eventType)
|
void |
clearCache()
|
void |
deleteEventType(Long eventTypeId)
|
void |
editEventType(Long eventTypeId,
String name,
String description,
Long templateId)
|
Map<Long,String> |
getAssociatedNotificationSchemes(EventType eventType)
Return a mapping of notification scheme ID to its name for each notification scheme that is associated with the specified eventType
The event type is associated with a notification scheme if the scheme has at least one notification type and
template selected for that event type. |
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)
Returns the event type with the specified id |
Collection<EventType> |
getEventTypes()
Returns an immutable collection of all known event types. |
Map<Long,EventType> |
getEventTypesMap()
Returns an immutable map of all known event type IDs to the corresponding event types. |
boolean |
isActive(EventType eventType)
Determine if the specified eventType is associated with any workflow or notification scheme. |
boolean |
isEventTypeExists(Long eventTypeId)
|
boolean |
isEventTypeExists(String issueEventTypeName)
|
void |
onClearCache(ClearCacheEvent event)
|
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.cache.CacheManager cacheManager)
Method Detail |
---|
@EventListener public void onClearCache(ClearCacheEvent event)
public Collection<EventType> getEventTypes()
EventTypeManager
EventTypeManager.getEventTypesMap()
.values()
.
getEventTypes
in interface EventTypeManager
public Map<Long,EventType> getEventTypesMap()
EventTypeManager
getEventTypesMap
in interface EventTypeManager
public EventType getEventType(Long id)
EventTypeManager
id
getEventType
in interface EventTypeManager
id
- The ID of the desired event type
id
public boolean isActive(EventType eventType)
EventTypeManager
eventType
is associated with any workflow or notification scheme.
isActive
in interface EventTypeManager
eventType
- event type
true
if eventType
is associated with any workflow or notification
scheme; false
otherwise.public org.apache.commons.collections.MultiMap getAssociatedWorkflows(EventType eventType, boolean statusCheck)
EventTypeManager
getAssociatedWorkflows
in interface EventTypeManager
eventType
- event typestatusCheck
- option to break on first association discovered - used when checking if event type is active
WorkflowTransitionKey
s to transitionspublic Map<Long,String> getAssociatedNotificationSchemes(EventType eventType)
EventTypeManager
eventType
The event type is associated with a notification scheme if the scheme has at least one notification type and
template selected for that event type.
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 |