Package lotus.domino

Examples of lotus.domino.Database


      this.unid = null;
    }
    ObjectObject o = new ObjectObject(jsContext);
    try {
      if(StringUtil.isNotEmpty(id)) {
        Database database = ExtLibUtil.getCurrentDatabase();
        Vector v = new Vector();
        v.add(FORM);
        v.add(id);
        ViewEntry e = database.getView("AllSnippetsById").getEntryByKey(v);
        if(e!=null) {
          Document doc = e.getDocument();
          Properties p = new Properties();
          String props = doc.getItemValueString("Properties");
          if(StringUtil.isNotEmpty(props)) {
View Full Code Here


      }
      String[] envs = StringUtil.splitString(OptionsBean.get().getEnvironments(),',');

      cacheFilled = true;
      List<String> allEnvs = new ArrayList<String>();
      Database db = ExtLibUtil.getCurrentDatabase();
      if(db!=null) {
        View v = db.getView("AllEnvironments");
        if(v!=null) {
          ViewEntryCollection vc = v.getAllEntries();
          for(ViewEntry e=vc.getFirstEntry(); e!=null; e=vc.getNextEntry()) {
            Document d = e.getDocument();
            try {
View Full Code Here

    }
    return false;
  }

  public String changeParent(String noteID, String newParentID) throws Exception {
    Database db = ExtLibUtil.getCurrentDatabase();
    Document doc = db.getDocumentByID(noteID);
    Document newParent = db.getDocumentByID(newParentID);
    doc.makeResponse(newParent);
    return null;
  }
View Full Code Here

    }
    return null;
  }
  protected Document loadOptionsDocument() {
    try {
      Database db = ExtLibUtil.getCurrentDatabase();
      View v = db.getView("GlobalOptions");
      Document doc = v.getFirstDocument();
      return doc;
    } catch(Exception ex) {
      ex.printStackTrace();
    }
View Full Code Here

        // Make sure that the endpoints are updated for the filtering
        this.assetLoaderEnvironment.prepareEndpoints();
      }
     
      //PlaygroundEnvironment env = DataAccessBean.get().findCurrentEnvironment();
      Database db = ExtLibUtil.getCurrentDatabase();
      View v = db.getView("AllSnippetsFlat");
      try {
        RootNode root = new RootNode();
        String apisSearch = (String)ExtLibUtil.getViewScope().get("assetSearch");
        if(StringUtil.isNotEmpty(apisSearch)) {
          v.FTSearch(apisSearch);
View Full Code Here

 
  /**
   * Read the asset categories
   */
  public String[] getAllCategories() throws NotesException {
    Database db = ExtLibUtil.getCurrentDatabase();
    View v = db.getView("AllSnippets");
    ViewNavigator nav = v.createViewNavFromCategory(getAssetForm());
    try {
      nav.setMaxLevel(1);
      //nav.setCacheSize(128);
      List<String> categories = new ArrayList<String>();
View Full Code Here

            throw new MimeEmailException("The email's to, cc, and bcc fields are empty.");
        }
        try {
          // Should use the log.nsf first!
            //Database db = DominoUtils.openDatabaseByName("log.nsf");
          Database db = ExtLibUtil.getCurrentDatabase();
          if(db==null) {
            // Should use the log application
            throw new MimeEmailException("Unbale to find an NSF to send the email message");
          }
      lotus.domino.Session session = db.getParent();
      Document doc = db.createDocument();

      doc.appendItemValue("Form", "Memo"); //$NON-NLS-1$

      doc.appendItemValue("Subject", getSubject()); //$NON-NLS-1$
      doc.appendItemValue("SendTo", getCommaSeparatedTo()); //$NON-NLS-1$
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public NotesDatabase getDatabase(String server, String database)
      throws NotesConnectorExceptionImpl {
    try {
      Database databaseObj = getNotesObject().getDatabase(server, database);
      if (databaseObj == null) {
        return null;
      }
      return new NotesDatabaseImpl(databaseObj);
    } catch (NotesException e) {
View Full Code Here

      try {
        String databaseName = ((String[])parameters)[0];
        String type = ((String[])parameters)[1];
        String sourceName = ((String[])parameters)[2];
       
        Database db = session.getDatabase(null, databaseName);
        try {
            AssetImporter imp = AssetImporter.createImporter(type, db);
          if(imp!=null) {
            imp.importAssets(sourceName,this);
          }
        } finally {
          db.recycle();
        }
      } catch(Throwable e) {
        updateException(e);
        e.printStackTrace();
      }
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

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.