Package lotus.domino

Examples of lotus.domino.Document.save()


  public void duplicateEnvironment(String id) throws NotesException, IOException {
    Document d = ExtLibUtil.getCurrentDatabase().getDocumentByID(id);
    Document newDoc = ExtLibUtil.getCurrentDatabase().createDocument();
    d.replaceItemValue("name", StringUtil.format("Copy of {0}", d.getItemValueString("Name")));
    d.copyAllItems(newDoc, true);
    newDoc.save();
  }
  public void copyEnvironment(DominoDocument doc, String name) throws NotesException, IOException {
    View v = ExtLibUtil.getCurrentDatabase().getView("AllEnvironments");
    ViewEntry ve = v.getEntryByKey(name);
    if(ve!=null) {
View Full Code Here


            if(ve.getIndentLevel()==docIndent) {
              Object ts = other.getItemValue("OrderTS");
              other.replaceItemValue("OrderTS",doc.getItemValue("OrderTS"));
              doc.replaceItemValue("OrderTS",ts);
              doc.save();
              other.save();
              view.refresh();
              return true;
            }
          }
          return false;
View Full Code Here

        Document doc = database.createDocument();
        try {
          doc.setUniversalID(e.getUnid());
          importDocument(session,doc,e.getJsonObject());
          if(getDocumentFilter()==null || getDocumentFilter().accept(doc)) {
            doc.save();
          }
        } finally {
          doc.recycle();
        }
      }
View Full Code Here

     
      if(products!=null && products.length>0) {
        setItemValue(doc,"FilterRuntimes", StringUtil.concatStrings(products, ',', true));
      }
     
      doc.save();
    } finally {
      doc.recycle();
    }
  }
 
View Full Code Here

      snippet.getProperties().remove("endpoints");
      snippet.getProperties().remove("description");
      setItemValueRichText(doc,"Properties", snippet.getPropertiesAsString());
      setItemValueRichText(doc,"Documentation", snippet.getDocHtml());
     
      doc.save();
    } finally {
      doc.recycle();
    }
  }
}
View Full Code Here

      snippet.getProperties().remove("endpoints");
      snippet.getProperties().remove("description");
      setItemValueRichText(doc,"Properties", snippet.getPropertiesAsString());
      setItemValueRichText(doc,"Documentation", snippet.getDocHtml());

      doc.save();
    } finally {
      doc.recycle();
    }
  }
 
View Full Code Here

      snippet.getProperties().remove("jslibs");
      snippet.getProperties().remove("description");
      setItemValueRichText(doc,"Properties", snippet.getPropertiesAsString());
      setItemValueRichText(doc,"Documentation", snippet.getDocHtml());
     
      doc.save();
    } finally {
      doc.recycle();
    }
  }
}
View Full Code Here

      snippet.getProperties().remove("endpoints");
      snippet.getProperties().remove("description");
      setItemValueRichText(doc,"Properties", snippet.getPropertiesAsString());
      setItemValueRichText(doc,"Documentation", snippet.getDocHtml());
     
      doc.save();
    } finally {
      doc.recycle();
    }
  }
}
View Full Code Here

      settings.replaceItemValue("nabFilePath", NabFilePath);
      settings.replaceItemValue("enableAPIPage", ShowApiInNav);
      settings.replaceItemValue("defaultFormat", DefaultFormat);
      settings.replaceItemValue("defaultSize", DefaultSize);
     
      settings.save();

      if ((SaveUrlInNab.equals("Yes") || StoreProfilesInNab.equals("Yes")) && (NabServer.isEmpty() || NabFilePath.isEmpty())) {
        Messages.clear();
        Messages.add("To save mypic URLs or Profile information to a Names and address book, "
            + "the NAB Server and File Path must be specified.");
View Full Code Here

              nabEntry.replaceItemValue("OfficeNumber", profile.getItemValueString("OfficeNumber"));
            }
            if (this.SaveUrlInNab == "Yes") {
              nabEntry.replaceItemValue("PhotoURL", profile.getItemValueString("PhotoURL"));
            }
            if (nabEntry.save()) {
              if (profile.save()) {
                return true;
              } else {
                return false;
              }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.