|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogsDAO
Data Access Object for Activity Logs.
Method Summary | |
---|---|
java.util.List |
getLogs(java.lang.String resourcePath,
int action,
java.lang.String userName,
java.util.Date from,
java.util.Date to,
boolean descending)
Method to get a list of log entries. |
LogEntry[] |
getLogs(java.lang.String resourcePath,
int action,
java.lang.String userName,
java.util.Date from,
java.util.Date to,
boolean descending,
DataAccessManager dataAccessManager)
Method to get a list of log entries. |
LogEntry[] |
getLogs(java.lang.String resourcePath,
int action,
java.lang.String userName,
java.util.Date from,
java.util.Date to,
boolean descending,
int start,
int pageLen,
DataAccessManager dataAccessManager)
Method to get a list of log entries. |
int |
getLogsCount(java.lang.String resourcePath,
int action,
java.lang.String userName,
java.util.Date from,
java.util.Date to,
boolean descending)
Method to get the number of log entries available |
void |
saveLogBatch(LogRecord[] logRecords)
Save batch of log records |
Method Detail |
---|
void saveLogBatch(LogRecord[] logRecords) throws RegistryException
logRecords
- an array of log records to save.
RegistryException
- if the operation failed.java.util.List getLogs(java.lang.String resourcePath, int action, java.lang.String userName, java.util.Date from, java.util.Date to, boolean descending) throws RegistryException
resourcePath
- the resource path.action
- the action in concern.userName
- the name of the user who we want to get logs for.from
- the starting date.to
- the ending date.descending
- whether descending or ascending.
RegistryException
- if an error occurred while obtaining logs.LogEntry[] getLogs(java.lang.String resourcePath, int action, java.lang.String userName, java.util.Date from, java.util.Date to, boolean descending, int start, int pageLen, DataAccessManager dataAccessManager) throws RegistryException
resourcePath
- the resource path.action
- the action in concern.userName
- the name of the user who we want to get logs for.from
- the starting date.to
- the ending date.descending
- whether descending or ascending.start
- the starting indexpageLen
- the length of the array returned.dataAccessManager
- the data access manager used to connect to the database.
RegistryException
- if an error occurred while obtaining logs.LogEntry[] getLogs(java.lang.String resourcePath, int action, java.lang.String userName, java.util.Date from, java.util.Date to, boolean descending, DataAccessManager dataAccessManager) throws RegistryException
resourcePath
- the resource path.action
- the action in concern.userName
- the name of the user who we want to get logs for.from
- the starting date.to
- the ending date.descending
- whether descending or ascending.dataAccessManager
- the data access manager used to connect to the database.
RegistryException
- if an error occurred while obtaining logs.int getLogsCount(java.lang.String resourcePath, int action, java.lang.String userName, java.util.Date from, java.util.Date to, boolean descending) throws RegistryException
resourcePath
- the resource path.action
- the action in concern.userName
- the name of the user who we want to get logs for.from
- the starting date.to
- the ending date.descending
- whether descending or ascending.
RegistryException
- if an error occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |