Class GuiSubject
java.lang.Object
edu.internet2.middleware.grouper.grouperUi.beans.api.GuiObjectBase
edu.internet2.middleware.grouper.grouperUi.beans.api.GuiSubject
- All Implemented Interfaces:
Serializable
subject for gui has all attributes etc, and getter to be accessed from screen
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
attributeValue
(Subject subject, String attrName) static Set<GuiSubject>
convertFromSubjects
(Set<Subject> subjects) static Set<GuiSubject>
convertFromSubjects
(Set<Subject> subjects, String configMax, int defaultMax) boolean
attribute label for this attribute if configured first get the text id for the source, then look in the externalized text for a label for the attribute, if not there, just use the attribute nameattribute names for this subject to show in the expanded viewattribute names for this subject to show in the non-expanded viewattribute names for this subjectGets a map attribute names and value.getEmail()
get the email attribute valuecant get grouper objectget the member of the subject or null if not thereget the member id of the subject or null if not therenot applicablepath colon separated not applicableget screen labelget screen labellong screen label with iconshort screen label for ui v2e.g.e.g.span for subject-specific icon for ui v2; e.g.e.g.e.g.return source id two pipes and subject idsubjectgetTitle()
not applicableint
hashCode()
boolean
isGroup()
see if group or notboolean
if the gui subject has an email addressboolean
boolean
get short screen labelboolean
if this is a subjectstatic String
Methods inherited from class edu.internet2.middleware.grouper.grouperUi.beans.api.GuiObjectBase
convertFromGrouperObjects, getAdditionalBreadcrumbBullets, getBreadcrumbBullets, getBreadcrumbs, getCreatedString, getCreatorGuiSubject, getDateUiFormat, getLastEditedString, getLastUpdatedByGuiSubject, getParentGuiStem, getUserFriendlyTypesNames, isShowBreadcrumbLink, isShowBreadcrumbLinkSeparator, main, setAdditionalBreadcrumbBullets, setShowBreadcrumbLink, setShowBreadcrumbLinkSeparator, toString
-
Constructor Details
-
GuiSubject
construct with subject- Parameters:
subject1
-
-
-
Method Details
-
getSourceIdSubjectId
return source id two pipes and subject id- Returns:
- the source id two pipes and subject id
-
equals
-
hashCode
public int hashCode() -
getMemberId
get the member id of the subject or null if not there- Returns:
- the member id if exists or null if not
-
getMember
get the member of the subject or null if not there- Returns:
- the member if exists or null if not
-
isHasEmailAttributeInSource
public boolean isHasEmailAttributeInSource()if the gui subject has an email address- Returns:
- true if the subject has email
-
getEmail
get the email attribute value- Returns:
- the email or null or blank if not there
-
convertFromSubjects
- Parameters:
subjects
-- Returns:
- subjects
-
convertFromSubjects
public static Set<GuiSubject> convertFromSubjects(Set<Subject> subjects, String configMax, int defaultMax) - Parameters:
subjects
-- Returns:
- gui subjects
-
isGroup
public boolean isGroup()see if group or not- Returns:
- if group
-
getShortLink
e.g. <a href="#">John Smith</a>- Returns:
- short link
-
getShortLinkWithIcon
e.g. <a href="#">John Smith</a>- Overrides:
getShortLinkWithIcon
in classGuiObjectBase
- Returns:
- short link
-
getScreenLabelShort2noLink
e.g. <a href="#">John Smith</a>- Returns:
- short link
-
someSourceId
- Returns:
- a source id
-
getScreenLabelShort2
short screen label for ui v2- Returns:
- label
-
getScreenSubjectIcon2Html
span for subject-specific icon for ui v2; e.g. '<i class="fa fa-group"></i> '- Returns:
- label
-
getScreenLabel
get screen label- Returns:
- screen label
-
getScreenLabelLong
get screen label- Returns:
- screen label
-
getScreenLabelLongWithIcon
long screen label with icon- Returns:
- screen label
-
getSubject
subject- Returns:
- the subject
-
getAttributeNamesNonInternal
attribute names for this subject- Returns:
- the attribute names for this subject
-
getAttributeNamesExpandedView
attribute names for this subject to show in the expanded view- Returns:
- the attribute names for this subject
-
getAttributeNamesNonExpandedView
attribute names for this subject to show in the non-expanded view- Returns:
- the attribute names for this subject
-
getAttributeLabel
attribute label for this attribute if configured first get the text id for the source, then look in the externalized text for a label for the attribute, if not there, just use the attribute name- Returns:
- the attribute label for this attribute
-
getAttributeNameFriendlyDescripton
-
getAttributes
Gets a map attribute names and value. The map's key contains the attribute name and the map's value contains a Set of attribute value(s). Note, this only does single valued attributes- Returns:
- the map of attributes
-
getScreenLabelLongIfDifferent
- Returns:
- long label if different than the short one
-
isNeedsTooltip
public boolean isNeedsTooltip()get short screen label- Returns:
- short screen label
-
getScreenLabelShort2noLinkWithIcon
e.g. <a href="#">John Smith</a>- Returns:
- short link
-
attributeValue
- Parameters:
subject
-attrName
-- Returns:
- the value
-
getGrouperObject
cant get grouper object- Specified by:
getGrouperObject
in classGuiObjectBase
- Returns:
- the object
-
isSubjectType
public boolean isSubjectType()if this is a subject- Overrides:
isSubjectType
in classGuiObjectBase
- Returns:
- if this is a subject
-
getPathColonSpaceSeparated
path colon separated not applicable- Overrides:
getPathColonSpaceSeparated
in classGuiObjectBase
- Returns:
- the colon space separated path
-
getNameColonSpaceSeparated
not applicable- Overrides:
getNameColonSpaceSeparated
in classGuiObjectBase
- Returns:
- the colon space separated path
-
getTitle
not applicable- Overrides:
getTitle
in classGuiObjectBase
- Returns:
- the title
-
isLocalEntityDisabled
public boolean isLocalEntityDisabled()- Returns:
- true if this is a local entity that is disabled
-