Examples of DialogElementsPropertyManager


Examples of org.olat.modules.dialog.DialogElementsPropertyManager

  /**
   * life cycle of node data e.g properties stuff should be deleted if node gets
   * deleted life cycle: create - delete - migrate
   */
  public void cleanupOnDelete(ICourse course) {
    DialogElementsPropertyManager depm = DialogElementsPropertyManager.getInstance();
   
    //remove all possible forum subscriptions
    DialogPropertyElements findDialogElements = depm.findDialogElements(course.getResourceableId(), getIdent());
    if(findDialogElements != null){
      List<DialogElement> dialogElments = findDialogElements.getDialogPropertyElements();
      for (DialogElement dialogElement : dialogElments) {
        Long forumKey = dialogElement.getForumKey();
        SubscriptionContext subsContext = CourseModule.createSubscriptionContext(course.getCourseEnvironment(), this, forumKey.toString());
        NotificationsManager.getInstance().delete(subsContext);
        //also delete forum -> was archived in archiveNodeData step
        ForumManager.getInstance().deleteForum(forumKey);
      }
    }
   
    //delete property
    depm.deleteProperty(course.getResourceableId(), this.getIdent());
   
   
   
  }
View Full Code Here

Examples of org.olat.modules.dialog.DialogElementsPropertyManager

   *
   * @see org.olat.course.nodes.CourseNode#archiveNodeData(java.util.Locale,
   *      org.olat.course.ICourse, java.io.File)
   */
  public void archiveNodeData(Locale locale, ICourse course, File exportDirectory, String charset) {
    DialogElementsPropertyManager depm = DialogElementsPropertyManager.getInstance();
    DialogPropertyElements elements = depm.findDialogElements(course.getCourseEnvironment().getCoursePropertyManager(), this);
    List list = new ArrayList();
    if (elements != null) list = elements.getDialogPropertyElements();

    for (Iterator iter = list.iterator(); iter.hasNext();) {
      DialogElement element = (DialogElement) iter.next();
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.