public class JNDISubject extends SubjectImpl
| Constructor and Description |
|---|
JNDISubject(String id1,
String name1,
String description1,
String typeName1,
String sourceId1) |
JNDISubject(String id1,
String name1,
String description1,
String typeName1,
String sourceId1,
Map<String,Set<String>> attributes1) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
getAttributes()
Gets a map attribute names and values.
|
String |
getAttributeValue(String name1)
Returns the value of a single-valued attribute.
|
String |
getAttributeValueOrCommaSeparated(String attributeName)
Returns the attribute value if single-valued, or
if multi-valued, returns the values comma separated (with a space too).
|
Set<String> |
getAttributeValues(String name1)
Returns the values of a multi-valued attribute, or a set of size one for a single valued attribute.
|
String |
getAttributeValueSingleValued(String attributeName)
Returns the attribute value if single-valued, or
if multi-valued, throws an exception.
|
attributeValueOrCommaSeparated, attributeValueOrCommaSeparated, equals, equalsStatic, getAttributes, getAttributeValue, getAttributeValueOrCommaSeparated, getAttributeValues, getAttributeValueSingleValued, getDescription, getDescriptionOverride, getId, getName, getNameOverride, getSource, getSourceId, getType, getTypeName, hashCode, hashcodeStatic, initVirtualAttributes, setAttributes, setDescription, setId, setName, setSourceId, setTypeName, toAttributeMap, toString, toStringStatic, virtualAttributesForSource, virtualAttributeVariablesForSourcepublic JNDISubject(String id1, String name1, String description1, String typeName1, String sourceId1)
id1 - name1 - description1 - typeName1 - sourceId1 - public Map<String,Set<String>> getAttributes()
SubjectgetAttributes in interface SubjectgetAttributes in class SubjectImplSubjectImpl.getAttributes()public String getAttributeValue(String name1)
SubjectgetAttributeValue in interface SubjectgetAttributeValue in class SubjectImplSubjectImpl.getAttributeValue(java.lang.String)public String getAttributeValueOrCommaSeparated(String attributeName)
SubjectReturns the attribute value if single-valued, or if multi-valued, returns the values comma separated (with a space too). So if the values are: a b c; this would return the string: "a, b, c" Implementors can use the static helper in SubjectImpl. This does not return values for internal attributes. Note, the keys are case-insensitive
getAttributeValueOrCommaSeparated in interface SubjectgetAttributeValueOrCommaSeparated in class SubjectImplSubjectImpl.getAttributeValueOrCommaSeparated(java.lang.String)public Set<String> getAttributeValues(String name1)
SubjectgetAttributeValues in interface SubjectgetAttributeValues in class SubjectImplSubjectImpl.getAttributeValues(java.lang.String)public String getAttributeValueSingleValued(String attributeName)
SubjectgetAttributeValueSingleValued in interface SubjectgetAttributeValueSingleValued in class SubjectImplSubjectImpl.getAttributeValueSingleValued(java.lang.String)Copyright © 2016 Internet2. All rights reserved.