org.olat.notifications
Class NotificationUIFactory

java.lang.Object
  extended by org.olat.notifications.NotificationUIFactory

public class NotificationUIFactory
extends java.lang.Object

Description:
TODO: gnaegi Class Description for NotificationUIFactory

Initial Date: 22.12.2009

Author:
gnaegi

Constructor Summary
NotificationUIFactory()
           
 
Method Summary
static NotificationSubscriptionAndNewsController createCombinedSubscriptionsAndNewsController(Identity subscriberIdentity, UserRequest ureq, WindowControl windowControl)
          Create a controller which shows the users subscriptions and the generated news in one view that has been accumulated during the configured notification period
static NotificationSubscriptionAndNewsController createCombinedSubscriptionsAndNewsController(Identity subscriberIdentity, UserRequest ureq, WindowControl windowControl, java.util.Date newsSinceDate)
          Create a controller which shows the users subscriptions and the generated news since the given date in one view
static org.olat.notifications.NotificationNewsController createNewsListingController(Identity subscriberIdentity, UserRequest ureq, WindowControl windowControl, java.util.Date newsSinceDate)
          Create a controller that displays the users news from his subscriptions
static NotificationSubscriptionController createSubscriptionListingController(Identity subscriberIdentity, UserRequest ureq, WindowControl windowControl)
          Create a controller that displays the subscriptions for a specific user
static void launchSubscriptionResource(UserRequest ureq, WindowControl windowControl, Subscriber sub)
          launch a subscription resource in its tab
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationUIFactory

public NotificationUIFactory()
Method Detail

createSubscriptionListingController

public static NotificationSubscriptionController createSubscriptionListingController(Identity subscriberIdentity,
                                                                                     UserRequest ureq,
                                                                                     WindowControl windowControl)
Create a controller that displays the subscriptions for a specific user

Parameters:
subscriberIdentity -
ureq -
windowControl -
Returns:

createNewsListingController

public static org.olat.notifications.NotificationNewsController createNewsListingController(Identity subscriberIdentity,
                                                                                            UserRequest ureq,
                                                                                            WindowControl windowControl,
                                                                                            java.util.Date newsSinceDate)
Create a controller that displays the users news from his subscriptions

Parameters:
subscriberIdentity -
ureq -
windowControl -
newsSinceDate - optional date that represents the lower boundary of the news period or NULL to use the default value
Returns:

createCombinedSubscriptionsAndNewsController

public static NotificationSubscriptionAndNewsController createCombinedSubscriptionsAndNewsController(Identity subscriberIdentity,
                                                                                                     UserRequest ureq,
                                                                                                     WindowControl windowControl,
                                                                                                     java.util.Date newsSinceDate)
Create a controller which shows the users subscriptions and the generated news since the given date in one view

Parameters:
subscriberIdentity -
ureq -
windowControl -
newsSinceDate - optional date that represents the lower boundary of the news period or NULL to use the default value
Returns:

createCombinedSubscriptionsAndNewsController

public static NotificationSubscriptionAndNewsController createCombinedSubscriptionsAndNewsController(Identity subscriberIdentity,
                                                                                                     UserRequest ureq,
                                                                                                     WindowControl windowControl)
Create a controller which shows the users subscriptions and the generated news in one view that has been accumulated during the configured notification period

Parameters:
subscriberIdentity -
ureq -
windowControl -
Returns:

launchSubscriptionResource

public static void launchSubscriptionResource(UserRequest ureq,
                                              WindowControl windowControl,
                                              Subscriber sub)
launch a subscription resource in its tab

Parameters:
ureq -
windowControl -
sub -