@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 |
| Constructor and Description |
|---|
SubscriptionsAction() |
| Modifier and Type | Method and Description |
|---|---|
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, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromListpublic static final String CONFIRM_FOLLOW
public static final String CONFIRM_UNFOLLOW
@Factory(value="notificationList") public void getNotificationsList() throws ClientException
ClientException@Factory(value="inheritedNotifications") public void loadInheritedNotifications() throws ClientException, ClassNotFoundException
public void updateSubscriptions()
throws ClientException
ClientExceptionpublic void updateAllSubscriptions()
throws Exception
Exception@Observer(value="documentSelectionChanged", create=false) @BypassInterceptors public void invalidateNotificationsSelection()
public List<String> getSelectedNotifications() throws ClientException
ClientExceptionpublic 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)
Copyright © 2013 Nuxeo SA. All Rights Reserved.