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, virtualAttributeVariablesForSource
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, String nameAttribute, String descriptionAttribute)
public void setAttributesGotten(boolean v)
v
- have attributes been acquiredpublic String getName()
SubjectImpl
getName
in interface Subject
getName
in class SubjectImpl
public String getDescription()
SubjectImpl
getDescription
in interface Subject
getDescription
in class SubjectImpl
public Map<String,Set<String>> getAttributes()
Subject
getAttributes
in interface Subject
getAttributes
in class SubjectImpl
Subject.getAttributes()
public String getAttributeValue(String name1)
Subject
getAttributeValue
in interface Subject
getAttributeValue
in class SubjectImpl
Subject.getAttributeValue(java.lang.String, boolean)
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
Subject.getAttributeValueOrCommaSeparated(java.lang.String)
public Set<String> getAttributeValues(String name1)
Subject
getAttributeValues
in interface Subject
getAttributeValues
in class SubjectImpl
Subject.getAttributeValues(java.lang.String)
public String getAttributeValueSingleValued(String attributeName)
Subject
getAttributeValueSingleValued
in interface Subject
getAttributeValueSingleValued
in class SubjectImpl
Subject.getAttributeValueSingleValued(java.lang.String)
Copyright © 2016 Internet2. All rights reserved.