Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGHierarchicalDatabase$ProtectTask


            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

Related Classes of de.innovationgate.webgate.api.WGHierarchicalDatabase$ProtectTask

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.