Class SafeSubject
java.lang.Object
edu.internet2.middleware.grouper.subj.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
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue
(String attributeName) Returns the value of a single-valued attribute.getAttributeValueOrCommaSeparated
(String attributeName) Returns the attribute value if single-valued, or if multi-valued, returns the values comma separated (with a space too).Gets this Subject's description.get the email address of this subject based on attributes in grouper.propertiesgetId()
Gets this Subject's ID.getName()
Gets this Subject's name.get the source id of a subjectget the type name
-
Constructor Details
-
SafeSubject
construct with a subject- Parameters:
theSubject
-
-
-
Method Details
-
getEmailAddress
get the email address of this subject based on attributes in grouper.properties- Returns:
- the email address
-
getId
Gets this Subject's ID.- Returns:
- string
-
getTypeName
get the type name- Returns:
- the type name
-
getSourceId
get the source id of a subject- Returns:
- the source id
-
getName
Gets this Subject's name.- Returns:
- name or null if not there
-
getDescription
Gets this Subject's description.- Returns:
- description or null if not there
-
getAttributeValue
Returns the value of a single-valued attribute. If multivalued, this returns the first value- Parameters:
attributeName
-- Returns:
- value or null if not found
-
getAttributeValueOrCommaSeparated
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
- Parameters:
attributeName
-- Returns:
- value or values or null if not there
-