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, getTranslationMap, getType, getTypeName, hashCode, hashcodeStatic, initVirtualAttributes, setAttributes, setDescription, setId, setName, setSourceId, setTranslationMap, setTypeName, toAttributeMap, toString, toStringStatic, virtualAttributesForSource, virtualAttributeVariablesForSource
public JNDISubject(String id1, String name1, String description1, String typeName1, String sourceId1)
id1
- name1
- description1
- typeName1
- sourceId1
- public Map<String,Set<String>> getAttributes()
Subject
getAttributes
in interface Subject
getAttributes
in class SubjectImpl
SubjectImpl.getAttributes()
public String getAttributeValue(String name1)
Subject
getAttributeValue
in interface Subject
getAttributeValue
in class SubjectImpl
SubjectImpl.getAttributeValue(java.lang.String)
public String getAttributeValueOrCommaSeparated(String attributeName)
Subject
Returns 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 Subject
getAttributeValueOrCommaSeparated
in class SubjectImpl
SubjectImpl.getAttributeValueOrCommaSeparated(java.lang.String)
public Set<String> getAttributeValues(String name1)
Subject
getAttributeValues
in interface Subject
getAttributeValues
in class SubjectImpl
SubjectImpl.getAttributeValues(java.lang.String)
public String getAttributeValueSingleValued(String attributeName)
Subject
getAttributeValueSingleValued
in interface Subject
getAttributeValueSingleValued
in class SubjectImpl
SubjectImpl.getAttributeValueSingleValued(java.lang.String)
Copyright © 2016 Internet2. All rights reserved.