org.olat.notifications
Class NoSubscriptionInfo

java.lang.Object
  extended by org.olat.core.util.notifications.SubscriptionInfo
      extended by org.olat.notifications.NoSubscriptionInfo

public class NoSubscriptionInfo
extends SubscriptionInfo

Description:
used as an empty subscriptionInfo

Initial Date: 10.01.2005

Author:
Felix Jost

Field Summary
 
Fields inherited from class org.olat.core.util.notifications.SubscriptionInfo
MIME_HTML, MIME_PLAIN
 
Method Summary
 java.lang.String getCustomUrl()
           
 java.lang.String getSpecificInfo(java.lang.String mimeType)
           
 java.lang.String getTitle(java.lang.String mimeType)
           
 boolean hasNews()
           
 
Methods inherited from class org.olat.core.util.notifications.SubscriptionInfo
addSubscriptionListItem, countSubscriptionListItems, getSpecificInfo, setCustomUrl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSpecificInfo

public java.lang.String getSpecificInfo(java.lang.String mimeType)
See Also:
org.olat.notifications.SubscriptionInfo#getSpecificInfo(java.lang.String)

hasNews

public boolean hasNews()
Overrides:
hasNews in class SubscriptionInfo
Returns:
true if there is any news
See Also:
org.olat.notifications.SubscriptionInfo#hasNews()

getTitle

public java.lang.String getTitle(java.lang.String mimeType)
Overrides:
getTitle in class SubscriptionInfo
Parameters:
mimeType - the mimetype of the desired output; supported are currently text/plain and text/html
Returns:
the title of a notification entry. e.g. "5 new posts" for a forum subscription, or "10 new uploads" for a folder subscription

getCustomUrl

public java.lang.String getCustomUrl()
Overrides:
getCustomUrl in class SubscriptionInfo
Returns:
Returns the customUrl.