Package org.beangle.ems.config.model

Examples of org.beangle.ems.config.model.PropertyConfigItemBean


    Set<String> names = CollectUtils.newHashSet();
    for (PropertyConfigItemBean config : configs) {
      names.add(config.getName());
    }
    String msg = "info.save.success";
    PropertyConfigItemBean newConfig = populate(PropertyConfigItemBean.class, "configNew");
    if (StringUtils.isNotBlank(newConfig.getName()) && StringUtils.isNotBlank(newConfig.getValue())
        && !names.contains(newConfig.getName())) {
      entityDao.saveOrUpdate(newConfig);
    }
    configFactory.reload();
    return redirect("dynaInfo", msg);
  }
View Full Code Here


    configFactory.reload();
    return redirect("dynaInfo", "info.save.success");
  }

  public String remove() {
    PropertyConfigItemBean config = entityDao.get(PropertyConfigItemBean.class, getLong("config.id"));
    if (null != config) entityDao.remove(config);
    return redirect("dynaInfo", "info.save.success");
  }
View Full Code Here

    Set<String> names = CollectUtils.newHashSet();
    for (PropertyConfigItemBean config : configs) {
      names.add(config.getName());
    }
    String msg = "info.save.success";
    PropertyConfigItemBean newConfig = populate(PropertyConfigItemBean.class, "configNew");
    if (StringUtils.isNotBlank(newConfig.getName()) && StringUtils.isNotBlank(newConfig.getValue())
        && !names.contains(newConfig.getName())) {
      entityDao.saveOrUpdate(newConfig);
    }
    configFactory.reload();
    return redirect("dynaInfo", msg);
  }
View Full Code Here

    configFactory.reload();
    return redirect("dynaInfo", "info.save.success");
  }

  public String remove() {
    PropertyConfigItemBean config = entityDao.get(PropertyConfigItemBean.class, getLong("config.id"));
    if (null != config) entityDao.remove(config);
    return redirect("dynaInfo", "info.save.success");
  }
View Full Code Here

TOP

Related Classes of org.beangle.ems.config.model.PropertyConfigItemBean

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.