Search in sources :

Example 1 with DENManager

use of de.bps.course.nodes.den.DENManager in project openolat by klemens.

the class DENCourseNode method cleanupOnDelete.

@Override
public void cleanupOnDelete(ICourse course) {
    super.cleanupOnDelete(course);
    CoursePropertyManager cpm = PersistingCoursePropertyManager.getInstance(course);
    cpm.deleteNodeProperties(this, CONF_CANCEL_ENROLL_ENABLED);
    DENManager denManager = DENManager.getInstance();
    // empty List as first argument, so all dates for this course node are going to delete
    denManager.persistDENSettings(new ArrayList<KalendarEvent>(), course, this);
}
Also used : DENManager(de.bps.course.nodes.den.DENManager) KalendarEvent(org.olat.commons.calendar.model.KalendarEvent) CoursePropertyManager(org.olat.course.properties.CoursePropertyManager) PersistingCoursePropertyManager(org.olat.course.properties.PersistingCoursePropertyManager)

Example 2 with DENManager

use of de.bps.course.nodes.den.DENManager in project OpenOLAT by OpenOLAT.

the class DENCourseNode method cleanupOnDelete.

@Override
public void cleanupOnDelete(ICourse course) {
    super.cleanupOnDelete(course);
    CoursePropertyManager cpm = PersistingCoursePropertyManager.getInstance(course);
    cpm.deleteNodeProperties(this, CONF_CANCEL_ENROLL_ENABLED);
    DENManager denManager = DENManager.getInstance();
    // empty List as first argument, so all dates for this course node are going to delete
    denManager.persistDENSettings(new ArrayList<KalendarEvent>(), course, this);
}
Also used : DENManager(de.bps.course.nodes.den.DENManager) KalendarEvent(org.olat.commons.calendar.model.KalendarEvent) CoursePropertyManager(org.olat.course.properties.CoursePropertyManager) PersistingCoursePropertyManager(org.olat.course.properties.PersistingCoursePropertyManager)

Aggregations

DENManager (de.bps.course.nodes.den.DENManager)2 KalendarEvent (org.olat.commons.calendar.model.KalendarEvent)2 CoursePropertyManager (org.olat.course.properties.CoursePropertyManager)2 PersistingCoursePropertyManager (org.olat.course.properties.PersistingCoursePropertyManager)2