SunQuest
 
       Administration
  Home arrow Administration arrow Page 2 - Connect Lotus Domino Server through St...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Connect Lotus Domino Server through Standalone Application with CORBA
By: Alex Soto Bueno
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 13
    2004-09-14

    Table of Contents:
  • Connect Lotus Domino Server through Standalone Application with CORBA
  • Start Working with Documents
  • Looking for Documents
  • Working with Received Mails
  • Deleting Attachments
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Connect Lotus Domino Server through Standalone Application with CORBA - Start Working with Documents


    (Page 2 of 6 )

    Creating a Document

    Creating a document and filling the information is as easy as:

    Document Doc = this.database.createDocument();
    Doc.replaceItemValue("name","Alex Soto Bueno");

    We have to create the document and call the method replaceItemValue, where the first argument is the name of the field, and the second, its content. The content argument is a class java.lang.Object. This is because in single value fields, we pass a String, but in multiple values fields we can put a java.util.Vector with all the Strings we want to save.

    Furthermore, we have the ability of attach files. Note: the files must be resident in Lotus Domino Server, not in the client application. A good solution can be to upload them beforehand with FTP. When the file is already attached in the server, we must do this:

    RichTextItem body = doc.createRichTextItem("Body");
    body.embedObject(EmbeddedObject.EMBED_ATTACHMENT ,"", "c:inetpubftproot22572.txt", "22572.txt");

    We will use RichTextItem class. This class has methods to transform the data into XML, copy attachments, consult its content ...

    What we do in the code is to create in field called Body, a RichTextItem, and in this case we paste a file that is located in c:inetpubftproot22572.txt in the SERVER.

    Document class has a lot of methods to interact with a Lotus Document. It's simple, and by consulting javadoc, you will be able to execute all operations against Domino.

    The last thing you must do is to save a document. This is obvious but it easy to forget.

    Doc.save(); 

    More Administration Articles
    More By Alex Soto Bueno


       · i recently completed an web app that hooks into domino, a few things i learned is...
       · Hi,I am writing a program in java which will read a (Domino)NSF file stored...
     

       

    ADMINISTRATION ARTICLES

    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway