10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.1 The BuddyList service advantagesAs we describe in the introduction, the BuddyList service is a wrapper above thestorage service, designed for more easily handling the loading and storage of theuser buddylist. A developer working with the API still has the capability tomanage the loading and storage of the buddylist using the storage servicedirectly, so you may ask yourself why do I need this service?The demand for the BuddyList service came from the requirement of developerswishing to use the same buddylist content that is used by the official Sametimeclients (Desktop/Java connect) between various applications. Rather thanmanaging multiple buddylists between applications, the API developers wouldlike to work with the same buddylist content and be able to access this for theirvarious applications. Accordingly, when users switch from one application toanother, they can still get the same buddylist content. This capability has provento be a very important requirement for Sametime customers.While the storage service provides functionality to save or load attributes fromthe server, it does not recognize the attribute structure or values contained withinthe buddylist. It is the developer’s full responsibility to know what the attributescontain.7.1.1 The Sametime buddylist attribute structureThe official Sametime buddylist attribute ID is zero.The official Sametime buddylist attribute value is a long string that contains thecomplete buddylist hierarchy and even the status of every group (open/close).Example 7-1 is an example of the buddylist string value.Example 7-1 Buddylist string valueVersion=3.1.3/nG Work2 Work O/nU CN=Yafit;Sami,O=itsoportal1:: Yafit;Sami,/nUCN=Bill;Mariscal1:: Bill;Mariscal,/nU CN=Carl;Tyler,O=itsoportal1::Carl;Tyler,/nG Support2 Support O/nU CN=camilo;lopez,O=itsoportal1::camilo;lopez,/nU CN=chris;heltzel,O=itsoportal1:: chris;heltzel,/nGCN=Administrators3 Administrators OAs you can see from this example, the string is very complicated and thedeveloper must know exactly how to parse it and add to this list in order not todamage the attribute.This is exactly the problem that the BuddyList service is designed to solve. TheBuddyList service saves the API developer the need to know this string structureand allows them to work with it in a more object oriented way.164 <strong>Lotus</strong> <strong>Instant</strong> <strong>Messaging</strong>/<strong>Web</strong> <strong>Conferencing</strong> (Sametime): Building Sametime-Enabled Applications

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!