Package org.olat.modules.dialog

Examples of org.olat.modules.dialog.DialogPropertyElements


    courseNodeResourceContext.setBusinessControlFor(courseNode);
    courseNodeResourceContext.setTitle(courseNode.getShortTitle());
    courseNodeResourceContext.setDescription(courseNode.getLongTitle());
   
    CoursePropertyManager coursePropMgr = course.getCourseEnvironment().getCoursePropertyManager();
    DialogPropertyElements elements = dialogElmsMgr.findDialogElements(coursePropMgr, courseNode);
    List<DialogElement> list = new ArrayList<DialogElement>();
    if (elements != null) list = elements.getDialogPropertyElements();
    // loop over all dialog elements
    for (Iterator<DialogElement> iter = list.iterator(); iter.hasNext();) {
      DialogElement element = iter.next();
      element.getAuthor();
      element.getDate();
View Full Code Here


   */
  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
View Full Code Here

   * @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();
      doArchiveElement(element, exportDirectory);
    }
View Full Code Here

* update table with latest elements
* @param ureq
*/
  private void showOverviewTable(UserRequest ureq) {
    tableCtr = new TableController(tableConf, ureq, getWindowControl(), resourceTrans, this);
    DialogPropertyElements elements = DialogElementsPropertyManager.getInstance().findDialogElements(this.course.getCourseEnvironment().getCoursePropertyManager(), courseNode);
    List list = new ArrayList();
    DialogElementsTableModel tableModel = new DialogElementsTableModel(getTranslator(), null, null);
    if (elements != null) list = elements.getDialogPropertyElements();
    tableModel.setEntries(list);
    tableModel.addColumnDescriptors(tableCtr);
    tableCtr.setTableDataModel(tableModel);
    tableCtr.modelChanged();
    tableCtr.setSortColumn(1, true);
View Full Code Here

    int counterSetAuthor = 0;
    List properties = findAllProperty();
    // loop over all property
    for (Iterator iterator = properties.iterator(); iterator.hasNext();) {
      Property prop = (Property) iterator.next();
      DialogPropertyElements dialogPropertyElements = (DialogPropertyElements) XStreamHelper.fromXML(prop.getTextValue());
      // loop over all elements
      List list = dialogPropertyElements.getDialogPropertyElements();
      for (Iterator iterator2 = list.iterator(); iterator2.hasNext();) {
        DialogElement dialogElement = (DialogElement) iterator2.next();
        counterDialogElement++;
        try {
          String author = dialogElement.getAuthor();
View Full Code Here

TOP

Related Classes of org.olat.modules.dialog.DialogPropertyElements

Copyright © 2018 www.massapicom. 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.