📄 auditevent.html
字号:
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="USER_CODES"><!-- --></A><H3>USER_CODES</H3><PRE>public static final int <B>USER_CODES</B></PRE><DL><DD>All user generated codes must be equal to or greater than this constant to avoid clashing with Openfire event codes.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jivesoftware.openfire.audit.AuditEvent.USER_CODES">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="AuditEvent(org.jivesoftware.openfire.session.Session, java.util.Date, int, int, java.lang.String)"><!-- --></A><H3>AuditEvent</H3><PRE>public <B>AuditEvent</B>(<A HREF="../../../../org/jivesoftware/openfire/session/Session.html" title="interface in org.jivesoftware.openfire.session">Session</A> eventSession, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> timestamp, int eventCode, int eventReason, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> eventData)</PRE><DL><DD>Create a new audit event.<P><DL><DT><B>Parameters:</B><DD><CODE>eventSession</CODE> - the session that triggered the event or null if no session is associated with this event.<DD><CODE>timestamp</CODE> - the date/time the event occured.<DD><CODE>eventCode</CODE> - a code indicating the type of event that occured.<DD><CODE>eventReason</CODE> - a second code indicating more details about the event type.<DD><CODE>eventData</CODE> - arbitrary string data associated with the event or null.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getCode()"><!-- --></A><H3>getCode</H3><PRE>public int <B>getCode</B>()</PRE><DL><DD>Obtain the primary type of event.<P><DD><DL><DT><B>Returns:</B><DD>the code indicating the event's type.</DL></DD></DL><HR><A NAME="setCode(int)"><!-- --></A><H3>setCode</H3><PRE>public void <B>setCode</B>(int code)</PRE><DL><DD>Set the primary type of event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>code</CODE> - the code indicating the event's type.</DL></DD></DL><HR><A NAME="getData()"><!-- --></A><H3>getData</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getData</B>()</PRE><DL><DD>Obtain the data associated with the event.<P><DD><DL><DT><B>Returns:</B><DD>the data associated with the event</DL></DD></DL><HR><A NAME="setData(java.lang.String)"><!-- --></A><H3>setData</H3><PRE>public void <B>setData</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> data)</PRE><DL><DD>Set the data associated with the event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data associated with the event.</DL></DD></DL><HR><A NAME="getReason()"><!-- --></A><H3>getReason</H3><PRE>public int <B>getReason</B>()</PRE><DL><DD>Obtain the subtype of event.<P><DD><DL><DT><B>Returns:</B><DD>the code indicating the event's subtype</DL></DD></DL><HR><A NAME="setReason(int)"><!-- --></A><H3>setReason</H3><PRE>public void <B>setReason</B>(int reason)</PRE><DL><DD>Set the subtype of event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>reason</CODE> - the code indicating the event's subtype.</DL></DD></DL><HR><A NAME="getSession()"><!-- --></A><H3>getSession</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/session/Session.html" title="interface in org.jivesoftware.openfire.session">Session</A> <B>getSession</B>()</PRE><DL><DD>Obtain the session associated with the event.<P><DD><DL><DT><B>Returns:</B><DD>the session associated with the event.</DL></DD></DL><HR><A NAME="setSession(org.jivesoftware.openfire.session.Session)"><!-- --></A><H3>setSession</H3><PRE>public void <B>setSession</B>(<A HREF="../../../../org/jivesoftware/openfire/session/Session.html" title="interface in org.jivesoftware.openfire.session">Session</A> session)</PRE><DL><DD>Set the session associated with the event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>session</CODE> - the session associated with the event.</DL></DD></DL><HR><A NAME="getTimestamp()"><!-- --></A><H3>getTimestamp</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getTimestamp</B>()</PRE><DL><DD>Obtain the timestamp of when the event occured.<P><DD><DL><DT><B>Returns:</B><DD>the time the event occured.</DL></DD></DL><HR><A NAME="setTimestamp(java.util.Date)"><!-- --></A><H3>setTimestamp</H3><PRE>public void <B>setTimestamp</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> time)</PRE><DL><DD>Set the timestamp of when the event occured.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - the time the event occured.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../org/jivesoftware/openfire/audit/AuditManager.html" title="interface in org.jivesoftware.openfire.audit"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jivesoftware/openfire/audit/AuditEvent.html" target="_top"><B>FRAMES</B></A> <A HREF="AuditEvent.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -