Package com.almis.awe.service
Class LogService
- java.lang.Object
-
- com.almis.awe.config.ServiceConfig
-
- com.almis.awe.service.LogService
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class LogService extends ServiceConfig
Manage logs- Author:
- pgarcia
-
-
Constructor Summary
Constructors Constructor Description LogService(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties)
Autowired constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceData
getLogList(String fileName, String date, String startTime, String endTime)
Get log files sortedString
getLogPath()
Retrieve log pathvoid
logChangeDatabase(String database)
Log a database change-
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
-
-
-
Constructor Detail
-
LogService
public LogService(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties)
Autowired constructor- Parameters:
queryUtil
- Query utilitiesbaseConfigProperties
- Base configuration properties
-
-
Method Detail
-
getLogList
public ServiceData getLogList(String fileName, String date, String startTime, String endTime) throws AWException
Get log files sorted- Parameters:
fileName
- Log filedate
- Log datestartTime
- Start timeendTime
- End time- Returns:
- Log list
- Throws:
AWException
- Error retrieving log list
-
getLogPath
public String getLogPath()
Retrieve log path- Returns:
- Log path
-
logChangeDatabase
public void logChangeDatabase(String database)
Log a database change- Parameters:
database
- New database
-
-