ReplaceCourseOfferingDisallowParentChangesIfChildrenExistHandler

This handler can be used to prevent deleting or swapping a parent template added by IPSIS for any offering that already has children. In the absence of this handler, parents added by IPSIS may be freely updated, which might alter the hierarchy information for ancestors and descendants of the current offering.

Implementation

D2L.IM.IPSIS.Default.OrgUnits.CourseOfferings.Handlers.ReplaceCourseOfferingParentDepartmentValidateHandler

Expected behavior

  • If the offering already exists (replace instead of create):
  • If a parent OrgUnit added by IPSIS will be removed or replaced, throw an exception to prevent any further handlers from running.
    Note: manually added OrgUnits will always be removed with or without this handler in place

Configuration notes

  • This handler should be configured to run after the Validate handlers.
  • This handler should be configured to run before the Create handlers.