|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.subject.provider.SubjectImpl
edu.internet2.middleware.subject.provider.JNDISubject
public class JNDISubject
JNDI Subject implementation. This will lazy load attributes only if needed
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class edu.internet2.middleware.subject.provider.SubjectImpl |
---|
attributeValueOrCommaSeparated, equals, equalsStatic, getDescription, getId, getName, getSource, getSourceId, getType, getTypeName, hashCode, hashcodeStatic, initVirtualAttributes, setAttributes, setDescription, setId, setName, setSourceId, setTypeName, toAttributeMap, toString, toStringStatic, virtualAttributesForSource, virtualAttributeVariablesForSource |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JNDISubject(String id1, String name1, String description1, String typeName1, String sourceId1)
id1
- name1
- description1
- typeName1
- sourceId1
- public JNDISubject(String id1, String name1, String description1, String typeName1, String sourceId1, Map<String,Set<String>> attributes1)
id1
- name1
- description1
- typeName1
- sourceId1
- attributes1
- Method Detail |
---|
public Map<String,Set<String>> getAttributes()
SubjectImpl
getAttributes
in interface Subject
getAttributes
in class SubjectImpl
SubjectImpl.getAttributes()
public String getAttributeValue(String name1)
SubjectImpl
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
getAttributeValueOrCommaSeparated
in interface Subject
getAttributeValueOrCommaSeparated
in class SubjectImpl
SubjectImpl.getAttributeValueOrCommaSeparated(java.lang.String)
public Set<String> getAttributeValues(String name1)
SubjectImpl
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |