|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.subj.SafeSubject
public class SafeSubject
bean to wrap a subject so it can be safely used from EL. Dont return any real objects, just primitives and strings and safe stuff
Constructor Summary | |
---|---|
SafeSubject(edu.internet2.middleware.subject.Subject theSubject)
construct with a subject |
Method Summary | |
---|---|
String |
getAttributeValue(String attributeName)
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). |
String |
getDescription()
Gets this Subject's description. |
String |
getEmailAddress()
get the email address of this subject based on attributes in grouper.properties |
String |
getId()
Gets this Subject's ID. |
String |
getName()
Gets this Subject's name. |
String |
getSourceId()
get the source id of a subject |
String |
getTypeName()
get the type name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SafeSubject(edu.internet2.middleware.subject.Subject theSubject)
theSubject
- Method Detail |
---|
public String getEmailAddress()
public String getId()
public String getTypeName()
public String getSourceId()
public String getName()
public String getDescription()
public String getAttributeValue(String attributeName)
attributeName
-
public String getAttributeValueOrCommaSeparated(String attributeName)
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
attributeName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |