📄 sessionresultfilter.html
字号:
to this filter's sort order.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#getSortField()">getSortField</A></B>()</CODE><BR> Returns the currently selected sort field.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#getSortOrder()">getSortOrder</A></B>()</CODE><BR> Returns the sort order, which will be SessionResultFilter.ASCENDING for ascending sorting, or SessionResultFilter.DESCENDING for descending sorting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#getStartIndex()">getStartIndex</A></B>()</CODE><BR> Returns the index of the first result to return.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#roundDate(java.util.Date, int)">roundDate</A></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> date, int seconds)</CODE><BR> Rounds the given date down to the nearest specified second.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#roundDate(long, int)">roundDate</A></B>(long date, int seconds)</CODE><BR> Rounds the given date down to the nearest specfied second.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#setNumResults(int)">setNumResults</A></B>(int numResults)</CODE><BR> Sets the limit on the number of results to be returned.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#setSortField(int)">setSortField</A></B>(int sortField)</CODE><BR> Sets the sort field to use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#setSortOrder(int)">setSortOrder</A></B>(int sortOrder)</CODE><BR> Sets the sort type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html#setStartIndex(int)">setStartIndex</A></B>(int startIndex)</CODE><BR> Sets the index of the first result to return.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><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="DESCENDING"><!-- --></A><H3>DESCENDING</H3><PRE>public static final int <B>DESCENDING</B></PRE><DL><DD>Descending sort (ie 3, 2, 1...).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.DESCENDING">Constant Field Values</A></DL></DL><HR><A NAME="ASCENDING"><!-- --></A><H3>ASCENDING</H3><PRE>public static final int <B>ASCENDING</B></PRE><DL><DD>Ascending sort (ie 3, 4, 5...).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.ASCENDING">Constant Field Values</A></DL></DL><HR><A NAME="NO_RESULT_LIMIT"><!-- --></A><H3>NO_RESULT_LIMIT</H3><PRE>public static final int <B>NO_RESULT_LIMIT</B></PRE><DL><DD>Represents no result limit (infinite results).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.NO_RESULT_LIMIT">Constant Field Values</A></DL></DL><HR><A NAME="SORT_USER"><!-- --></A><H3>SORT_USER</H3><PRE>public static final int <B>SORT_USER</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.SORT_USER">Constant Field Values</A></DL></DL><HR><A NAME="SORT_CREATION_DATE"><!-- --></A><H3>SORT_CREATION_DATE</H3><PRE>public static final int <B>SORT_CREATION_DATE</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.SORT_CREATION_DATE">Constant Field Values</A></DL></DL><HR><A NAME="SORT_LAST_ACTIVITY_DATE"><!-- --></A><H3>SORT_LAST_ACTIVITY_DATE</H3><PRE>public static final int <B>SORT_LAST_ACTIVITY_DATE</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.SORT_LAST_ACTIVITY_DATE">Constant Field Values</A></DL></DL><HR><A NAME="SORT_NUM_CLIENT_PACKETS"><!-- --></A><H3>SORT_NUM_CLIENT_PACKETS</H3><PRE>public static final int <B>SORT_NUM_CLIENT_PACKETS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.SORT_NUM_CLIENT_PACKETS">Constant Field Values</A></DL></DL><HR><A NAME="SORT_NUM_SERVER_PACKETS"><!-- --></A><H3>SORT_NUM_SERVER_PACKETS</H3><PRE>public static final int <B>SORT_NUM_SERVER_PACKETS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jivesoftware.openfire.SessionResultFilter.SORT_NUM_SERVER_PACKETS">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="SessionResultFilter()"><!-- --></A><H3>SessionResultFilter</H3><PRE>public <B>SessionResultFilter</B>()</PRE><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="createDefaultSessionFilter()"><!-- --></A><H3>createDefaultSessionFilter</H3><PRE>public static <A HREF="../../../org/jivesoftware/openfire/SessionResultFilter.html" title="class in org.jivesoftware.openfire">SessionResultFilter</A> <B>createDefaultSessionFilter</B>()</PRE><DL><DD>Creates a default SessionResultFilter: no filtering with results sorted by user (ascending).<P><DD><DL><DT><B>Returns:</B><DD>default SessionResultFilter.</DL></DD></DL><HR><A NAME="getSortField()"><!-- --></A><H3>getSortField</H3><PRE>public int <B>getSortField</B>()</PRE><DL><DD>Returns the currently selected sort field. The default value is SessionResultFilter.SORT_LAST_ACTIVITY_DATE.<P><DD><DL><DT><B>Returns:</B><DD>current sort field.</DL></DD></DL><HR><A NAME="setSortField(int)"><!-- --></A><H3>setSortField</H3><PRE>public void <B>setSortField</B>(int sortField)</PRE><DL><DD>Sets the sort field to use. The default value is SessionResultFilter.SORT_LAST_ACTIVITY_DATE.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -