The plug-in interface for IDeleteOtherOrgUnitHandler is used by IPSIS Adapters to support the delete operation for OrgUnits other than Department, Semester, CourseTemplate, CourseOffering, CourseSection, and SectionAssocation.
The interface implementation is D2L.IM.IPSIS.OrgUnits.OtherOrgUnits.IDeleteOtherOrgUnitHandler.
The IPSIS, Template -Org Unit configuration list provides a starting point for any IPSIS implementation.
The DeleteOtherOrgUnitIMHandler (Sort Order = 10) is used as a starting point.
DeleteOtherOrgUnitIMHandler
The DeleteOtherOrgUnitIMHandler marks the Org unit as deleted in the IM tables if it has no children in the Hierarchy tables, and has no impact on Brightspace.
Implementation
D2L.IM.IPSIS.Default.OrgUnits.OtherOrgUnits.DeleteOtherOrgUnitIMHandler
Expected behavior
The handler performs the following tasks:
- If the Org unit has any children in the IM Hierarchy tables, this process fails with an exception.
- The handler performs a soft-delete of the specified OrgUnit from the IM Platform Tables.
- The handler removes any IM Hierarchy records for this OrgUnit.
- Processing continues to the next available handler.
Error behavior
If there is a problem during processing, an exception is thrown, along with as much detailed information as possible.
Configuration note
This handler should be configured as the last Delete Handler.
DeleteOtherOrgUnitLMSHandler
The DeleteOtherOrgUnitLMSHandler deletes the OrgUnit from Brightspace if it has no children.
Implementation
D2L.IM.IPSIS.Default.OrgUnits.OtherOrgUnits.DeleteOtherOrgUnitLMSHandler
Expected behavior
The handler performs the following tasks:
- If the OrgUnit has children in the Brightspace, this process fails with an exception.
- The OrgUnit is deleted (automatically resulting in an audit log entry).
- The IM Mapping entry for the OrgUnit is marked as deleted.
- Processing continues to the next available handler.
Note: The OrgUnit is available in the recycle bin in Brightspace.
Configuration note
This handler should be configured before the Delete IM Handler.