@Name(value="groupsSubscriptionsAction") @Scope(value=PAGE) public class GroupsSubscriptionsAction extends InputController implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Principal |
currentUser |
protected CoreSession |
documentManager |
protected NotificationManager |
notificationManager |
protected List<String> |
selectedEntries |
actionManager, currentDocument, eventManager, facesMessages, navigationContext, resourcesAccessor, typeManager, typesTool
Constructor and Description |
---|
GroupsSubscriptionsAction() |
Modifier and Type | Method and Description |
---|---|
String |
addSubscriptionsAndUpdate() |
boolean |
getCanAddSubscriptions() |
javax.faces.model.SelectItem[] |
getNotificationActionItems() |
List<javax.faces.model.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, extractReferences, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList, setFacesMessage
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) protected Principal currentUser
@In(create=true) protected transient NotificationManager notificationManager
protected List<String> selectedEntries
public GroupsSubscriptionsAction()
public List<javax.faces.model.SelectItem> getNotificationList()
public void updateSubscriptions()
public List<String> getSelectedNotifications()
public List<String> getSubscribedUsersForNotification(String notification)
public Map<String,List<String>> getUsersByNotificationsForCurrentDocument()
public void setSelectedNotifications(List<String> selectedNotifications)
selectedNotifications
- The selectedNotifications to set.public javax.faces.model.SelectItem[] getNotificationActionItems()
public String getSelectedGrant()
public void setSelectedGrant(String selectedPermission)
public String getSelectedNotification()
public void setSelectedNotification(String selectedNotification)
public boolean getCanAddSubscriptions()
public String addSubscriptionsAndUpdate()
public List<String> getSelectedEntries()
public void setSelectedEntries(List<String> selectedEntries)
Copyright © 2017 Nuxeo. All rights reserved.