Package org.beangle.webapp.security.helper

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


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

    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

Related Classes of org.beangle.webapp.security.helper.RestrictionHelper

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.