⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pubsubpersistencemanager.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#removeAffiliation(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node, org.jivesoftware.openfire.pubsub.NodeAffiliate)">removeAffiliation</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                  <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node,                  <A HREF="../../../../org/jivesoftware/openfire/pubsub/NodeAffiliate.html" title="class in org.jivesoftware.openfire.pubsub">NodeAffiliate</A>&nbsp;affiliate)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the affiliation and subsription state of the user from the DB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#removeNode(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node)">removeNode</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,           <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified node from the DB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#removePublishedItem(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.PublishedItem)">removePublishedItem</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                    <A HREF="../../../../org/jivesoftware/openfire/pubsub/PublishedItem.html" title="class in org.jivesoftware.openfire.pubsub">PublishedItem</A>&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified published item from the DB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#removeSubscription(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node, org.jivesoftware.openfire.pubsub.NodeSubscription)">removeSubscription</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                   <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node,                   <A HREF="../../../../org/jivesoftware/openfire/pubsub/NodeSubscription.html" title="class in org.jivesoftware.openfire.pubsub">NodeSubscription</A>&nbsp;subscription)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the subscription of the user from the DB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#saveAffiliation(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node, org.jivesoftware.openfire.pubsub.NodeAffiliate, boolean)">saveAffiliation</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node,                <A HREF="../../../../org/jivesoftware/openfire/pubsub/NodeAffiliate.html" title="class in org.jivesoftware.openfire.pubsub">NodeAffiliate</A>&nbsp;affiliate,                boolean&nbsp;create)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update the DB with the new affiliation of the user in the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#saveSubscription(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node, org.jivesoftware.openfire.pubsub.NodeSubscription, boolean)">saveSubscription</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                 <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node,                 <A HREF="../../../../org/jivesoftware/openfire/pubsub/NodeSubscription.html" title="class in org.jivesoftware.openfire.pubsub">NodeSubscription</A>&nbsp;subscription,                 boolean&nbsp;create)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the DB with the new subsription of the user to the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#updateDefaultConfiguration(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.DefaultNodeConfiguration)">updateDefaultConfiguration</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                           <A HREF="../../../../org/jivesoftware/openfire/pubsub/DefaultNodeConfiguration.html" title="class in org.jivesoftware.openfire.pubsub">DefaultNodeConfiguration</A>&nbsp;config)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the default node configuration for the specified service.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubPersistenceManager.html#updateNode(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node)">updateNode</A></B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,           <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the node configuration in the database.</TD></TR></TABLE>&nbsp;<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#equals(java.lang.Object)" title="class or interface in java.lang">equals</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>&nbsp;<P><!-- ========= 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="PubSubPersistenceManager()"><!-- --></A><H3>PubSubPersistenceManager</H3><PRE>public <B>PubSubPersistenceManager</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="createNode(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node)"><!-- --></A><H3>createNode</H3><PRE>public static void <B>createNode</B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                              <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node)</PRE><DL><DD>Creates and stores the node configuration in the database.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - The pubsub service that is hosting the node.<DD><CODE>node</CODE> - The newly created node.</DL></DD></DL><HR><A NAME="updateNode(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node)"><!-- --></A><H3>updateNode</H3><PRE>public static void <B>updateNode</B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                              <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node)</PRE><DL><DD>Updates the node configuration in the database.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - The pubsub service that is hosting the node.<DD><CODE>node</CODE> - The updated node.</DL></DD></DL><HR><A NAME="removeNode(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node)"><!-- --></A><H3>removeNode</H3><PRE>public static boolean <B>removeNode</B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                                 <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node)</PRE><DL><DD>Removes the specified node from the DB.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - The pubsub service that is hosting the node.<DD><CODE>node</CODE> - The node that is being deleted.<DT><B>Returns:</B><DD>true If the operation was successful.</DL></DD></DL><HR><A NAME="loadNodes(org.jivesoftware.openfire.pubsub.PubSubService)"><!-- --></A><H3>loadNodes</H3><PRE>public static void <B>loadNodes</B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service)</PRE><DL><DD>Loads all nodes from the database and adds them to the PubSub service.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - the pubsub service that is hosting the nodes.</DL></DD></DL><HR><A NAME="saveAffiliation(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node, org.jivesoftware.openfire.pubsub.NodeAffiliate, boolean)"><!-- --></A><H3>saveAffiliation</H3><PRE>public static void <B>saveAffiliation</B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                                   <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node,                                   <A HREF="../../../../org/jivesoftware/openfire/pubsub/NodeAffiliate.html" title="class in org.jivesoftware.openfire.pubsub">NodeAffiliate</A>&nbsp;affiliate,                                   boolean&nbsp;create)</PRE><DL><DD>Update the DB with the new affiliation of the user in the node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>service</CODE> - The pubsub service that is hosting the node.<DD><CODE>node</CODE> - The node where the affiliation of the user was updated.<DD><CODE>affiliate</CODE> - The new affiliation of the user in the node.<DD><CODE>create</CODE> - True if this is a new affiliate.</DL></DD></DL><HR><A NAME="removeAffiliation(org.jivesoftware.openfire.pubsub.PubSubService, org.jivesoftware.openfire.pubsub.Node, org.jivesoftware.openfire.pubsub.NodeAffiliate)"><!-- --></A><H3>removeAffiliation</H3><PRE>public static void <B>removeAffiliation</B>(<A HREF="../../../../org/jivesoftware/openfire/pubsub/PubSubService.html" title="interface in org.jivesoftware.openfire.pubsub">PubSubService</A>&nbsp;service,                                     <A HREF="../../../../org/jivesoftware/openfire/pubsub/Node.html" title="class in org.jivesoftware.openfire.pubsub">Node</A>&nbsp;node,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -