Package org.glassfish.security.services.api.common

Examples of org.glassfish.security.services.api.common.Attribute


  public Attribute getAttribute(String name) {
    return attributes.get(name);
  }

  public String getAttributeValue(String name) {
    Attribute a = attributes.get(name);
    if(a != null) {
      return a.getValue();
    }
    return null;
  }
View Full Code Here


    }
    return null;
  }

  public Set<String> getAttributeValues(String name) {
    Attribute a = attributes.get(name);
    if(a != null) {
      return a.getValues();
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }

  public String[] getAttributeValuesAsArray(String name) {
    Attribute a = attributes.get(name);
    if(a != null) {
      return a.getValuesAsArray();
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }

  public void addAttribute(String name, String value, boolean replace) {
    Attribute a = attributes.get(name);
    if(a != null && !replace) {
      a.addValue(value);
    }
    else {
      attributes.put(name, new AttributeImpl(name, value));
    }
  }
View Full Code Here

      attributes.put(name, new AttributeImpl(name, value));
    }
  }

  public void addAttribute(String name, Set<String> values, boolean replace) {
    Attribute a = attributes.get(name);
    if(a != null && !replace) {
      a.addValues(values);
    }
    else {
      attributes.put(name, new AttributeImpl(name, values));
    }
  }
View Full Code Here

      attributes.put(name, new AttributeImpl(name, values));
    }
  }

  public void addAttribute(String name, String[] values, boolean replace) {
    Attribute a = attributes.get(name);
    if(a != null && !replace) {
      a.addValues(values);
    }
    else {
      attributes.put(name, new AttributeImpl(name, values));
    }
  }
View Full Code Here

  public void removeAttribute(String name) {
    attributes.remove(name);
  }

  public void removeAttributeValue(String name, String value) {
    Attribute a = attributes.get(name);
    if (a != null) {
      a.removeValue(value);
    }
  }
View Full Code Here

      a.removeValue(value);
    }
  }

  public void removeAttributeValues(String name, Set<String> values) {
    Attribute a = attributes.get(name);
    if (a != null) {
      a.removeValues(values);
    }
  }
View Full Code Here

      a.removeValues(values);
    }
  }

  public void removeAttributeValues(String name, String[] values) {
    Attribute a = attributes.get(name);
    if (a != null) {
      a.removeValues(values);
    }
  }
View Full Code Here

      a.removeValues(values);
    }
  }

  public void removeAllAttributeValues(String name) {
    Attribute a = attributes.get(name);
    if (a != null) {
      a.clear();
    }
  }
View Full Code Here

TOP

Related Classes of org.glassfish.security.services.api.common.Attribute

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.