简体   繁体   English

如何在IBM Community Server中存储全局参数

[英]How to store global parameter in IBM Community Server

I need to store a global parameter in IBM Sametime Community server which can be read by all the users through a sametime plugin.. Which the best way to do it? 我需要在IBM Sametime社区服务器中存储一个全局参数,所有用户都可以通过Sametime插件读取该参数。哪种方法最好? The main task is to store a web address from where user can pick other additional config info for the plugin. 主要任务是存储一个网址,用户可以从中选择该插件的其他其他配置信息。

If you haven't already you will need the IBM Sametime Software Development Kit . 如果还没有,则需要IBM Sametime软件开发套件 Look at the stjavatkdevguide.pdf on page 56 it discussed the Storage Service, this is what you will want to use. 查看第56页的stjavatkdevguide.pdf,其中讨论了存储服务,这是您要使用的。 It explains how to 它说明了如何

In a quick simple summary: You will want to create a StoragerServiceListener and add it to the Storage Service using addStorageServiceListerner(). 简要总结一下:您将要创建一个StoragerServiceListener并使用addStorageServiceListerner()将其添加到Storage Service中。 Then to store an attribute, create an STAttribute and assign it your values, then store the attribute with storeAttr(). 然后要存储属性,请创建一个STAttribute并为其分配值,然后使用storeAttr()存储该属性。 To Query it use QueryAttr(). 要查询它,请使用QueryAttr()。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM