Package org.olat.core.util.notifications.items

Examples of org.olat.core.util.notifications.items.TitleItem


        DialogElementsPropertyManager mgr = DialogElementsPropertyManager.getInstance();
        DialogPropertyElements elements = mgr.findDialogElements(p.getResId(), p.getSubidentifier());
        final List<DialogElement> dialogElements = elements.getDialogPropertyElements();
        final Translator translator = Util.createPackageTranslator(FileUploadNotificationHandler.class, locale);

        si = new SubscriptionInfo(new TitleItem(translator.translate("notifications.header", new String[]{displayname}), CSSS_CLASS_UPLOAD_ICON), null);
        SubscriptionListItem subListItem;
        for (DialogElement element : dialogElements) {
          // do only show entries newer then the ones already seen
          if (element.getDate().after(compareDate)) {
            String filename = element.getFilename();
View Full Code Here


  }

  @Override
  public String createTitleInfo(Subscriber subscriber, Locale locale) {
    Translator translator = Util.createPackageTranslator(ForumNotificationsHandler.class, locale);
    TitleItem title = getTitleItem(subscriber.getPublisher(), translator);
    return title.getInfoContent("text/plain");
  }
View Full Code Here

    } catch (Exception e) {
      log.error("Error while creating assessment notifications for publisher: " + p.getKey(), e);
      checkPublisher(p);
      title = translator.translate("notifications.header");
    }
    return new TitleItem(title, ForumHelper.CSS_ICON_CLASS_FORUM);
  }
View Full Code Here

       
        Wiki wiki = WikiManager.getInstance().getOrLoadWiki(ores);
        final List<WikiPage> pages = wiki.getPagesByDate();
        Translator translator = Util.createPackageTranslator(WikiPageChangeOrCreateNotificationHandler.class, locale);
       
        TitleItem title = getTitleItem(p, translator);
        si = new SubscriptionInfo(title, null);
          SubscriptionListItem subListItem;
            for (Iterator<WikiPage> it = pages.listIterator(); it.hasNext();) {           
              WikiPage element = it.next();
             
View Full Code Here

      title = translator.translate("notifications.header.course", new String[]{course.getCourseTitle()});
    } else {
      title = translator.translate("notifications.header");
    }

    return new TitleItem(title, Wiki.CSS_CLASS_WIKI_ICON);
  }
View Full Code Here

  @Override
  public String createTitleInfo(Subscriber subscriber, Locale locale) {
    try {
      Translator translator = Util.createPackageTranslator(WikiPageChangeOrCreateNotificationHandler.class, locale);
      TitleItem title = getTitleItem(subscriber.getPublisher(), translator);
      return title.getInfoContent("text/plain");
    } catch (Exception e) {
      logError("Error while creating assessment notifications for subscriber: " + subscriber.getKey(), e);
      checkPublisher(subscriber.getPublisher());
      return "-";
    }
View Full Code Here

          List<IQTESTCourseNode> testNodes = getCourseTestNodes(course);
          Translator translator = Util.createPackageTranslator(AssessmentNotificationsHandler.class, locale);

          String title = translator.translate("notifications.header", new String[]{course.getCourseTitle()});
          si = new SubscriptionInfo(new TitleItem(title, CSS_CLASSS_IQTEST_ICON), null);

          for (Iterator<IQTESTCourseNode> i = testNodes.iterator(); i.hasNext();) {
            IQTESTCourseNode test = i.next();

            QTIResultManager qrm = QTIResultManager.getInstance();
View Full Code Here

          if(!checkPublisher(p)) {
            return NotificationsManager.getInstance().getNoSubscriptionInfo();
          }
        }
       
        si = new SubscriptionInfo(new TitleItem(translator.translate(getNotificationHeaderKey(), new String[]{displayName}), getCssClassIcon() ), null);
        SubscriptionListItem subListItem;
        for (Iterator<FileInfo> it_infos = fInfos.iterator(); it_infos.hasNext();) {
              FileInfo fi = it_infos.next();
              MetaInfo metaInfo = fi.getMetaInfo();
              String filePath = fi.getRelPath();
View Full Code Here

        identities = UsersSubscriptionManager.getInstance().getNewIdentityCreated(compareDate);
        if (identities.isEmpty()) {
          si = NotificationsManager.getInstance().getNoSubscriptionInfo();
        } else {
          translator = Util.createPackageTranslator(this.getClass(), locale);
          si = new SubscriptionInfo(new TitleItem(getItemTitle(translator), CSSHelper.CSS_CLASS_GROUP), null);
          SubscriptionListItem subListItem;
          for (Identity newUser : identities) {
            String desc = translator.translate("notifications.entry", new String[] { NotificationHelper.getFormatedName(newUser) });
            String businessPath = "[Identity:" + newUser.getKey() + "]";
            String urlToSend = NotificationHelper.getURLFromBusinessPathString(p, businessPath);
View Full Code Here

        if (course != null) {
          final List<DENCourseNode> denNodes = getCourseDENNodes(course);
          final Translator trans = Util.createPackageTranslator(DENCourseNodeNotificationHandler.class, locale);

          String cssClass = new DENCourseNodeConfiguration().getIconCSSClass();
          si = new SubscriptionInfo(new TitleItem(trans.translate("notifications.header", new String[]{course.getCourseTitle()}), cssClass), null);
          SubscriptionListItem subListItem;

          for (DENCourseNode denNode : denNodes) {
            String changer = "";
            String desc = trans.translate("notifications.entry", new String[] { denNode.getLongTitle(), changer });
View Full Code Here

TOP

Related Classes of org.olat.core.util.notifications.items.TitleItem

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.