Package org.bonitasoft.engine.services
Interface QueriableLoggerService
- All Known Implementing Classes:
QueriableLoggerImpl
public interface QueriableLoggerService
- Author:
- Charles Souillard, Celine Souchet
-
Method Summary
Modifier and TypeMethodDescriptiongetLog(long logId) Get the queriable log from its id.getLogs(int startIndex, int maxResults, String field, OrderByType order) Get the queriable logs having the given value for the given int indexlongGet total number of queriable logslonggetNumberOfLogs(QueryOptions searchOptions) Gets the queriable logs number matching to the given QueryOptions.booleanisLoggable(String actionType, SQueriableLogSeverity severity) Verify if the given action type and severity are loggablevoidlog(String callerClassName, String callerMethodName, SQueriableLog... queriableLogs) Log the given queriable logs.searchLogs(QueryOptions searchOptions) Gets the queriable logs matching to the given searchOptions.
-
Method Details
-
log
Log the given queriable logs. Only logs having the action type and the severity configured to as loggable will be logged- Parameters:
queriableLogs-- Since:
- 6.0
-
isLoggable
Verify if the given action type and severity are loggable- Parameters:
actionType- the action typeseverity- the severity- Returns:
- true if the log is active for the given action type and severity; false otherwise
- Since:
- 6.0
-
getLog
Get the queriable log from its id.- Parameters:
logId-- Returns:
- the queriable log
- Throws:
SQueriableLogExceptionSQueriableLogNotFoundExceptionSBonitaReadException- Since:
- 6.0
-
getNumberOfLogs
Get total number of queriable logs- Returns:
- the number of queriable logs
- Throws:
SBonitaReadException- Since:
- 6.0
-
getLogs
List<SQueriableLog> getLogs(int startIndex, int maxResults, String field, OrderByType order) throws SBonitaReadException Get the queriable logs having the given value for the given int index- Parameters:
fromIndex- first result to be considered(>=0)numberOfLogs- the max number of queriable logs to be returned (>=0)field-order-- Returns:
- the queriable logs having the given value for the given int index
- Throws:
SQueriableLogExceptionSBonitaReadException- Since:
- 6.0
-
getNumberOfLogs
Gets the queriable logs number matching to the given QueryOptions.- Parameters:
QueryOptions- The criterion used to search sQueriableLog- Returns:
- queriable logs number matching to the given searchOptions.
- Throws:
SBonitaReadException- Since:
- 6.0
-
searchLogs
Gets the queriable logs matching to the given searchOptions.- Parameters:
searchOptions- The criterion used to search sQueriableLog- Returns:
- logs list matching to the given searchOptions.
- Throws:
SBonitaReadException- Since:
- 6.0
-