Examples of deleteNodeProperties()


Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

   */
  @Override
  public void cleanupOnDelete(ICourse course) {
    CoursePropertyManager pm = course.getCourseEnvironment().getCoursePropertyManager();
    // Delete all properties...
    pm.deleteNodeProperties(this, null);
    File fTaskFolder = new File(FolderConfig.getCanonicalRoot() + TACourseNode.getTaskFolderPathRelToFolderRoot(course, this));
    if (fTaskFolder.exists()) FileUtils.deleteDirsAndFiles(fTaskFolder, true, true);
    File fDropBox = new File(FolderConfig.getCanonicalRoot() + DropboxController.getDropboxPathRelToFolderRoot(course.getCourseEnvironment(), this));
    if (fDropBox.exists()) FileUtils.deleteDirsAndFiles(fDropBox, true, true);   
  }
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

   */
  @Override
  public void cleanupOnDelete(ICourse course) {
    CoursePropertyManager pm = course.getCourseEnvironment().getCoursePropertyManager();
    // Delete all properties: score, passed, log, comment, coach_comment
    pm.deleteNodeProperties(this, null);
  }

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#hasCommentConfigured()
   */
 
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

   * @see org.olat.course.nodes.CourseNode#cleanupOnDelete(org.olat.course.ICourse)
   */
  public void cleanupOnDelete(ICourse course) {
    CoursePropertyManager pm = course.getCourseEnvironment().getCoursePropertyManager();
    // 1) Delete all properties: attempts
    pm.deleteNodeProperties(this, null);
    // 2) Delete all qtiresults for this node
    String repositorySoftKey = (String) getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
    Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
    QTIResultManager.getInstance().deleteAllResults(course.getResourceableId(), this.getIdent(), repKey);
  }
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

   * @see org.olat.course.nodes.CourseNode#cleanupOnDelete(org.olat.course.ICourse)
   */
  public void cleanupOnDelete(ICourse course) {
    super.cleanupOnDelete(course);
    CoursePropertyManager cpm = PersistingCoursePropertyManager.getInstance(course);
    cpm.deleteNodeProperties(this, PROPERTY_INITIAL_ENROLLMENT_DATE);
    cpm.deleteNodeProperties(this, PROPERTY_RECENT_ENROLLMENT_DATE);
  }
 
  /**
   * Init config parameter with default values for a new course node.
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

   */
  public void cleanupOnDelete(ICourse course) {
    super.cleanupOnDelete(course);
    CoursePropertyManager cpm = PersistingCoursePropertyManager.getInstance(course);
    cpm.deleteNodeProperties(this, PROPERTY_INITIAL_ENROLLMENT_DATE);
    cpm.deleteNodeProperties(this, PROPERTY_RECENT_ENROLLMENT_DATE);
  }
 
  /**
   * Init config parameter with default values for a new course node.
   */
 
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

   */
  public void cleanupOnDelete(ICourse course) {
    CoursePropertyManager pm = course.getCourseEnvironment().getCoursePropertyManager();
    // 1) Delete all properties: score, passed, log, comment, coach_comment,
    // attempts
    pm.deleteNodeProperties(this, null);
    // 2) Delete all user files for this scorm node
    // FIXME gs
    // it is problematic that the data is stored using username/courseid-scormid/
    // much better would be /courseid-scormid/username/
    // I would consider refatoring this and setting up an upgrade task that moves the
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

   */
  public void cleanupOnDelete(ICourse course) {
    CoursePropertyManager pm = course.getCourseEnvironment().getCoursePropertyManager();
    // 1) Delete all properties: score, passed, log, comment, coach_comment,
    // attempts
    pm.deleteNodeProperties(this, null);
    // 2) Delete all qtiresults for this node
    String repositorySoftKey = (String) getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
    Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
    QTIResultManager.getInstance().deleteAllResults(course.getResourceableId(), this.getIdent(), repKey);
  }
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

  @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(), course, this);
  }
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteNodeProperties()

    // Delete project-broker, projects and project-groups
    if (projectBrokerId != null) {
      ProjectBrokerManagerFactory.getProjectBrokerManager().deleteProjectBroker(projectBrokerId, course.getCourseEnvironment(), this);
    }
    // Delete all properties...
    cpm.deleteNodeProperties(this, null);
  }

  /**
   * @return dropbox condition
   */
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.