Class GroupOrStem
java.lang.Object
edu.internet2.middleware.grouper.ui.GroupOrStem
-
Method Summary
Modifier and TypeMethodDescriptionstatic GroupOrStem
findByGroup
(GrouperSession s, Group group) Already have a group but a method needs GroupOrStemstatic GroupOrStem
findByID
(GrouperSession s, String id) Only have and id ...static GroupOrStem
findByName
(GrouperSession s, String name) Only have a name...static GroupOrStem
findByStem
(GrouperSession s, Stem stem) Already have a stem but a method needs GroupOrStemgetAsMap()
getGroup()
getId()
getName()
getStem()
getType()
boolean
isGroup()
boolean
isStem()
-
Method Details
-
findByStem
Already have a stem but a method needs GroupOrStem- Parameters:
s
-stem
-- Returns:
- a GroupOrStem based on the stem provided
-
findByGroup
Already have a group but a method needs GroupOrStem- Parameters:
s
-group
-- Returns:
- a GroupOrStem based on the group provided
-
findByID
Only have and id ...- Parameters:
s
-id
-- Returns:
- a GroupOrStem based on the id provided
-
findByName
Only have a name...- Parameters:
s
-name
-- Returns:
- a GroupOrStem based on the name provided
-
getId
- Returns:
- id of 'masked' group or stem
-
isGroup
public boolean isGroup()- Returns:
- if 'masked' object is a Group
-
isStem
public boolean isStem()- Returns:
- if 'masked' object is a Stem
-
getAsMap
- Returns:
- 'masked' object as a Map
-
getGroup
- Returns:
- masked Group (or null if is a Stem)
-
getStem
- Returns:
- masked Stem (or null if is a Group)
-
getDisplayExtension
- Returns:
- display extension for wrapped group or stem
-
getDisplayName
- Returns:
- display name for wrapped group or stem
-
getName
- Returns:
- name for wrapped group or stem
-
getType
- Returns:
- 'group' or 'stem' depending on the wrapped object
-