外出代理Lotus Domino [英] Out of Office Agent Lotus Domino

查看:112
本文介绍了外出代理Lotus Domino的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过Java更改外出邮件的主题.同时,我希望通过java启用外出"功能. 我自己尝试过这样的事情:

I need to Change Subject Of Out Of Office Message through Java. At the same time I wish to enable Out of Office through java. I tried something by myself like this :

Document dc = db.getProfileDocument("OutOfOfficeProfile", s.getUserName());
Vector vc = dc.getItems();
for(int i=0;i<vc.size();i++){
  Item it = (Item) vc.get(i);
  System.out.println(it.toString()+":::::::>>>>>>"
                   + dc.getItemValueString(it.toString()));
}

我将商品名称命名为:

$Name:::::::>>>>>>$profile_018outofofficeprofile_cn=sachin jain/o=tcsapp 
$UpdatedBy:::::::>>>>>>CN=Sachin Jain/O=TCSAPP
$NoPurge:::::::>>>>>> 
$ConflictAction:::::::>>>>>>2

我已经搜索了很多东西.我通过Domino Designer遇到了OutOfOffice Agent.但是我不知道如何更改OOO消息的主题和正文,以及如何通过Java启用它?

I had searched for it a lot. I came across OutOfOffice Agent though Domino Designer. But I don't know how I can change the Subject and Body Of OOO Message and how can I enable it through Java?

推荐答案

OutOfOfficeProfile概要文件包含运行OutOfOffice代理所需的所有必要数据.因此,如果您更改此配置文件中的数据,则更改将在OutOfOffice代理运行时反映出来.

The OutOfOfficeProfile profile document contains all necessary data for the OutOfOffice agent to run. So if you change data in this profile document, the changes will be reflected when the OutOfOffice agent runs.

我建议您查看OutOfOffice代理,并查看其使用了哪些字段-从而需要更改哪些字段才能更改外出"邮件的主题.快速查看代理后,我发现GeneralSubject字段用于常规OoO消息,而SpecialSubject字段用于特殊OoO消息.

I suggest that you look at the OutOfOffice agent and see what fields it uses - and thereby what fields you need to modify to change the subject for the Out Of Office mail. A quick look in the agent tells me that the field GeneralSubject is used for the general OoO messages while the field SpecialSubject is used for the special OoO messages.

使用Java,您可以使用Document类(就像您开始使用的那样)来更改配置文件数据.记住在更改NotesDocument字段时调用dc.Save().

With Java you can change the profile data using the Document class (as you have alrady started to use). Remember to call dc.Save() when you change the NotesDocument fields.

使用Java,您可以使用Agent类和agent.setEnabled(true);启用代理.

With Java you can enable the agent using the Agent class and agent.setEnabled(true);.

在Domino Designer帮助数据库中查找有关类,属性和方法的更多信息.

Look in the Domino Designer Help database for more information on the classes, properties and methods.

这篇关于外出代理Lotus Domino的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆