Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.Command.execute()


        if (req.getParameter("ajax") != null)
        {
          cmd.setParameter("ajax", "Y");
        }

        return cmd.execute(req, res);
      }

      handler.preStorePersistents(req, formular, formular.getPersistents(), new Boolean(modified));

      if (req.getParameter(NO_FORM_STORE) == null && validate
View Full Code Here


          cmd.setParameter(keyName, id);
          cmd.setParameter("error", result.getFirstErrorField(formular));

          if (! NumberTools.toBool(req.getParameter(SYSTEM_EDIT), false))
          {
            return cmd.execute(req, res);
          }
          else
          {
            return res;
          }
View Full Code Here

        CommandInfo cmdInfo = (CommandInfo) cmdOk.clone();
        Command cmd = cmdInfo.createCommand(req, res, context);

        ModelRequest newReq = (ModelRequest) req.getService(ModelRequest.ROLE);
        ModelResponse cmdRes = cmd.execute(newReq, res);

        if (res.get("IRITGO_formMessages") != null)
        {
          cmdRes.add(res.get("IRITGO_formMessages"));
        }
View Full Code Here

        cmd.setParameter((String) param.getKey(), param.getValue());
      }
    }

    return cmd.execute(req, res);
  }

  /**
   * Perform a model request.
   *
 
View Full Code Here

   *            The name of the model to call.
   */
  public static void callModel(ModelRequest req, ModelResponse res, String model) throws ModelException
  {
    Command cmd = res.createCommand(model);
    ModelResponse newRes = cmd.execute(req, res, true, false);

    KeelTools.copyResponseElements(res, newRes);
  }

  /**
 
View Full Code Here

    for (Pair<String, Object> param : new PairwiseIterator<Object, String, Object>(params))
    {
      cmd.setParameter(param.get1(), param.get2());
    }

    return cmd.execute(req, res);
  }

  /**
   * Perform a model request.
   *
 
View Full Code Here

    c.setParameter(Sequence.SEQUENCE_NUMBER, "" + seqNumber);

    //c.setParameter(SequenceContext.CONTEXT_KEY, seqContext);
    //Add by Phil Brow to pass the seq Context as a param to each model
    //MN: Can't serialize a SequenceContext in the response
    ModelResponse commandRes = c.execute(req, existingResponse);

    //         log.debug("Executed command.");
    for (Iterator ii = postAttribs.keySet().iterator(); ii.hasNext();)
    {
      String oneKey = (String) ii.next();
View Full Code Here

    {
      Command c = res.createCommand(getConfiguration().getChild("model").getValue());

      res.addErrors(req.getErrors());

      return c.execute(req, res, true, true);
    }
    catch (ConfigurationException ce)
    {
      throw new ModelException(ce);
    }
View Full Code Here

        {
          cmd.setParameter(key.substring(3), req.getParameter(key));
        }
      }

      return cmd.execute(req, res);
    }
  }
}
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.