Examples of RestrictionHelper


Examples of org.beangle.ems.security.helper.RestrictionHelper

  /**
   * 查看限制资源界面
   */
  public String info() {
    RestrictionHelper helper = new RestrictionHelper(entityDao);
    helper.setRestrictionService(restrictionService);
    helper.populateInfo(helper.getHolder());
    return forward();
  }
View Full Code Here

Examples of org.beangle.emsapp.security.helper.RestrictionHelper

  /**
   * 删除数据限制权限
   */
  public String remove() {
    Restriction restriction = getRestriction();
    RestrictionHolder<Restriction> holer = new RestrictionHelper(entityDao).getHolder();
    holer.getRestrictions().remove(restriction);
    entityDao.remove(restriction);
    entityDao.saveOrUpdate(holer);
    return redirect("info", "info.remove.success");
  }
View Full Code Here

Examples of org.beangle.emsapp.security.helper.RestrictionHelper

  /**
   * 查看限制资源界面
   */
  public String info() {
    RestrictionHelper helper = new RestrictionHelper(entityDao);
    helper.setRestrictionService(restrictionService);
    helper.populateInfo(helper.getHolder());
    return forward();
  }
View Full Code Here

Examples of org.beangle.emsapp.security.helper.RestrictionHelper

    return forward();
  }

  public String save() {
    Restriction restriction = getRestriction();
    RestrictionHolder<Restriction> holder = new RestrictionHelper(entityDao).getHolder();
    List<Restriction> myRestrictions = getMyRestrictions(restriction.getPattern(), holder);
    Set<RestrictField> ignoreFields = getIgnoreFields(myRestrictions);
    boolean isAdmin = isAdmin();
    for (final RestrictField field : restriction.getPattern().getEntity().getFields()) {
      String[] values = (String[]) getAll(field.getName());
View Full Code Here

Examples of org.beangle.webapp.security.helper.RestrictionHelper

  /**
   * 删除数据限制权限
   */
  public String remove() {
    Restriction restriction = getRestriction();
    RestrictionHolder holer = new RestrictionHelper(entityDao).getHolder();
    holer.getRestrictions().remove(restriction);
    entityDao.saveOrUpdate(holer);
    return redirect("info", "info.delete.success");
  }
View Full Code Here

Examples of org.beangle.webapp.security.helper.RestrictionHelper

  /**
   * 查看限制资源界面
   */
  public String info() {
    RestrictionHelper helper = new RestrictionHelper(entityDao);
    helper.setRestrictionService(restrictionService);
    helper.populateInfo(helper.getHolder());
    return forward();
  }
View Full Code Here

Examples of org.beangle.webapp.security.helper.RestrictionHelper

    return forward();
  }

  public String save() {
    Restriction restriction = getRestriction();
    RestrictionHolder holder = new RestrictionHelper(entityDao).getHolder();
    List<Restriction> myRestrictions = getMyRestrictions(restriction.getPattern(), holder);
    Set<RestrictField> ignoreParams = getIgnoreParams(myRestrictions);
    boolean isAdmin = isAdmin(getUser());
    for (RestrictField param : restriction.getPattern().getObject().getFields()) {
      String value = get(param.getName());
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.