|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.ui.util.SubjectSortWrapper
public class SubjectSortWrapper
Constructor Summary | |
---|---|
SubjectSortWrapper(Subject subject)
wrapped subject |
Method Summary | |
---|---|
int |
compareTo(Object o)
|
Map |
getAttributes()
Gets a map attribute names and values. |
String |
getAttributeValue(String name)
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 |
getAttributeValues(String name)
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 |
getId()
Gets this Subject's ID. |
String |
getName()
Gets this Subject's name. |
String |
getScreenLabel()
screen label (sort by this) |
Source |
getSource()
Returns the Source of this Subject. |
String |
getSourceId()
get the source id of a subject |
SubjectType |
getType()
Gets this Subject's type. |
String |
getTypeName()
get the type name |
Subject |
getWrappedSubject()
return the wrapped subject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubjectSortWrapper(Subject subject)
subject
- Method Detail |
---|
public String getScreenLabel()
public Subject getWrappedSubject()
public String getAttributeValue(String name)
Subject
getAttributeValue
in interface Subject
Subject.getAttributeValue(java.lang.String)
public Set getAttributeValues(String name)
Subject
getAttributeValues
in interface Subject
Subject.getAttributeValues(java.lang.String)
public Map getAttributes()
Subject
getAttributes
in interface Subject
Subject.getAttributes()
public String getDescription()
Subject
getDescription
in interface Subject
Subject.getDescription()
public String getId()
Subject
getId
in interface Subject
Subject.getId()
public String getName()
Subject
getName
in interface Subject
Subject.getName()
public Source getSource()
Subject
getSource
in interface Subject
Subject.getSource()
public SubjectType getType()
Subject
getType
in interface Subject
Subject.getType()
public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
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
Subject.getAttributeValueOrCommaSeparated(java.lang.String)
public String getAttributeValueSingleValued(String attributeName)
Subject
getAttributeValueSingleValued
in interface Subject
Subject.getAttributeValueSingleValued(java.lang.String)
public String getSourceId()
Subject
getSourceId
in interface Subject
Subject.getSourceId()
public String getTypeName()
Subject
getTypeName
in interface Subject
Subject.getTypeName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |