|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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 | |
---|---|
java.lang.String |
getAttributeValue(java.lang.String attributeName)
Returns the value of a single-valued attribute. |
java.lang.String |
getAttributeValueOrCommaSeparated(java.lang.String attributeName)
Returns the attribute value if single-valued, or if multi-valued, returns the values comma separated (with a space too). |
java.lang.String |
getDescription()
Gets this Subject's description. |
java.lang.String |
getEmailAddress()
get the email address of this subject based on attributes in grouper.properties |
java.lang.String |
getId()
Gets this Subject's ID. |
java.lang.String |
getName()
Gets this Subject's name. |
java.lang.String |
getSourceId()
get the source id of a subject |
java.lang.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 java.lang.String getEmailAddress()
public java.lang.String getId()
public java.lang.String getTypeName()
public java.lang.String getSourceId()
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getAttributeValue(java.lang.String attributeName)
attributeName
-
public java.lang.String getAttributeValueOrCommaSeparated(java.lang.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 |