Java Doc for LogInterfaceBean.java in  » Authentication-Authorization » ejbca » org » ejbca » ui » web » admin » loginterface » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Authentication Authorization » ejbca » org.ejbca.ui.web.admin.loginterface 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Constructor Summary
public  LogInterfaceBean()
    

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  LogEntriesViewfilterByUsername(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  CollectiongetAvailableLogDevices()
    
public  LogEntryView[]getEntries(int index, int size)
    
public  HashMapgetEventNameHashToIdMap()
     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  HashMapgetModuleNameToIdMap()
     Help methods that sets up id mappings between module ids and module names in local languange.
public  intgetResultSize()
    
public  HashMapgetTranslatedEventNameToIdMap()
     Help methods that sets up id mappings between event ids and event names in local languange.
public  voidinitialize(HttpServletRequest request, EjbcaWebBean ejbcawebbean)
     Method that initialized the bean.
public  LogConfigurationloadLogConfiguration(int caid)
     Loads the log configuration from the database.
public  booleannextButton(int index, int size)
    
public  booleanpreviousButton(int index)
    
public  voidsaveLogConfiguration(int caid, LogConfiguration logconfiguration)
     Saves the log configuration to the database.
public  voidsortUserData(int sortby, int sortorder)
    


Constructor Detail
LogInterfaceBean
public LogInterfaceBean()(Code)
Creates new LogInterfaceBean




Method Detail
exportLastQuery
public byte[] exportLastQuery(String deviceName, ILogExporter exporter) throws IllegalQueryException, CADoesntExistsException, ExtendedCAServiceRequestException, IllegalExtendedCAServiceRequestException, ExtendedCAServiceNotActiveException(Code)
Method that exports log entries according to an exporter passed as argument.
Parameters:
  exporter - the export implementation to use, implements the ILogExporter interface byte[] byte data or null if no of exported entries are 0.
throws:
  IllegalQueryException -
throws:
  ExtendedCAServiceNotActiveException -
throws:
  IllegalExtendedCAServiceRequestException -
throws:
  ExtendedCAServiceRequestException -
throws:
  CADoesntExistsException -
See Also:   org.ejbca.core.model.log.ILogExporter



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.



getAvailableLogDevices
public Collection getAvailableLogDevices()(Code)



getEntries
public LogEntryView[] getEntries(int index, int size)(Code)



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.



initialize
public void initialize(HttpServletRequest request, EjbcaWebBean ejbcawebbean) throws Exception(Code)
Method that initialized the bean.
Parameters:
  request - is a reference to the http request.



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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.