public interface AuditEventView extends EventView<AuditEvent>
This interface defines all method that are accessible by a user for investigating events contained in an event store. Typically implementations of this interface are acquired by looking up the remote store and querying a view instance using a users credentials.
The view returned by the store then contains all events that are viewable by that specific user.
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(AuditEvent e) |
Long |
count(AuditEventFilter filter)
This method will return the number of events which match the given filter
filter AND the user-specific implicit filter expressions. |
boolean |
delete(Integer id) |
AuditEvent |
getEvent(Integer id)
This method will return the complete audit-event from the storage.
|
AuditEvent |
getEvent(String id)
This method will return the complete audit-event from the storage.
|
InputStream |
getEventAsStream(Integer id) |
AuditEvent |
getEventEntry(Integer id)
This method will retrieve the entry with the given id from the index or
null if no entry exists with that id. |
ByteBuffer |
getEventRaw(Integer id) |
List<AuditEventMessage> |
getLastAlertMessages(int max) |
Set<String> |
getTags()
Deprecated.
|
Set<String> |
getTagsByEventId(Integer id)
Deprecated.
|
Set<String> |
getTagsByUser(String user)
Deprecated.
|
Set<String> |
getVariables()
This method returns the variable names which are supported for filtering
by this view.
|
Iterator<Integer> |
iterator(AuditEventFilter filter)
Creates an iterator over all event entries matching the given filter.
|
List<AuditEvent> |
list(AuditEventFilter filter,
int offset,
int num)
Deprecated.
|
List<AuditEvent> |
list(AuditEventFilter filter,
List<String> order,
int offset,
int num)
Deprecated.
|
void |
tag(AuditEventFilter filter,
String user,
List<String> tags)
Deprecated.
|
void |
tag(Integer eventId,
String user,
List<String> tags)
Deprecated.
|
void |
untag(AuditEventFilter filter,
String user,
List<String> tags)
Deprecated.
use untag(FilterExpression,..) instead
|
void |
untag(Integer eventId,
String user,
List<String> tags)
Deprecated.
|
count, count, delete, delete, get, getCompletions, getIndexedVariables, getSupportedOperators, list, tag, untagboolean contains(AuditEvent e)
Long count(AuditEventFilter filter) throws Exception
filter AND the user-specific implicit filter expressions.filter - The filter to select the events being counted.RemoteExceptionExceptionAuditEvent getEvent(Integer id) throws Exception
id - RemoteExceptionExceptionAuditEvent getEvent(String id) throws Exception
id - ExceptionAuditEvent getEventEntry(Integer id) throws Exception
null if no entry exists with that id.id - ExceptionByteBuffer getEventRaw(Integer id)
InputStream getEventAsStream(Integer id)
Iterator<Integer> iterator(AuditEventFilter filter) throws Exception
filter - ExceptionList<AuditEventMessage> getLastAlertMessages(int max) throws Exception
ExceptionSet<String> getVariables()
EventViewgetVariables in interface EventView<AuditEvent>List<AuditEvent> list(AuditEventFilter filter, int offset, int num)
filter - offset - num - List<AuditEvent> list(AuditEventFilter filter, List<String> order, int offset, int num)
filter - order - offset - num - void tag(Integer eventId, String user, List<String> tags)
eventId - user - tags - void tag(AuditEventFilter filter, String user, List<String> tags)
filter - user - tags - void untag(Integer eventId, String user, List<String> tags)
eventId - user - tags - void untag(AuditEventFilter filter, String user, List<String> tags)
filter - user - tags - Copyright © 2014 jwall.org. All Rights Reserved.