|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface EventTypeManager
Manages event types within the system.
Used to add, edit, delete and retrieve event types.
| 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 eventTypeName)
|
| Method Detail |
|---|
Collection<EventType> getEventTypes()
getEventTypesMap().values().
Map<Long,EventType> getEventTypesMap()
EventType getEventType(Long id)
id
id - The ID of the desired event type
id
IllegalArgumentException - if the specified event type does not existboolean isActive(EventType eventType)
eventType is associated with any workflow or notification scheme.
eventType - event type
true if eventType is associated with any workflow or notification
scheme; false otherwise.
org.apache.commons.collections.MultiMap getAssociatedWorkflows(EventType eventType,
boolean statusCheck)
eventType - event typestatusCheck - option to break on first association discovered - used when checking if event type is active
WorkflowTransitionKeys to transitionsMap<Long,String> getAssociatedNotificationSchemes(EventType eventType)
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.
eventType - event type
void addEventType(EventType eventType)
void editEventType(Long eventTypeId,
String name,
String description,
Long templateId)
void deleteEventType(Long eventTypeId)
boolean isEventTypeExists(String eventTypeName)
boolean isEventTypeExists(Long eventTypeId)
void clearCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||