public interface ActionsService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ActionListener listener)
Register a listener that will process actions.
|
int |
deleteActions(String tenantId,
ActionsCriteria criteria)
Delete the requested Actions from the history, as described by the provided criteria.
|
Page<Action> |
getActions(String tenantId,
ActionsCriteria criteria,
Pager pager) |
void |
send(Trigger trigger,
Event event)
Generate and send an action to be processed by the plugins architecture.
|
void |
updateResult(Action action)
Update the result of an action.
|
void send(Trigger trigger, Event event)
trigger - Trigger generating the actionevent - Event payload of the actionvoid updateResult(Action action)
action - ActionPage<Action> getActions(String tenantId, ActionsCriteria criteria, Pager pager) throws Exception
tenantId - Tenant where actions are storedcriteria - If null returns all actions (not recommended)pager - Paging requirement for fetching actions. Optional. Return all if null.Exception - on any problemint deleteActions(String tenantId, ActionsCriteria criteria) throws Exception
tenantId - Tenant where actions are storedcriteria - If null deletes all actions (not recommended)Exception - on any problemvoid addListener(ActionListener listener)
listener - the listenerCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.