@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, removeDocumentFromList
public List<SelectItem> getNotificationList() throws ClientException
ClientException
public void updateSubscriptions() throws ClientException
ClientException
public List<String> getSelectedNotifications() throws ClientException
ClientException
public List<String> getSubscribedUsersForNotification(String notification) throws ClientException
ClientException
public Map<String,List<String>> getUsersByNotificationsForCurrentDocument() throws ClientException
ClientException
public 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
ClientException
public String addSubscriptionsAndUpdate() throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.