Package edu.internet2.middleware.grouper
Class StemMove
java.lang.Object
edu.internet2.middleware.grouper.StemMove
Use this class to move a stem to another stem.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignAlternateName
(boolean value) Whether to add the current names of the affected stems and groups to their alternate name lists.void
save()
Move the stem using the options set in this class.
-
Constructor Details
-
StemMove
Create a new instance of this class if you would like to specify specific options for a stem move. After setting the options, call save().- Parameters:
stemToMove
- Stem to movedestinationStem
- Stem where the stem should be moved
-
-
Method Details
-
assignAlternateName
Whether to add the current names of the affected stems and groups to their alternate name lists. Certain operations like group name queries (GroupFinder.findByName()) will find groups by their current and alternate names. Currently, Grouper only supports one alternate name per group or stem, so if they are moved/renamed multiple times, only the last name will be kept as an alternate name. Default is true.- Parameters:
value
-- Returns:
- StemMove
-
save
Move the stem using the options set in this class.
-