org.olat.core.util.notifications
Class NotificationHelper

java.lang.Object
  extended by org.olat.core.util.notifications.NotificationHelper

public class NotificationHelper
extends java.lang.Object

Description:
Helper for some tasks with notifications

Initial Date: 01.12.2009

Author:
Roman Haag, roman.haag@frentix.com, frentix GmbH

Constructor Summary
NotificationHelper()
           
 
Method Summary
static void appendLineBreak(java.lang.String mimeType, java.lang.StringBuilder titleSb)
           
static java.lang.String getBusPathStringAsURIFromCEList(java.util.List<ContextEntry> ceList)
           
static java.lang.String getFormatedName(Identity ident)
          returns "firstname lastname" or a translated "user unknown" for a given identity
static java.util.Map<Subscriber,SubscriptionInfo> getSubscriptionMap(Identity identity, java.util.Locale locale, boolean showWithNewsOnly, java.util.Date compareDate)
           
static java.lang.String getURLFromBusinessPathString(Publisher p, java.lang.String bPathString)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationHelper

public NotificationHelper()
Method Detail

getSubscriptionMap

public static java.util.Map<Subscriber,SubscriptionInfo> getSubscriptionMap(Identity identity,
                                                                            java.util.Locale locale,
                                                                            boolean showWithNewsOnly,
                                                                            java.util.Date compareDate)

getURLFromBusinessPathString

public static java.lang.String getURLFromBusinessPathString(Publisher p,
                                                            java.lang.String bPathString)

getBusPathStringAsURIFromCEList

public static java.lang.String getBusPathStringAsURIFromCEList(java.util.List<ContextEntry> ceList)

getFormatedName

public static java.lang.String getFormatedName(Identity ident)
returns "firstname lastname" or a translated "user unknown" for a given identity

Parameters:
ident -
Returns:

appendLineBreak

public static void appendLineBreak(java.lang.String mimeType,
                                   java.lang.StringBuilder titleSb)
Parameters:
mimeType -
titleSb -