Nuxeo Enterprise Platform 5.4

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:
java.io.Serializable

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

Handles the subscriptions page.

Author:
Narcis Paslaru
See Also:
Serialized Form

Constructor Summary
SubscriptionsAction()
           
 
Method Summary
 SelectableSubscription getCurrentSubscription()
           
 java.util.List<Notification> getInheritedNotifications()
           
 java.util.List<SelectableSubscription> getNotificationList()
           
 void getNotificationsList()
          Gets all the notifications the user may subscribe to.
 java.util.List<java.lang.String> getSelectedNotifications()
           
 void invalidateNotificationsSelection()
           
 void loadInheritedNotifications()
          Gets all the notifications the user may subscribe to.
 void setCurrentSubscription(SelectableSubscription currentSubscription)
           
 void setInheritedNotifications(java.util.List<Notification> inheritedNotifications)
           
 void setNotificationList(java.util.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,
                                       java.lang.ClassNotFoundException
Gets all the notifications the user may subscribe to.

Throws:
ClientException
java.lang.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 java.util.List<java.lang.String> getSelectedNotifications()
                                                          throws ClientException
Returns:
the previously selected notifications.
Throws:
ClientException

getCurrentSubscription

public SelectableSubscription getCurrentSubscription()

setCurrentSubscription

public void setCurrentSubscription(SelectableSubscription currentSubscription)

getNotificationList

public java.util.List<SelectableSubscription> getNotificationList()

setNotificationList

public void setNotificationList(java.util.List<SelectableSubscription> notificationList)

getInheritedNotifications

public java.util.List<Notification> getInheritedNotifications()

setInheritedNotifications

public void setInheritedNotifications(java.util.List<Notification> inheritedNotifications)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.