@Name(value="userNotificationActions") @Scope(value=CONVERSATION) public class UserNotificationActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected NuxeoPrincipal |
currentUser |
protected CoreSession |
documentManager |
protected NotificationManager |
notificationManager |
Constructor and Description |
---|
UserNotificationActions() |
Modifier and Type | Method and Description |
---|---|
boolean |
getCanRemoveNotification(String userId) |
DocumentModel |
getDocument(String docId) |
List<UserSubscription> |
getUserSubscriptions() |
@In(create=true) protected NuxeoPrincipal currentUser
@In(create=true) protected CoreSession documentManager
@In(create=true) protected transient NotificationManager notificationManager
public UserNotificationActions()
@Factory(value="userSubscriptions", scope=EVENT) public List<UserSubscription> getUserSubscriptions()
public DocumentModel getDocument(String docId)
public boolean getCanRemoveNotification(String userId)
Copyright © 2015 Nuxeo SA. All rights reserved.