Package org.beangle.emsapp.security.helper

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


  /**
   * 查看限制资源界面
   */
  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<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

TOP

Related Classes of org.beangle.emsapp.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.