public abstract class AbstractQueriableLoggerImpl extends Object implements QueriableLoggerService
| Modifier and Type | Field and Description |
|---|---|
protected TechnicalLoggerService |
logger |
| Constructor and Description |
|---|
AbstractQueriableLoggerImpl(org.bonitasoft.engine.services.PersistenceService persistenceService,
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,
org.bonitasoft.engine.persistence.OrderByType order)
Get the queriable logs having the given value for the given int index
|
int |
getNumberOfLogs()
Get total number of queriable logs
|
long |
getNumberOfLogs(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Gets the queriable logs number matching to the given QueryOptions.
|
protected org.bonitasoft.engine.services.PersistenceService |
getPersitenceService() |
protected QueriableLoggerStrategy |
getQueriableLogConfiguration() |
boolean |
isLoggable(String actionType,
SQueriableLogSeverity severity)
Verify if the given action type and severity are loggable
|
protected abstract void |
log(List<SQueriableLog> loggableLogs) |
void |
log(String callerClassName,
String callerMethodName,
SQueriableLog... queriableLogs)
Log the given queriable logs.
|
List<SQueriableLog> |
searchLogs(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
Gets the queriable logs matching to the given searchOptions.
|
protected final TechnicalLoggerService logger
public AbstractQueriableLoggerImpl(org.bonitasoft.engine.services.PersistenceService persistenceService,
QueriableLoggerStrategy loggerStrategy,
QueriableLogSessionProvider sessionProvider,
PlatformService platformService,
TechnicalLoggerService logger)
public int getNumberOfLogs()
throws SQueriableLogException
QueriableLoggerServicegetNumberOfLogs in interface QueriableLoggerServiceSQueriableLogExceptionpublic List<SQueriableLog> getLogs(int startIndex, int maxResults, String field, org.bonitasoft.engine.persistence.OrderByType order) throws SQueriableLogException
QueriableLoggerServicegetLogs in interface QueriableLoggerServiceSQueriableLogExceptionpublic long getNumberOfLogs(org.bonitasoft.engine.persistence.QueryOptions searchOptions)
throws org.bonitasoft.engine.persistence.SBonitaReadException
QueriableLoggerServicegetNumberOfLogs in interface QueriableLoggerServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SQueriableLog> searchLogs(org.bonitasoft.engine.persistence.QueryOptions searchOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
QueriableLoggerServicesearchLogs in interface QueriableLoggerServicesearchOptions - The criterion used to search sQueriableLogorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void log(String callerClassName, String callerMethodName, SQueriableLog... queriableLogs)
QueriableLoggerServicelog in interface QueriableLoggerServiceprotected abstract void log(List<SQueriableLog> loggableLogs)
public boolean isLoggable(String actionType, SQueriableLogSeverity severity)
QueriableLoggerServiceisLoggable in interface QueriableLoggerServiceactionType - the action typeseverity - the severityprotected org.bonitasoft.engine.services.PersistenceService getPersitenceService()
protected QueriableLoggerStrategy getQueriableLogConfiguration()
public SQueriableLog getLog(long logId) throws SQueriableLogNotFoundException, SQueriableLogException
QueriableLoggerServicegetLog in interface QueriableLoggerServiceSQueriableLogExceptionSQueriableLogNotFoundExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.