Package org.beangle.ems.security.profile

Examples of org.beangle.ems.security.profile.UserProperty


  public Property getProperty(PropertyMeta meta) {
    return getProperty((UserPropertyMeta) meta);
  }

  public void setProperty(UserPropertyMeta meta, String text) {
    UserProperty property = getProperty(meta);
    if (null == property) {
      property = new UserPropertyBean(this, meta, text);
      properties.add(property);
    } else {
      property.setValue(text);
    }
  }
View Full Code Here


    return getPropertyValues(getUserProperty(propertyName));
  }

  public Object getPropertyValue(String propertyName, UserProfile profile) {
    UserPropertyMeta prop = getUserProperty(propertyName);
    UserProperty property = profile.getProperty(prop);
    if (null == property) return null;
    return unmarshal(property.getValue(), prop);
  }
View Full Code Here

      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) {
          UserProperty up = profile.getProperty(paramName);
          PropertyMeta prop = up.getMeta();
          String value = null == up ? null : up.getValue();
          if (StringUtils.isNotEmpty(value)) {
            if (value.equals(Restriction.ALL)) {
              content = "";
            } else {
              content = StringUtils.replace(content, ":" + prop.getName(), ":" + prop.getName()
View Full Code Here

TOP

Related Classes of org.beangle.ems.security.profile.UserProperty

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.