Package de.iritgo.aktera.model

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


        continue;
      }

      if (LicenseTools.getLicenseInfo().appAllowed(appInfo.getId()))
      {
        Output outApp = res.createOutput("app_" + appInfo.getId());

        outAppList.add(outApp);
        outApp.setAttribute("name", appInfo.getNameLong());
        outApp.setAttribute("version", appInfo.getVersion());
        outApp.setAttribute("description", appInfo.getDescription());
View Full Code Here


    int showYear = req.getParameterAsInt("showYear", - 1);
    String dayModel = req.getParameterAsString("dayModel", null);

    ModelResponse res = req.createResponse();

    Output outCalendar = res.createOutput("calendar");

    res.add(outCalendar);

    Calendar cal = new GregorianCalendar();
View Full Code Here

    cmdNextYear.setParameter("showYear", new Integer(cal.get(Calendar.YEAR)));
    outCalendar.setAttribute("cmdNextYear", cmdNextYear);

    cal.add(Calendar.YEAR, - 1);

    Output outWeeks = res.createOutput("weeks");

    outCalendar.setAttribute("weeks", outWeeks);

    cal.set(Calendar.WEEK_OF_MONTH, 1);
    cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
View Full Code Here

    cal.set(Calendar.WEEK_OF_MONTH, 1);
    cal.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);

    for (int i = 0; i < 6; ++i)
    {
      Output outWeek = res.createOutput("week");

      outWeeks.add(outWeek);
      outWeek.setAttribute("num", new Integer(cal.get(Calendar.WEEK_OF_YEAR)));

      for (int j = 0; j < 7; ++j)
View Full Code Here

      outWeeks.add(outWeek);
      outWeek.setAttribute("num", new Integer(cal.get(Calendar.WEEK_OF_YEAR)));

      for (int j = 0; j < 7; ++j)
      {
        Output outDay = res.createOutput("day");

        outWeek.add(outDay);

        outDay.setAttribute("num", new Integer(cal.get(Calendar.DAY_OF_MONTH)));
View Full Code Here

          res.addOutput("sessionDisplayName", (String) userEnv.getAttribute("sessionDisplayName"));
          res.addOutput("sessionFirstName", (String) userEnv.getAttribute("sessionFirstName"));
          res.addOutput("sessionLastName", (String) userEnv.getAttribute("sessionLastName"));
          res.addOutput("sessionLoginName", (String) userEnv.getLoginName());

          Output lang = res.createOutput("sessionLanguage");

          lang.setContent(userEnv.getAttribute("sessionLanguage"));
          res.add(lang);
        }
        else
View Full Code Here

          lang.setContent(userEnv.getAttribute("sessionLanguage"));
          res.add(lang);
        }
        else
        {
          Output lang = res.createOutput("sessionLanguage");

          lang.setContent(Locale.GERMAN);
          res.add(lang);
        }
      }
View Full Code Here

   */
  public ModelResponse execute(ModelRequest req) throws ModelException
  {
    ModelResponse res = req.createResponse();

    Output outModuleList = res.createOutput("modules");

    res.add(outModuleList);

    try
    {
View Full Code Here

      {
        Configuration module = modules[i];

        if (LicenseTools.getLicenseInfo().moduleAllowed(module.getAttribute("id")))
        {
          Output outModule = res.createOutput("module_" + module.getAttribute("id"));

          outModuleList.add(outModule);
          outModule.setAttribute("name", module.getChild("name").getValue());
          outModule.setAttribute("version", module.getChild("version").getValue());
          outModule.setAttribute("type", module.getAttribute("type", "application"));
View Full Code Here

      if (currentItem == null && UserTools.getCurrentUserId(req) != null)
      {
        currentItem = (String) systemConfigManager.get("system", "startMenuItem");
      }

      Output outFunctions = res.createOutput("functions");

      if (! byGroups)
      {
        outFunctions.setAttribute("style", style == null ? "none" : style);
        res.add(outFunctions);
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.