public class QueriableLoggerImpl extends java.lang.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.
|
java.util.List<SQueriableLog> |
getLogs(int startIndex,
int maxResults,
java.lang.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(java.lang.String actionType,
SQueriableLogSeverity severity)
Verify if the given action type and severity are loggable
|
void |
log(java.lang.String callerClassName,
java.lang.String callerMethodName,
SQueriableLog... queriableLogs)
Log the given queriable logs.
|
java.util.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 java.util.List<SQueriableLog> getLogs(int startIndex, int maxResults, java.lang.String field, OrderByType order) throws SBonitaReadException
QueriableLoggerServicegetLogs in interface QueriableLoggerServiceSBonitaReadExceptionpublic long getNumberOfLogs(QueryOptions searchOptions) throws SBonitaReadException
QueriableLoggerServicegetNumberOfLogs in interface QueriableLoggerServiceSBonitaReadExceptionpublic java.util.List<SQueriableLog> searchLogs(QueryOptions searchOptions) throws SBonitaReadException
QueriableLoggerServicesearchLogs in interface QueriableLoggerServicesearchOptions - The criterion used to search sQueriableLogSBonitaReadExceptionpublic void log(java.lang.String callerClassName,
java.lang.String callerMethodName,
SQueriableLog... queriableLogs)
QueriableLoggerServicelog in interface QueriableLoggerServicepublic boolean isLoggable(java.lang.String actionType,
SQueriableLogSeverity severity)
QueriableLoggerServiceisLoggable in interface QueriableLoggerServiceactionType - the action typeseverity - the severitypublic SQueriableLog getLog(long logId) throws SQueriableLogNotFoundException, SBonitaReadException
QueriableLoggerServicegetLog in interface QueriableLoggerServiceSQueriableLogNotFoundExceptionSBonitaReadException