Package de.iritgo.aktera.model

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


    ModelResponse res = req.createResponse();

    if (! UpdateHelper.databaseExists(req))
    {
      return res.createCommand("aktera.database.create-prompt").execute(req, res);
    }

    try
    {
      if (UpdateHelper.needUpdate(req))
View Full Code Here


    try
    {
      if (UpdateHelper.needUpdate(req))
      {
        return res.createCommand("aktera.database.update-prompt").execute(req, res);
      }
    }
    catch (ConfigurationException x)
    {
      throw new ModelException("ConfigurationException during needUpdate() check", x);
View Full Code Here

    try
    {
      SystemCheckService systemCheckService = (SystemCheckService) SpringTools.getBean(SystemCheckService.ID);
      if (systemCheckService != null && ! systemCheckService.isSystemReady())
      {
        return res.createCommand(systemCheckService.getSystemCheckModel()).execute(req, res);
      }
    }
    catch (Exception ignore)
    {
      // No system check service configured.
View Full Code Here

    String startModel = (String) systemConfigManager.get("system", "startModel");

    if (startModel != null && UserTools.getCurrentUserId(req) == null)
    {
      return res.createCommand("aktera.session.prompt-login").execute(req, res);
    }

    if (UserTools.currentUserIsInGroup(req, "admin"))
    {
      return res.createCommand((String) systemConfigManager.get("system", "startModelAdmin")).execute(req, res);
View Full Code Here

      return res.createCommand("aktera.session.prompt-login").execute(req, res);
    }

    if (UserTools.currentUserIsInGroup(req, "admin"))
    {
      return res.createCommand((String) systemConfigManager.get("system", "startModelAdmin")).execute(req, res);
    }
    else if (UserTools.currentUserIsInGroup(req, "manager"))
    {
      return res.createCommand((String) systemConfigManager.get("system", "startModelManager")).execute(req, res);
    }
View Full Code Here

    {
      return res.createCommand((String) systemConfigManager.get("system", "startModelAdmin")).execute(req, res);
    }
    else if (UserTools.currentUserIsInGroup(req, "manager"))
    {
      return res.createCommand((String) systemConfigManager.get("system", "startModelManager")).execute(req, res);
    }

    return res.createCommand(startModel).execute(req, res);
  }
}
View Full Code Here

    else if (UserTools.currentUserIsInGroup(req, "manager"))
    {
      return res.createCommand((String) systemConfigManager.get("system", "startModelManager")).execute(req, res);
    }

    return res.createCommand(startModel).execute(req, res);
  }
}
View Full Code Here

        }
      }

      if (lastLine != null && lastLine.indexOf("Result: OK") != - 1)
      {
        Command cmd = res.createCommand(getConfiguration().getChild("cmd-ok").getValue());

        cmd.setName("cmdOk");
        res.add(cmd);
      }
      else if (lastLine != null && lastLine.indexOf("Result: ERROR") != - 1)
View Full Code Here

        cmd.setName("cmdOk");
        res.add(cmd);
      }
      else if (lastLine != null && lastLine.indexOf("Result: ERROR") != - 1)
      {
        Command cmd = res.createCommand(getConfiguration().getChild("cmd-error").getValue());

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

        res.add(res.createOutput("error", "Y"));
View Full Code Here

        res.add(res.createOutput("error", "Y"));
      }
      else
      {
        Command cmd = res.createCommand(getConfiguration().getChild("cmd-report").getValue());

        cmd.setName("cmdReport");
        res.add(cmd);
      }
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.