Class StemMove

java.lang.Object
edu.internet2.middleware.grouper.StemMove

public class StemMove extends Object
Use this class to move a stem to another stem.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StemMove(Stem stemToMove, Stem destinationStem)
    Create a new instance of this class if you would like to specify specific options for a stem move.
  • Method Summary

    Modifier and Type
    Method
    Description
    assignAlternateName(boolean value)
    Whether to add the current names of the affected stems and groups to their alternate name lists.
    void
    Move the stem using the options set in this class.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StemMove

      public StemMove(Stem stemToMove, Stem destinationStem)
      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 move
      destinationStem - Stem where the stem should be moved
  • Method Details

    • assignAlternateName

      public StemMove assignAlternateName(boolean value)
      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.
      Throws:
      StemModifyException
      InsufficientPrivilegeException