@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 org.jboss.seam.faces.FacesMessages |
facesMessages |
protected NavigationContext |
navigationContext |
protected List<SelectableSubscription> |
notificationList |
protected NotificationManager |
notificationManager |
protected ResourcesAccessor |
resourcesAccessor |
actionManager, currentDocument, currentUser, eventManager, 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 protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
@DataModel(value="notificationList") protected List<SelectableSubscription> notificationList
@In(create=true) protected transient NotificationManager notificationManager
@In(create=true, required=false) protected transient org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true) protected ResourcesAccessor resourcesAccessor
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
ClassNotFoundException
public 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 © 2018 Nuxeo. All rights reserved.