Source Code Cross Referenced for ILogDevice.java in  » Authentication-Authorization » ejbca » org » ejbca » core » model » log » 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.core.model.log 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*************************************************************************
002:         *                                                                       *
003:         *  EJBCA: The OpenSource Certificate Authority                          *
004:         *                                                                       *
005:         *  This software is free software; you can redistribute it and/or       *
006:         *  modify it under the terms of the GNU Lesser General Public           *
007:         *  License as published by the Free Software Foundation; either         *
008:         *  version 2.1 of the License, or any later version.                    *
009:         *                                                                       *
010:         *  See terms of license at gnu.org.                                     *
011:         *                                                                       *
012:         *************************************************************************/package org.ejbca.core.model.log;
013:
014:        import java.io.Serializable;
015:        import java.security.cert.X509Certificate;
016:        import java.util.Collection;
017:        import java.util.Date;
018:        import java.util.Properties;
019:
020:        import org.ejbca.core.model.ca.caadmin.CADoesntExistsException;
021:        import org.ejbca.core.model.ca.caadmin.extendedcaservices.ExtendedCAServiceNotActiveException;
022:        import org.ejbca.core.model.ca.caadmin.extendedcaservices.ExtendedCAServiceRequestException;
023:        import org.ejbca.core.model.ca.caadmin.extendedcaservices.IllegalExtendedCAServiceRequestException;
024:        import org.ejbca.util.query.IllegalQueryException;
025:        import org.ejbca.util.query.Query;
026:
027:        /**
028:         * Interface used by EJBCA external log devices such as Log4j.
029:         * @version $Id: ILogDevice.java,v 1.4 2008/01/04 08:55:19 jeklund Exp $
030:         */
031:        public interface ILogDevice extends Serializable {
032:
033:            public final String PROPERTY_DEVICENAME = "deviceName";
034:
035:            /**
036:             * Log information.
037:             * @param admininfo contains information about the administrator performing the event.
038:             * @param caid the id of the catch (connected to the event.
039:             * @param module indicates the module using the bean.
040:             * @param time the time the event occured.
041:             * @param username the name of the user involved or null if no user is involved.
042:             * @param certificate the certificate involved in the event or null if no certificate is involved.
043:             * @param event id of the event, should be one of the org.ejbca.core.model.log.LogConstants.EVENT_ constants.
044:             * @param comment comment of the event.
045:             * @param exception the exception that has occurred (can be null)
046:             */
047:            public void log(Admin admininfo, int caid, int module, Date time,
048:                    String username, X509Certificate certificate, int event,
049:                    String comment, Exception exception);
050:
051:            /**
052:             * Method to export log records according to a customized query on the log db data. The parameter query should be a legal Query object.
053:             *
054:             * @param query a number of statments compiled by query class to a SQL 'WHERE'-clause statment.
055:             * @param viewlogprivileges is a sql query string returned by a LogAuthorization object.
056:             * @param logexporter is the obbject that converts the result set into the desired log format 
057:             * @return an exported byte array. Maximum number of exported entries is defined i LogConstants.MAXIMUM_QUERY_ROWCOUNT, returns null if there is nothing to export
058:             * @throws IllegalQueryException when query parameters internal rules isn't fullfilled.
059:             * @throws ExtendedCAServiceNotActiveException 
060:             * @throws IllegalExtendedCAServiceRequestException 
061:             * @throws ExtendedCAServiceRequestException 
062:             * @throws CADoesntExistsException 
063:             * @see org.ejbca.util.query.Query
064:             */
065:            public byte[] export(Admin admin, Query query,
066:                    String viewlogprivileges, String capriviledges,
067:                    ILogExporter logexporter) throws IllegalQueryException,
068:                    CADoesntExistsException, ExtendedCAServiceRequestException,
069:                    IllegalExtendedCAServiceRequestException,
070:                    ExtendedCAServiceNotActiveException;
071:
072:            /**
073:             * Method to execute a customized query on the log db data. The parameter query should be a legal Query object.
074:             *
075:             * @param query a number of statments compiled by query class to a SQL 'WHERE'-clause statment.
076:             * @param viewlogprivileges is a sql query string returned by a LogAuthorization object.
077:             * @return a collection of LogEntry. Maximum size of Collection is defined i LogConstants.MAXIMUM_QUERY_ROWCOUNT
078:             * @throws IllegalQueryException when query parameters internal rules isn't fullfilled.
079:             * @see org.ejbca.util.query.Query
080:             */
081:            public Collection query(Query query, String viewlogprivileges,
082:                    String capriviledges) throws IllegalQueryException;
083:
084:            /**
085:             * This is called for the log device, right before the LogSessionBean is removed. Since there can exist several LogSessionBeans, this
086:             * should be able to handle multiple calls.  
087:             */
088:            public void destructor();
089:
090:            /**
091:             * @return true if this device uses the internal log configuration framework
092:             */
093:            public boolean getAllowConfigurableEvents();
094:
095:            /**
096:             * @return the properties used by this LogDevice.
097:             */
098:            public Properties getProperties();
099:
100:            /**
101:             * @return the name the device
102:             */
103:            public String getDeviceName();
104:
105:            /**
106:             * Resets the status of the device. Used externally for testing.
107:             */
108:            public void resetDevice(Properties properties);
109:
110:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.