Development of Lotus Sametime online Sensing Technology

Source: Internet
Author: User
Tags ldap

1. Background
   Sametime provides powerful integration capabilities and can be used to expand online sensing capabilities. Sametime's online sensing technology allows employees on Oa to know if they need to contact their colleagues online and free; one-to-one and one-to-many instant messaging, file delivery, and network meetings can be carried out at any time. It can also be expanded to an Internet website, allowing customers to see whether our Customer Service staff are online and send instant messages.

2. Understanding about sametime Development
   Sametime toolkit provides a variety of development interfaces. For more information about IBM Lotus Sametime, search for related documents on Google.
   With a little understanding of sametime, we are most interested in the online sametime sensing function. However, to implement sametime sensing, the most important step is to implement it, is how to log on to the Web Client. The following is an online Web Awareness test used in the project.CodeExample

 

Understanding sametime Development

<HTML>
<Head>  
// Http://sametime.naveco.com.cn/path to the Sametime Server
<LINK rel = stylesheet href = "http://sametime.naveco.com.cn/sametime/stlinks/stlinks.css" type = "text/CSS">
<SCRIPT src = "http://sametime.naveco.com.cn/sametime/stlinks/stlinks.js"> </SCRIPT>
<SCRIPT>
Setstlinksurl ("http://sametime.naveco.com.cn/sametime/stlinks", "ZH ");

// Set the sametime toolkit environment path, and set the default UI to "ZH" simplified Chinese
</SCRIPT> <SCRIPT>
Function getcookie (name ){
VaR Dc = Document. Cookie;
VaR prefix = Name + "= ";
VaR begin = Dc. indexof (";" + prefix );
If (begin =-1 ){
Begin = Dc. indexof (prefix );
If (begin! = 0) return NULL;
} Else {
Begin + = 2;
}
VaR end = Document. Cookie. indexof (";", begin );
If (END =-1 ){
End = Dc. length;
}
Return (DC. substring (begin + prefix. length, end ));
}

If the Sametime server is configured to allow anonymous users, it can be expanded to the company website to provide customers with the function of sending instant chat information; otherwise, you need to set the login user of Sametime. Assume that the multi-server SSO configuration has been completed for our Sametime server and Domino server, and we log on to the Sametime Server by passing the token.

If (getcookie ('ltpatoken') = NULL ){
   Writestlinksapplet ("anonymous user", "", false );
   } Else {
   Writestlinksapplet ("<calculated value>", getcookie ('ltpatoken'), true );

It is important to note that using the LDAP method does not have much to do with online awareness, but if the Sametime server uses the LDAP method, replace the separator "/" in @ username ","

The content of <calculated value> is processed by @ username

</SCRIPT>
</Head> <body> <SCRIPT>

The writesametimelink function is used to show whether the xxx user is online or not. If the user is online. Click its icon to open the instant chat window with the user.

The three parameters are as follows: user full name; display name; whether the server is required to parse the user name;Option: whether to display the on/off line icon; Whether to display the User display name

In this example, the online conditions of oatest, wangyuehua, and yujianbo are listed.

Writesametimelink ("cn = oatest, ou = Support, ou = copartner, ou = naveco, Dc = Ned, Dc = naveco, Dc = com, Dc = cn", "oatest ", false, "text: Yes; icon: yes ");
Document. Write ("<br> ");
Writesametimelink ("cn = wangyuehua, ou = 1zz1cscw, ou = financialdept, ou = financearea, ou = naveco, Dc = Ned, Dc = naveco, Dc = com, Dc = cn ", "wangyuehua", false, "text: Yes; icon: yes ");
Document. Write ("<br> ");
Writesametimelink ("cn = yujianbo, ou = wljsk, ou = informationmanagement, ou = managementandplanningareA, ou = naveco, Dc = Ned, Dc = naveco, Dc = com, Dc = cn "," yujianbo ", false," text: Yes; icon: yes ");
</SCRIPT>
</Body>

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.