public interface AuditLogDAO extends DAO
AuditLogDAO
defines a type for performing CRUD operations on instances of AuditLog
.Modifier and Type | Method and Description |
---|---|
AuditLog |
get(long id)
Retrieves the entry with the given id.
|
List<AuditLog> |
getAll()
Retrieves all audit log entries.
|
List<AuditLog> |
getAllAfterDate(Date cutoff)
Finds all entries created after the specified cutoff date
|
List<AuditLog> |
getAllWithQuery(String query)
Finds all entries using a supplied SQL query.
|
int |
getTimeToWaitForNextPmOp(String vdsName,
String event)
Get time to wait in seconds before another PM operation is allowed on the given Host
|
void |
remove(long id)
Removes the entry with the given id.
|
void |
removeAllBeforeDate(Date cutoff)
Removes all entries before the specified cutoff date
|
void |
removeAllForVds(Guid id,
boolean configAlerts)
Removes all entries for the given VDS id.
|
void |
removeAllOfTypeForVds(Guid id,
int type)
Removes entries of the specified type for the given VDS id.
|
void |
save(AuditLog entry)
Saves the provided audit log
|
void |
update(AuditLog entry)
Updates the provided audit log entry.
|
AuditLog get(long id)
id
- the entry idList<AuditLog> getAllAfterDate(Date cutoff)
cutoff
- the cutoff dateList<AuditLog> getAllWithQuery(String query)
query
- the queryvoid save(AuditLog entry)
entry
- the entryvoid update(AuditLog entry)
entry
- the entryvoid remove(long id)
id
- the entry idvoid removeAllBeforeDate(Date cutoff)
cutoff
- the cutoff datevoid removeAllForVds(Guid id, boolean configAlerts)
id
- the vds idconfigAlerts
- if true
then include config alertsvoid removeAllOfTypeForVds(Guid id, int type)
id
- the VDS idtype
- the entry typeint getTimeToWaitForNextPmOp(String vdsName, String event)
vdsName
- Host nameevent
- [USER_VDS_STOP | USER_VDS_START | USER_VDS_RESTART]Copyright © 2012. All Rights Reserved.