Examples of TitleItem


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

        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

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

        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

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

    } catch (Exception e) {
      log.error("", e);
      checkPublisher(p);
      title = translator.translate("notifications.header");
    }
    return new TitleItem(title, CSSHelper.CSS_CLASS_FILETYPE_FOLDER);
  }
View Full Code Here

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

  }

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

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

          title = translator.translate("cal.notifications.header.group", new String[]{group.getName()});
        }

        if (calType != null) {
          Formatter form = Formatter.getInstance(locale);
          si = new SubscriptionInfo(new TitleItem(title, CSS_CLASS_CALENDAR_ICON), null);
         
          String bPath;
          if(StringHelper.containsNonWhitespace(p.getBusinessPath())) {
            bPath = p.getBusinessPath();
          } else if("CalendarManager.course".equals(p.getResName())) {
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.