Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.ModelResponse.createCommand()


    String loginName = (String) req.getParameter("loginName");
    if (loginName.equals(""))
    {
      res.addError("GLOBAL_loginError", "$youNeedToProvideALoginName");
      return res.createCommand(Constants.PROMPT_LOGIN).execute(req, res);
    }

    PermissionManager permissionManager = (PermissionManager) SpringTools.getBean(PermissionManager.ID);
    if (! permissionManager.hasPermission(loginName, "de.iritgo.aktera.web.login"))
    {
View Full Code Here


    PermissionManager permissionManager = (PermissionManager) SpringTools.getBean(PermissionManager.ID);
    if (! permissionManager.hasPermission(loginName, "de.iritgo.aktera.web.login"))
    {
      res.addError("GLOBAL_loginError", "$youAreNotAllowedToLogin");
      return res.createCommand(Constants.PROMPT_LOGIN).execute(req, res);
    }

    try
    {
      String providedPassword = (String) req.getParameter("password");
View Full Code Here

    {
      String providedPassword = (String) req.getParameter("password");
      if (providedPassword.equals(""))
      {
        res.addError("GLOBAL_loginError", "$youNeedToProvideAPassword");
        return res.createCommand(Constants.PROMPT_LOGIN).execute(req, res);
      }
      boolean remember = false;
      if (req.getParameters().containsKey("remember"))
      {
        remember = true;
View Full Code Here

        res.addError("GLOBAL_loginError", "$loginError");
      }

      log.warn("Login error for user '" + loginName + "': " + e.getMessage());

      return res.createCommand(Constants.PROMPT_LOGIN).execute(req, res);
    }
    catch (Exception dbe)
    {
      res.addError("GLOBAL_loginError", dbe);
      log.error("loginError", dbe);
View Full Code Here

    catch (Exception dbe)
    {
      res.addError("GLOBAL_loginError", dbe);
      log.error("loginError", dbe);

      return res.createCommand(Constants.PROMPT_LOGIN).execute(req, res);
    }

    try
    {
      log.debug(loginName + " logged in successfully");
View Full Code Here

  public ModelResponse execute(ModelRequest req) throws ModelException
  {
    SystemFirewall.disable();

    ModelResponse res = req.createResponse();
    Command cmd = res.createCommand("aktera.database.create");
    cmd.setName("create");
    cmd.setLabel("$createDatabase");
    res.add(cmd);

    return res;
View Full Code Here

    log.info("*** Unblock firewall for database update...");
    SystemFirewall.disable();

    ModelResponse res = req.createResponse();

    Command cmd = res.createCommand("aktera.database.update");

    cmd.setName("update");
    cmd.setLabel("$updateDatabase");
    res.add(cmd);

View Full Code Here

    catch (ServiceException x)
    {
      throw new ModelException(x);
    }

    Command cmd = res.createCommand("aktera.tools.goto-start-model");

    cmd.setName("cmd");
    res.add(cmd);

    return res;
View Full Code Here

      {
        System.out.println("[StoreLicense] " + x);
      }
    }

    Command cmd = res.createCommand("aktera.tools.goto-start-model");

    cmd.setName("cmdLogin");
    res.add(cmd);

    return res;
View Full Code Here

    Input fileUpload1 = res.createInput("fileUpload1");

    res.add(fileUpload1);

    Command cmd = res.createCommand("aktera.session.store-license");

    cmd.setName("cmdStore");
    res.add(cmd);

    return 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.