public class DefaultSecurityAuditProvider extends Object implements SecurityAuditProvider
Constructor and Description |
---|
DefaultSecurityAuditProvider()
Constructs a new DefaultSecurityAuditProvider
|
Modifier and Type | Method and Description |
---|---|
boolean |
blockGroupEvents()
The default provider logs group events.
|
boolean |
blockUserEvents()
The default provider logs user events.
|
String |
getAuditURL()
The default provider uses Openfire's own audit log viewer.
|
SecurityAuditEvent |
getEvent(Integer msgID)
The default provider retrieves events from a ofSecurityAuditLog table in the database.
|
Integer |
getEventCount()
The default provider counts the number of entries in the ofSecurityAuditLog table.
|
List<SecurityAuditEvent> |
getEvents(String username,
Integer skipEvents,
Integer numEvents,
Date startTime,
Date endTime)
The default provider retrieves events from a ofSecurityAuditLog table in the database.
|
boolean |
isWriteOnly()
The default provider writes logs into a local Openfire database.
|
void |
logEvent(String username,
String summary,
String details)
The default provider logs events into a ofSecurityAuditLog table in the database.
|
public DefaultSecurityAuditProvider()
public void logEvent(String username, String summary, String details)
logEvent
in interface SecurityAuditProvider
username
- Username of user who performed the security event.summary
- Short description of the event, similar to a subject.details
- Detailed description of the event, can be null if not desired.SecurityAuditProvider.logEvent(String, String, String)
public List<SecurityAuditEvent> getEvents(String username, Integer skipEvents, Integer numEvents, Date startTime, Date endTime)
getEvents
in interface SecurityAuditProvider
username
- Username of user to look up. Can be null for no username filtering.skipEvents
- Number of events to skip past (typically for paging). Can be null for first page.numEvents
- Number of events to retrieve. Can be null for "all" events.startTime
- Oldest date of range of events to retrieve. Can be null for forever.endTime
- Most recent date of range of events to retrieve. Can be null for "now".SecurityAuditProvider.getEvents(String, Integer, Integer, java.util.Date, java.util.Date)
public SecurityAuditEvent getEvent(Integer msgID) throws EventNotFoundException
getEvent
in interface SecurityAuditProvider
msgID
- ID number of event to retrieve.EventNotFoundException
- if event was not found.SecurityAuditProvider.getEvent(Integer)
public Integer getEventCount()
getEventCount
in interface SecurityAuditProvider
SecurityAuditProvider.getEventCount()
public boolean isWriteOnly()
isWriteOnly
in interface SecurityAuditProvider
SecurityAuditProvider.isWriteOnly()
public String getAuditURL()
getAuditURL
in interface SecurityAuditProvider
SecurityAuditProvider.getAuditURL()
public boolean blockUserEvents()
blockUserEvents
in interface SecurityAuditProvider
SecurityAuditProvider.blockUserEvents()
public boolean blockGroupEvents()
blockGroupEvents
in interface SecurityAuditProvider
SecurityAuditProvider.blockGroupEvents()
Copyright © 2003-2008 Jive Software.