@Name(value="groupsSubscriptionsAction") @Scope(value=PAGE) public class GroupsSubscriptionsAction extends InputController implements Serializable
| Constructor and Description |
|---|
GroupsSubscriptionsAction() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromListpublic List<SelectItem> getNotificationList() throws ClientException
ClientExceptionpublic void updateSubscriptions()
throws ClientException
ClientExceptionpublic List<String> getSelectedNotifications() throws ClientException
ClientExceptionpublic List<String> getSubscribedUsersForNotification(String notification) throws ClientException
ClientExceptionpublic Map<String,List<String>> getUsersByNotificationsForCurrentDocument() throws ClientException
ClientExceptionpublic void setSelectedNotifications(List<String> selectedNotifications)
selectedNotifications - The selectedNotifications to set.public SelectItem[] getNotificationActionItems()
public String getSelectedGrant()
public void setSelectedGrant(String selectedPermission)
public String getSelectedNotification()
public void setSelectedNotification(String selectedNotification)
public boolean getCanAddSubscriptions()
throws ClientException
ClientExceptionpublic String addSubscriptionsAndUpdate() throws ClientException
ClientExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.