📄 jiveglobals.html
字号:
</DL><HR><A NAME="getProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>getProperty</H3><PRE>public static <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>getProperty</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> name, <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> defaultValue)</PRE><DL><DD>Returns a Jive property. If the specified property doesn't exist, the <tt>defaultValue</tt> will be returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to return.<DD><CODE>defaultValue</CODE> - value returned if the property doesn't exist.<DT><B>Returns:</B><DD>the property value specified by name.</DL></DD></DL><HR><A NAME="getIntProperty(java.lang.String, int)"><!-- --></A><H3>getIntProperty</H3><PRE>public static int <B>getIntProperty</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> name, int defaultValue)</PRE><DL><DD>Returns an integer value Jive property. If the specified property doesn't exist, the <tt>defaultValue</tt> will be returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to return.<DD><CODE>defaultValue</CODE> - value returned if the property doesn't exist or was not a number.<DT><B>Returns:</B><DD>the property value specified by name or <tt>defaultValue</tt>.</DL></DD></DL><HR><A NAME="getLongProperty(java.lang.String, long)"><!-- --></A><H3>getLongProperty</H3><PRE>public static long <B>getLongProperty</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> name, long defaultValue)</PRE><DL><DD>Returns a long value Jive property. If the specified property doesn't exist, the <tt>defaultValue</tt> will be returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to return.<DD><CODE>defaultValue</CODE> - value returned if the property doesn't exist or was not a number.<DT><B>Returns:</B><DD>the property value specified by name or <tt>defaultValue</tt>.</DL></DD></DL><HR><A NAME="getBooleanProperty(java.lang.String)"><!-- --></A><H3>getBooleanProperty</H3><PRE>public static boolean <B>getBooleanProperty</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> name)</PRE><DL><DD>Returns a boolean value Jive property.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to return.<DT><B>Returns:</B><DD>true if the property value exists and is set to <tt>"true"</tt> (ignoring case). Otherwise <tt>false</tt> is returned.</DL></DD></DL><HR><A NAME="getBooleanProperty(java.lang.String, boolean)"><!-- --></A><H3>getBooleanProperty</H3><PRE>public static boolean <B>getBooleanProperty</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> name, boolean defaultValue)</PRE><DL><DD>Returns a boolean value Jive property. If the property doesn't exist, the <tt>defaultValue</tt> will be returned. If the specified property can't be found, or if the value is not a number, the <tt>defaultValue</tt> will be returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to return.<DD><CODE>defaultValue</CODE> - value returned if the property doesn't exist.<DT><B>Returns:</B><DD>true if the property value exists and is set to <tt>"true"</tt> (ignoring case). Otherwise <tt>false</tt> is returned.</DL></DD></DL><HR><A NAME="getPropertyNames(java.lang.String)"><!-- --></A><H3>getPropertyNames</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<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>getPropertyNames</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> parent)</PRE><DL><DD>Return all immediate children property names of a parent Jive property as a list of strings, or an empty list if there are no children. For example, given the properties <tt>X.Y.A</tt>, <tt>X.Y.B</tt>, <tt>X.Y.C</tt> and <tt>X.Y.C.D</tt>, then the immediate child properties of <tt>X.Y</tt> are <tt>A</tt>, <tt>B</tt>, and <tt>C</tt> (<tt>C.D</tt> would not be returned using this method).<p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - Parent "node" to find the children of.<DT><B>Returns:</B><DD>a List of all immediate children property names (Strings).</DL></DD></DL><HR><A NAME="getProperties(java.lang.String)"><!-- --></A><H3>getProperties</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<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>getProperties</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> parent)</PRE><DL><DD>Return all immediate children property values of a parent Jive property as a list of strings, or an empty list if there are no children. For example, given the properties <tt>X.Y.A</tt>, <tt>X.Y.B</tt>, <tt>X.Y.C</tt> and <tt>X.Y.C.D</tt>, then the immediate child properties of <tt>X.Y</tt> are <tt>X.Y.A</tt>, <tt>X.Y.B</tt>, and <tt>X.Y.C</tt> (the value of <tt>X.Y.C.D</tt> would not be returned using this method).<p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the name of the parent property to return the children for.<DT><B>Returns:</B><DD>all child property values for the given parent.</DL></DD></DL><HR><A NAME="getPropertyNames()"><!-- --></A><H3>getPropertyNames</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<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>getPropertyNames</B>()</PRE><DL><DD>Returns all Jive property names.<P><DD><DL><DT><B>Returns:</B><DD>a List of all property names (Strings).</DL></DD></DL><HR><A NAME="setProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>setProperty</H3><PRE>public static void <B>setProperty</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> name, <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> value)</PRE><DL><DD>Sets a Jive property. If the property doesn't already exists, a new one will be created.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property being set.<DD><CODE>value</CODE> - the value of the property being set.</DL></DD></DL><HR><A NAME="setProperties(java.util.Map)"><!-- --></A><H3>setProperties</H3><PRE>public static void <B>setProperties</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<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>,<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>> propertyMap)</PRE><DL><DD>Sets multiple Jive properties at once. If a property doesn't already exists, a new one will be created.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyMap</CODE> - a map of properties, keyed on property name.</DL></DD></DL><HR><A NAME="deleteProperty(java.lang.String)"><!-- --></A><H3>deleteProperty</H3><PRE>public static void <B>deleteProperty</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> name)</PRE><DL><DD>Deletes a Jive property. If the property doesn't exist, the method does nothing. All children of the property will be deleted as well.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to delete.</DL></DD></DL><HR><A NAME="migrateProperty(java.lang.String)"><!-- --></A><H3>migrateProperty</H3><PRE>public static void <B>migrateProperty</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> name)</PRE><DL><DD>Convenience routine to migrate an XML property into the database storage method. Will check for the XML property being null before migrating.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the property to migrate.</DL></DD></DL><HR><A NAME="setConfigName(java.lang.String)"><!-- --></A><H3>setConfigName</H3><PRE>public static void <B>setConfigName</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> configName)</PRE><DL><DD>Allows the name of the local config file name to be changed. The default is "openfire.xml".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>configName</CODE> - the name of the config file.</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"> <A HREF="../../../org/jivesoftware/util/JiveConstants.html" title="class in org.jivesoftware.util"><B>PREV CLASS</B></A> <A HREF="../../../org/jivesoftware/util/JiveProperties.html" title="class in org.jivesoftware.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/jivesoftware/util/JiveGlobals.html" target="_top"><B>FRAMES</B></A> <A HREF="JiveGlobals.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 + -