|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuditEventView
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.
| Method Summary | |
|---|---|
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()
|
Set<String> |
getTagsByEventId(Integer id)
|
Set<String> |
getTagsByUser(String user)
|
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)
|
List<AuditEvent> |
list(AuditEventFilter filter,
List<String> order,
int offset,
int num)
|
void |
tag(AuditEventFilter filter,
String user,
List<String> tags)
|
void |
tag(Integer eventId,
String user,
List<String> tags)
|
void |
untag(AuditEventFilter filter,
String user,
List<String> tags)
|
void |
untag(Integer eventId,
String user,
List<String> tags)
|
| Methods inherited from interface org.jwall.audit.EventView |
|---|
count, count, delete, delete, get, getCompletions, getIndexedVariables, getSupportedOperators, list, tag, untag |
| Method Detail |
|---|
boolean 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.
RemoteException
Exception
AuditEvent getEvent(Integer id)
throws Exception
id -
RemoteException
Exception
AuditEvent getEvent(String id)
throws Exception
id -
Exception
boolean delete(Integer id)
throws Exception
Exception
AuditEvent 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 -
Exception
List<AuditEventMessage> getLastAlertMessages(int max)
throws Exception
ExceptionSet<String> getVariables()
EventView
getVariables in interface EventView<AuditEvent>
Set<String> getTags()
throws Exception
ExceptionSet<String> getTagsByEventId(Integer id)
Set<String> getTagsByUser(String user)
List<AuditEvent> list(AuditEventFilter filter,
int offset,
int num)
List<AuditEvent> list(AuditEventFilter filter,
List<String> order,
int offset,
int num)
void tag(Integer eventId,
String user,
List<String> tags)
void tag(AuditEventFilter filter,
String user,
List<String> tags)
void untag(Integer eventId,
String user,
List<String> tags)
void untag(AuditEventFilter filter,
String user,
List<String> tags)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||