Examples of WGHierarchicalDatabase


Examples of de.innovationgate.webgate.api.WGHierarchicalDatabase

            return false;
        }
       
        // Get HDB instance
        TMLContext targetContext = gettargetcontext();
        WGHierarchicalDatabase hdb = WGHierarchicalDatabase.getInstance(targetContext.db().getDbReference());
        if (hdb == null) {
            throw new TMLScriptException("Cannot use tmlform.storeInHDB() in database " + targetContext.db().getDbReference() + " where HDB is not enabled");
        }
       
        // Create parameter object
        HDBModelParams params = new HDBModelParams(HDBModel.TYPE_CONTENT);
        params.setForm(this);
        params.setCustomParam(parameter);

        // Perform update
      String source = getforminfo().getSource();
      if (source.equals("content")) {
          WGContent content = gettargetcontext().content();
          params.setContentClass(content.getContentClass());
          try {
              hdb.updateContent(content, params);
              return true;
          }
          catch (WGHierarchicalDatabaseEventCanceledException e) {
              addmessage(e.getMessage());
              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.