@Name(value="subscriptionAction") @Scope(value=PAGE) public class SubscriptionsAction extends InputController implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CONFIRM_FOLLOW  | 
static String | 
CONFIRM_UNFOLLOW  | 
protected CoreSession | 
documentManager  | 
protected List<SelectableSubscription> | 
notificationList  | 
protected NotificationManager | 
notificationManager  | 
actionManager, currentDocument, currentUser, eventManager, facesMessages, navigationContext, resourcesAccessor, typeManager, typesTool| Constructor and Description | 
|---|
SubscriptionsAction()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canFollow()  | 
SelectableSubscription | 
getCurrentSubscription()  | 
List<Notification> | 
getInheritedNotifications()  | 
List<SelectableSubscription> | 
getNotificationList()  | 
void | 
getNotificationsList()
Gets all the notifications the user may subscribe to. 
 | 
List<String> | 
getSelectedNotifications()  | 
void | 
invalidateNotificationsSelection()  | 
void | 
loadInheritedNotifications()
Gets all the notifications the user may subscribe to. 
 | 
void | 
setCurrentSubscription(SelectableSubscription currentSubscription)  | 
void | 
setInheritedNotifications(List<Notification> inheritedNotifications)  | 
void | 
setNotificationList(List<SelectableSubscription> notificationList)  | 
void | 
updateAllSubscriptions()
Manage (un)subscription to all notifications 
 | 
void | 
updateSubscriptions()
Registers the user's choices. 
 | 
computeOutcome, extractReferences, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList, setFacesMessage@In(create=true,
    required=false)
protected transient CoreSession documentManager
@DataModel(value="notificationList") protected List<SelectableSubscription> notificationList
@In(create=true) protected transient NotificationManager notificationManager
public static final String CONFIRM_FOLLOW
public static final String CONFIRM_UNFOLLOW
public SubscriptionsAction()
@Factory(value="notificationList") public void getNotificationsList()
@Factory(value="inheritedNotifications") public void loadInheritedNotifications() throws ClassNotFoundException
ClassNotFoundExceptionpublic void updateSubscriptions()
public void updateAllSubscriptions()
@Observer(value="documentSelectionChanged",
          create=false)
 @BypassInterceptors
public void invalidateNotificationsSelection()
public List<String> getSelectedNotifications()
public SelectableSubscription getCurrentSubscription()
public void setCurrentSubscription(SelectableSubscription currentSubscription)
public List<SelectableSubscription> getNotificationList()
public void setNotificationList(List<SelectableSubscription> notificationList)
public List<Notification> getInheritedNotifications()
public void setInheritedNotifications(List<Notification> inheritedNotifications)
public boolean canFollow()
Copyright © 2019 Nuxeo. All rights reserved.