public class LdapSubject extends SubjectImpl
| Modifier | Constructor and Description |
|---|---|
protected |
LdapSubject(String id,
String name,
String description,
String type,
String sourceId) |
protected |
LdapSubject(String id,
String name,
String description,
String type,
String sourceId,
Map<String,Set<String>> attributes) |
protected |
LdapSubject(String id,
String name,
String description,
String type,
String sourceId,
Map<String,Set<String>> attributes,
String nameAttribute,
String descriptionAttribute) |
protected |
LdapSubject(String id,
String name,
String description,
String type,
String sourceId,
String nameAttribute,
String descriptionAttribute) |
| 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.
|
String |
getDescription()
Gets this Subject's description.
|
String |
getName()
Gets this Subject's name.
|
void |
setAttributesGotten(boolean v) |
attributeValueOrCommaSeparated, attributeValueOrCommaSeparated, equals, equalsStatic, getAttributes, getAttributeValue, getAttributeValueOrCommaSeparated, getAttributeValues, getAttributeValueSingleValued, getDescriptionOverride, getId, getNameOverride, getSource, getSourceId, getType, getTypeName, hashCode, hashcodeStatic, initVirtualAttributes, setAttributes, setDescription, setId, setName, setSourceId, setTypeName, toAttributeMap, toString, toStringStatic, virtualAttributesForSource, virtualAttributeVariablesForSourceprotected LdapSubject(String id, String name, String description, String type, String sourceId)
protected LdapSubject(String id, String name, String description, String type, String sourceId, Map<String,Set<String>> attributes)
protected LdapSubject(String id, String name, String description, String type, String sourceId, String nameAttribute, String descriptionAttribute)
public void setAttributesGotten(boolean v)
v - have attributes been acquiredpublic String getName()
SubjectImplgetName in interface SubjectgetName in class SubjectImplpublic String getDescription()
SubjectImplgetDescription in interface SubjectgetDescription in class SubjectImplpublic Map<String,Set<String>> getAttributes()
SubjectgetAttributes in interface SubjectgetAttributes in class SubjectImplSubject.getAttributes()public String getAttributeValue(String name1)
SubjectgetAttributeValue in interface SubjectgetAttributeValue in class SubjectImplSubject.getAttributeValue(java.lang.String, boolean)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 SubjectImplSubject.getAttributeValueOrCommaSeparated(java.lang.String)public Set<String> getAttributeValues(String name1)
SubjectgetAttributeValues in interface SubjectgetAttributeValues in class SubjectImplSubject.getAttributeValues(java.lang.String)public String getAttributeValueSingleValued(String attributeName)
SubjectgetAttributeValueSingleValued in interface SubjectgetAttributeValueSingleValued in class SubjectImplSubject.getAttributeValueSingleValued(java.lang.String)Copyright © 2016 Internet2. All rights reserved.