Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.notification
Class GroupsSubscriptionsAction

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

@Name(value="groupsSubscriptionsAction")
@Scope(value=PAGE)
public class GroupsSubscriptionsAction
extends InputController
implements Serializable

Handles the subscriptions page.

Author:
Narcis Paslaru
See Also:
Serialized Form

Constructor Summary
GroupsSubscriptionsAction()
           
 
Method Summary
 String addSubscriptionsAndUpdate()
           
 boolean getCanAddSubscriptions()
           
 SelectItem[] getNotificationActionItems()
           
 List<SelectItem> getNotificationList()
          Gets all the notifications registered in the system.
 List<String> getSelectedEntries()
           
 String getSelectedGrant()
           
 String getSelectedNotification()
           
 List<String> getSelectedNotifications()
           
 List<String> getSubscribedUsersForNotification(String notification)
          Returns the users that subscribed to a notification.
 Map<String,List<String>> getUsersByNotificationsForCurrentDocument()
          Returns a map that contains all users and groups subscribed to notifications(keys).
 void setSelectedEntries(List<String> selectedEntries)
           
 void setSelectedGrant(String selectedPermission)
           
 void setSelectedNotification(String selectedNotification)
           
 void setSelectedNotifications(List<String> selectedNotifications)
           
 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

GroupsSubscriptionsAction

public GroupsSubscriptionsAction()
Method Detail

getNotificationList

public List<SelectItem> getNotificationList()
                                     throws ClientException
Gets all the notifications registered in the system.

Throws:
ClientException

updateSubscriptions

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

Throws:
ClientException

getSelectedNotifications

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

getSubscribedUsersForNotification

public List<String> getSubscribedUsersForNotification(String notification)
                                               throws ClientException
Returns the users that subscribed to a notification.

Throws:
ClientException

getUsersByNotificationsForCurrentDocument

public Map<String,List<String>> getUsersByNotificationsForCurrentDocument()
                                                                   throws ClientException
Returns a map that contains all users and groups subscribed to notifications(keys).

Throws:
ClientException

setSelectedNotifications

public void setSelectedNotifications(List<String> selectedNotifications)
Parameters:
selectedNotifications - The selectedNotifications to set.

getNotificationActionItems

public SelectItem[] getNotificationActionItems()

getSelectedGrant

public String getSelectedGrant()

setSelectedGrant

public void setSelectedGrant(String selectedPermission)

getSelectedNotification

public String getSelectedNotification()

setSelectedNotification

public void setSelectedNotification(String selectedNotification)

getCanAddSubscriptions

public boolean getCanAddSubscriptions()
                               throws ClientException
Throws:
ClientException

addSubscriptionsAndUpdate

public String addSubscriptionsAndUpdate()
                                 throws ClientException
Throws:
ClientException

getSelectedEntries

public List<String> getSelectedEntries()

setSelectedEntries

public void setSelectedEntries(List<String> selectedEntries)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.