Examples of XPagesSnippet


Examples of com.ibm.sbt.playground.assets.xpages.XPagesSnippet

    return new XPagesSnippetNodeFactory();
  }

  @Override
  protected void saveAsset(ImportSource source, VFSFile root, AssetNode node, Asset asset) throws Exception {
    XPagesSnippet snippet = (XPagesSnippet)asset;
    Document doc = getDatabase().createDocument();
    try {
      setItemValue(doc,"Form", FORM);
      setItemValue(doc,"Author", doc.getParentDatabase().getParent().getEffectiveUserName()); // Should we make this private (reader field)?
      setItemValue(doc,"Id", node.getUnid());
      setItemValue(doc,"Category", node.getCategory());
      setItemValue(doc,"Name", node.getName());
      setItemValue(doc,"Description", snippet.getProperty("description"));
      setItemValue(doc,"FilterRuntimes", snippet.getProperty("runtimes"));
      setItemValues(doc,"Tags", snippet.getProperty("tags"));
      setItemValue(doc,"ImportSource", source.getName());
      setItemValueRichText(doc,"XPages", snippet.getXsp());
      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
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.