Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.notification
Class SubscriptionsAction

java.lang.Object
  extended by org.nuxeo.ecm.webapp.base.InputController
      extended by org.nuxeo.ecm.webapp.notification.SubscriptionsAction
All Implemented Interfaces:
Serializable

@Name(value="subscriptionAction")
@Scope(value=PAGE)
public class SubscriptionsAction
extends InputController
implements Serializable

Handles the subscriptions page.

Author:
Narcis Paslaru
See Also:
Serialized Form

Constructor Summary
SubscriptionsAction()
           
 
Method Summary
 SelectableSubscription getCurrentSubscription()
           
 List<Notification> getInheritedNotifications()
           
 List<SelectableSubscription> getNotificationList()
           
 void getNotificationsList()
          Gets all the notifications the user may subscribe to.
 List<String> getSelectedNotifications()
           
 void invalidateNotificationsSelection()
           
 void loadInheritedNotifications()
          Gets all the notifications the user may subscribe to.
 void setCurrentSubscription(SelectableSubscription currentSubscription)
           
 void setInheritedNotifications(List<Notification> inheritedNotifications)
           
 void setNotificationList(List<SelectableSubscription> notificationList)
           
 void updateSubscriptions()
          Registers the user's choices.
 
Methods inherited from class org.nuxeo.ecm.webapp.base.InputController
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionsAction

public SubscriptionsAction()
Method Detail

getNotificationsList

@Factory(value="notificationList")
public void getNotificationsList()
                          throws ClientException
Gets all the notifications the user may subscribe to.

Throws:
ClientException

loadInheritedNotifications

@Factory(value="inheritedNotifications")
public void loadInheritedNotifications()
                                throws ClientException,
                                       ClassNotFoundException
Gets all the notifications the user may subscribe to.

Throws:
ClientException
ClassNotFoundException

updateSubscriptions

public void updateSubscriptions()
                         throws ClientException
Registers the user's choices.

Throws:
ClientException

invalidateNotificationsSelection

@Observer(value="documentSelectionChanged",
          create=false)
@BypassInterceptors
public void invalidateNotificationsSelection()

getSelectedNotifications

public List<String> getSelectedNotifications()
                                      throws ClientException
Returns:
the previously selected notifications.
Throws:
ClientException

getCurrentSubscription

public SelectableSubscription getCurrentSubscription()

setCurrentSubscription

public void setCurrentSubscription(SelectableSubscription currentSubscription)

getNotificationList

public List<SelectableSubscription> getNotificationList()

setNotificationList

public void setNotificationList(List<SelectableSubscription> notificationList)

getInheritedNotifications

public List<Notification> getInheritedNotifications()

setInheritedNotifications

public void setInheritedNotifications(List<Notification> inheritedNotifications)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.