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