Package org.beangle.struts2.convention.route

Examples of org.beangle.struts2.convention.route.Action


   * @param message
   * @param params
   * @return
   */
  protected String redirect(String method, String message, String params) {
    return redirect(new Action((String) null, method, params), message);
  }
View Full Code Here


   * @param method
   * @param message
   * @return
   */
  protected String redirect(String method, String message) {
    return redirect(new Action(method), message);
  }
View Full Code Here

    if (!codeGenerator.isValidCode(code)) {
      code = codeGenerator.gen(new CodeFixture(baseCode));
      if (codeGenerator.isValidCode(code)) {
        baseCode.setCode(code);
      } else {
        return forward(new Action("edit"), "system.codeGen.failure");
      }
    }

    if (entityDao.duplicate(codeClass, codeId, "code", baseCode.getCode())) { return forward(new Action(
        "", "edit"), "error.code.existed"); }
    baseCodeService.saveOrUpdate(baseCode);
    return redirect("search", "info.save.success");
  }
View Full Code Here

    entityDao.remove(removedAuthorities);
    entityDao.saveOrUpdate(mao);
    authorityManager.refreshGroupAuthorities(new GrantedAuthorityBean(mao.getName()));

    Action redirect = Action.to(this).method("edit");
    redirect.param("group.id", mao.getId()).param("menuProfileId", menuProfile.getId());
    String displayFreezen = get("displayFreezen");
    if (null != displayFreezen) {
      redirect.param("displayFreezen", displayFreezen);
    }
    return redirect(redirect, "info.save.success");
  }
View Full Code Here

    if (!codeGenerator.isValidCode(code)) {
      code = codeGenerator.gen(new CodeFixture(baseCode));
      if (codeGenerator.isValidCode(code)) {
        baseCode.setCode(code);
      } else {
        return forward(new Action("edit"), "system.codeGen.failure");
      }
    }

    if (entityDao.duplicate(codeClass, codeId, "code", baseCode.getCode())) { return forward(new Action(
        "", "edit"), "error.code.existed"); }
    baseCodeService.saveOrUpdate(baseCode);
    return redirect("search", "info.save.success");
  }
View Full Code Here

  /**
   * forward to index method
   */
  public String execute() throws Exception {
    return forward(new Action((Class<?>) null, "index"));
  }
View Full Code Here

   * @param message
   * @param params
   * @return
   */
  protected String redirect(String method, String message, String params) {
    return redirect(new Action((String) null, method, params), message);
  }
View Full Code Here

  protected String redirect(String method, String message, String params) {
    return redirect(new Action((String) null, method, params), message);
  }

  protected String redirect(String method) {
    return redirect(new Action(method), null);
  }
View Full Code Here

   * @param method
   * @param message
   * @return
   */
  protected String redirect(String method, String message) {
    return redirect(new Action(method), message);
  }
View Full Code Here

      case 0:
        logger.warn("Cannot find bean definition for {}.", actionClass);
        break;
      case 1:
        Profile profile = actionBuilder.getProfileService().getProfile(actionClass.getName());
        Action action = actionBuilder.build(actionClass.getName());
        PackageConfig.Builder packageConfig = getPackageConfig(profile, packageConfigs, action,
            actionClass);
        if (createActionConfig(packageConfig, action, actionClass, beanNames[0])) {
          createCount++;
        }
View Full Code Here

TOP

Related Classes of org.beangle.struts2.convention.route.Action

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.