Examples of RestrictField


Examples of org.beangle.security.blueprint.restrict.RestrictField

    }
    return redirect("index", "info.remove.success");
  }

  public String editField() {
    RestrictField field = getEntity(RestrictField.class, "field");
    List<RestrictObject> objects = entityDao.getAll(RestrictObject.class);
    objects.removeAll(field.getObjects());
    put("objects", objects);
    put("field", field);
    return forward("fieldForm");
  }
View Full Code Here

Examples of org.beangle.security.blueprint.restrict.RestrictField

    List<RestrictObject> paramGroups = CollectUtils.newArrayList();
    if (StringUtils.isNotBlank(objectIds)) {
      paramGroups = entityDao.get(RestrictObject.class,
          SeqStrUtils.transformToLong(objectIds));
    }
    RestrictField field = populateEntity(RestrictField.class, "field");
    field.getObjects().clear();
    field.getObjects().addAll(paramGroups);
    saveOrUpdate(field);
    return redirect("fields", "info.save.success");
  }
View Full Code Here

Examples of org.beangle.security.blueprint.restrict.RestrictField

  protected Object clone() throws CloneNotSupportedException {
    return super.clone();
  }

  public String getItem(String paramName) {
    RestrictField param = getPattern().getObject().getField(paramName);
    if (null == param) {
      return null;
    } else {
      return getItem(param);
    }
View Full Code Here

Examples of org.beangle.security.blueprint.restrict.RestrictField

      for (int i = 0; i < contents.length; i++) {
        String content = contents[i];
        Condition c = new Condition(content);
        List<String> params = c.getParamNames();
        for (final String paramName : params) {
          RestrictField param = pattern.getObject().getField(paramName);
          String value = restriction.getItem(param);
          if (StringUtils.isNotEmpty(value)) {
            if (value.equals(Restriction.ALL)) {
              content = "";
            } else {
              content = StringUtils.replace(content, ":" + param.getName(), ":"
                  + param.getName() + index);
              paramValues.add(getValue(restriction,param));
            }
          } else {
            throw new RuntimeException(paramName + " had not been initialized");
          }
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.