public class QueriableLoggerImpl extends Object implements QueriableLoggerService
| Modifier and Type | Field and Description |
|---|---|
protected TechnicalLoggerService |
logger |
| Constructor and Description |
|---|
QueriableLoggerImpl(PersistenceService persistenceService,
TransactionService transactionService,
QueriableLoggerStrategy loggerStrategy,
QueriableLogSessionProvider sessionProvider,
PlatformService platformService,
TechnicalLoggerService logger) |
| Modifier and Type | Method and Description |
|---|---|
SQueriableLog |
getLog(long logId)
Get the queriable log from its id.
|
List<SQueriableLog> |
getLogs(int startIndex,
int maxResults,
String field,
OrderByType order)
Get the queriable logs having the given value for the given int index
|
long |
getNumberOfLogs()
Get total number of queriable logs
|
long |
getNumberOfLogs(QueryOptions searchOptions)
Gets the queriable logs number matching to the given QueryOptions.
|
boolean |
isLoggable(String actionType,
SQueriableLogSeverity severity)
Verify if the given action type and severity are loggable
|
void |
log(String callerClassName,
String callerMethodName,
SQueriableLog... queriableLogs)
Log the given queriable logs.
|
List<SQueriableLog> |
searchLogs(QueryOptions searchOptions)
Gets the queriable logs matching to the given searchOptions.
|
protected final TechnicalLoggerService logger
public QueriableLoggerImpl(PersistenceService persistenceService, TransactionService transactionService, QueriableLoggerStrategy loggerStrategy, QueriableLogSessionProvider sessionProvider, PlatformService platformService, TechnicalLoggerService logger)
public long getNumberOfLogs()
throws SBonitaReadException
QueriableLoggerServicegetNumberOfLogs in interface QueriableLoggerServiceSBonitaReadExceptionpublic List<SQueriableLog> getLogs(int startIndex, int maxResults, String field, OrderByType order) throws SBonitaReadException
QueriableLoggerServicegetLogs in interface QueriableLoggerServiceSBonitaReadExceptionpublic long getNumberOfLogs(QueryOptions searchOptions) throws SBonitaReadException
QueriableLoggerServicegetNumberOfLogs in interface QueriableLoggerServiceSBonitaReadExceptionpublic List<SQueriableLog> searchLogs(QueryOptions searchOptions) throws SBonitaReadException
QueriableLoggerServicesearchLogs in interface QueriableLoggerServicesearchOptions - The criterion used to search sQueriableLogSBonitaReadExceptionpublic void log(String callerClassName, String callerMethodName, SQueriableLog... queriableLogs)
QueriableLoggerServicelog in interface QueriableLoggerServicepublic boolean isLoggable(String actionType, SQueriableLogSeverity severity)
QueriableLoggerServiceisLoggable in interface QueriableLoggerServiceactionType - the action typeseverity - the severitypublic SQueriableLog getLog(long logId) throws SQueriableLogNotFoundException, SBonitaReadException
QueriableLoggerServicegetLog in interface QueriableLoggerServiceSQueriableLogNotFoundExceptionSBonitaReadExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.