Package lotus.domino

Examples of lotus.domino.Database


                // Domino classes.
                session = NotesFactory.createSession();
            }
     
            // Getting the specified Notes database.
            Database database = session.getDatabase( "", stringDatabase );
           
            // Getting a collection of all documents from the database.
            DocumentCollection documentCollection = database.getAllDocuments();
     
            // Getting the first document from the database
            Document document = documentCollection.getFirstDocument();
     
            // Start to write to cells at this row.
View Full Code Here


                // Domino classes.
                session = NotesFactory.createSession();
            }
     
            // Getting the specified Notes database.
            Database database = session.getDatabase( "", stringDatabase );
           
            // Getting a collection of all documents from the database.
            DocumentCollection documentCollection = database.getAllDocuments();
     
            // Getting the first document from the database
            Document document = documentCollection.getFirstDocument();
     
            // Start to write to cells at this row.
View Full Code Here

        // Creating a Notes session for only local calls to the Domino classes.
        session = NotesFactory.createSession();
      }
     
      // Getting the specified Notes database.
      Database database = session.getDatabase( "", stringDatabase );
     
      // Getting a collection of all documents from the database.
      DocumentCollection documentcollection = database.getAllDocuments();
     
      // Getting the first document from the database
      Document document = documentcollection.getFirstDocument();
     
      // Start to write to cells at this row.
View Full Code Here

  @SuppressWarnings("unchecked")
  private synchronized void init() {
    _persons = new HashMap<String, Person>();

    Database db = ExtLibUtil.getCurrentDatabase();
    View viewPersonsAll = null;
    ViewNavigator viewNavigator = null;

    try {
      viewPersonsAll = db.getView("PersonsAll");
      viewPersonsAll.setAutoUpdate(false);
      viewNavigator = viewPersonsAll.createViewNav();
      ViewEntry tmpEntry;
      ViewEntry entry = viewNavigator.getFirst();
      while (entry != null) {
View Full Code Here

  public boolean reloadSettings() {
    Messages.clear();

    try {

      Database database = (Database) resolveVariable("database");
      View settingsView = database.getView("applicationSettings");
      Document settings = settingsView.getFirstDocument();

      if (null == settings) {

        settingsView.recycle();
View Full Code Here

  }

  public boolean saveSettings() {

    try {
      Database database = (Database) resolveVariable("database");
      Document settings = null;
      View settingsView = database.getView("applicationSettings");
      settings = settingsView.getFirstDocument();
      if (settings == null) {
        settings = database.createDocument();
        settings.replaceItemValue("form", "applicationSettings");
      }

      settings.replaceItemValue("saveMypicURLToNab", SaveUrlInNab);
      settings.replaceItemValue("enableProfiles", EnableProfiles);
View Full Code Here

    return validConfig;
  }
 
  public boolean storeInNab(String mypicProfileUNID) {
    try {
      Database database = (Database) resolveVariable("database");
      Document profile = database.getDocumentByUNID(mypicProfileUNID);
     
      if (null != profile) {
        Session session = (Session) resolveVariable("sessionAsSigner");
        Database nab = session.getDatabase(this.NabServer, this.NabFilePath);
       
        if (null != nab) {
          String userAbbrev = session.createName(profile.getItemValueString("User")).getAbbreviated();
          View VIMPeople = nab.getView("($VIMPeople)");
         
          Document nabEntry = VIMPeople.getDocumentByKey(userAbbrev, true);
          if (null != nabEntry) {
            XSPContext context = (XSPContext) resolveVariable("context");
View Full Code Here

                // Domino classes.
                session = NotesFactory.createSession();
            }
     
            // Getting the specified Notes database.
            Database database = session.getDatabase( "", stringDatabase );
           
            // Getting a collection of all documents from the database.
            DocumentCollection documentCollection = database.getAllDocuments();
     
            // Getting the first document from the database
            Document document = documentCollection.getFirstDocument();
     
            // Start to write to cells at this row.
View Full Code Here

  // ===================================================================
  // Import data
  // ===================================================================

  public void run() throws NotesException, IOException {
    Database db = ExtLibUtil.getCurrentDatabase();
    if (deleteAllDoc) {
      deleteAllDocuments();
    }
    if (createUsers) {
      createUsers(db);
View Full Code Here

  // ===================================================================
  // Delete all documents
  // ===================================================================

  void deleteAllDocuments() throws NotesException {
    Database db = ExtLibUtil.getCurrentDatabase();
    if (db.getAllDocuments().getCount() > 0) {
      db.getAllDocuments().removeAll(true);
    }
  }
View Full Code Here

TOP

Related Classes of lotus.domino.Database

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.