| java.lang.Object org.ejbca.ui.web.admin.loginterface.LogInterfaceBean
LogInterfaceBean | public class LogInterfaceBean implements java.io.Serializable(Code) | | A java bean handling the interface between EJBCA log module and JSP pages.
author: Philip Vendil version: $Id: LogInterfaceBean.java,v 1.10 2007/12/04 18:43:36 jeklund Exp $ |
Method Summary | |
public byte[] | exportLastQuery(String deviceName, ILogExporter exporter) Method that exports log entries according to an exporter passed as argument. | public LogEntryView[] | filterByQuery(String deviceName, Query query, int index, int size) Method that searches the log database for all events occurred related to the given query. | public LogEntryView[] | filterByTime(String deviceName, int time, int index, int size) Method that searches the log database for all events occurred within the last given minutes. | public LogEntriesView | filterByUsername(String deviceName, String username, HashMap caidtonamemap) Method that searches the log database for all events occurred related to the given username. | public String[] | getAllLocalEventNames() Help methods that returns an array with all translated event names. | public Collection | getAvailableLogDevices() | public LogEntryView[] | getEntries(int index, int size) | public HashMap | getEventNameHashToIdMap() Help methods that sets up id mappings between event ids and event name hashes. | public String[] | getLocalErrorEventNames() Help methods that translates error event names to the local languange. | public String[] | getLocalInfoEventNames() Help methods that translates info event names to the local languange. | public String[] | getLocalModuleNames(EjbcaWebBean ejbcawebbean) Help methods that returns an array with all translated module names. | public HashMap | getModuleNameToIdMap() Help methods that sets up id mappings between module ids and module names in local languange. | public int | getResultSize() | public HashMap | getTranslatedEventNameToIdMap() Help methods that sets up id mappings between event ids and event names in local languange. | public void | initialize(HttpServletRequest request, EjbcaWebBean ejbcawebbean) Method that initialized the bean. | public LogConfiguration | loadLogConfiguration(int caid) Loads the log configuration from the database. | public boolean | nextButton(int index, int size) | public boolean | previousButton(int index) | public void | saveLogConfiguration(int caid, LogConfiguration logconfiguration) Saves the log configuration to the database. | public void | sortUserData(int sortby, int sortorder) |
LogInterfaceBean | public LogInterfaceBean()(Code) | | Creates new LogInterfaceBean
|
filterByQuery | public LogEntryView[] filterByQuery(String deviceName, Query query, int index, int size) throws Exception(Code) | | Method that searches the log database for all events occurred related to the given query.
Parameters: query - the query to use. Parameters: index - point's where in result to begin returning data. Parameters: size - the number of elements to return. |
filterByTime | public LogEntryView[] filterByTime(String deviceName, int time, int index, int size) throws Exception(Code) | | Method that searches the log database for all events occurred within the last given minutes.
Used in the view user history page.
Parameters: time - the time in minutes to look for. Parameters: index - point's where in result to begin returning data. Parameters: size - the number of elements to return. |
filterByUsername | public LogEntriesView filterByUsername(String deviceName, String username, HashMap caidtonamemap) throws Exception(Code) | | Method that searches the log database for all events occurred related to the given username.
Used in the view user history page.
Parameters: username - the username to search for Parameters: index - point's where in result to begin returning data. Parameters: size - the number of elements to return. |
getAllLocalEventNames | public String[] getAllLocalEventNames()(Code) | | Help methods that returns an array with all translated event names.
an array of all translated eventnames. |
getEventNameHashToIdMap | public HashMap getEventNameHashToIdMap()(Code) | | Help methods that sets up id mappings between event ids and event name hashes.
a hasmap with error info eventname hash to id mappings. |
getLocalErrorEventNames | public String[] getLocalErrorEventNames()(Code) | | Help methods that translates error event names to the local languange.
an array with local info eventnames. |
getLocalInfoEventNames | public String[] getLocalInfoEventNames()(Code) | | Help methods that translates info event names to the local languange.
an array with local info eventnames. |
getLocalModuleNames | public String[] getLocalModuleNames(EjbcaWebBean ejbcawebbean)(Code) | | Help methods that returns an array with all translated module names.
an array of all translated eventnames. |
getModuleNameToIdMap | public HashMap getModuleNameToIdMap()(Code) | | Help methods that sets up id mappings between module ids and module names in local languange.
a hasmap with error info eventname to id mappings. |
getResultSize | public int getResultSize()(Code) | | |
getTranslatedEventNameToIdMap | public HashMap getTranslatedEventNameToIdMap()(Code) | | Help methods that sets up id mappings between event ids and event names in local languange.
a hasmap with error info eventname (translated and html-unescaped) to id mappings. |
loadLogConfiguration | public LogConfiguration loadLogConfiguration(int caid)(Code) | | Loads the log configuration from the database.
the logconfiguration |
nextButton | public boolean nextButton(int index, int size)(Code) | | |
previousButton | public boolean previousButton(int index)(Code) | | |
saveLogConfiguration | public void saveLogConfiguration(int caid, LogConfiguration logconfiguration)(Code) | | Saves the log configuration to the database.
Parameters: logconfiguration - the logconfiguration to save. |
sortUserData | public void sortUserData(int sortby, int sortorder)(Code) | | |
|
|