Class GroupMove

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

public class GroupMove extends Object
Use this class to move a group to another stem.
  • Constructor Details

    • GroupMove

      public GroupMove(Group group, Stem stem)
      Create a new instance of this class if you would like to specify specific options for a group move. After setting the options, call save().
      Parameters:
      group - Group to move
      stem - Stem where group should be moved
  • Method Details

    • assignAlternateName

      public GroupMove assignAlternateName(boolean value)
      Whether to add the current name of the group to the group's alternate names list. 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, so if groups are moved/renamed multiple times, only the last name will be kept as an alternate name. Default is true.
      Parameters:
      value -
      Returns:
      GroupMove
    • save

      Move the group using the options set in this class.
      Throws:
      GroupModifyException
      InsufficientPrivilegeException