public interface NotificationManager
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<Notification> |
getNotifications(ResourceResolver resolver,
UgcFilter filter,
int startIndex,
int size)
Get notifications starting at the specified startIndex.
|
ActivityStream |
getNotificationStream(ResourceResolver adminResolver,
java.lang.String userId,
boolean create)
Get the notification stream for the specified userId.
|
long |
getUnreadCount(ResourceResolver resolver,
Constraint customConstraint,
java.lang.String channelId)
TODO: We probably want to move this API into ActivityStream Get the number of unread notification for the
specified user and channel
|
int |
getUnreadCountConfigured() |
java.lang.Iterable<Resource> |
getUnreadResource(ResourceResolver resolver,
Constraint customConstraint,
java.lang.String channelId) |
boolean |
isStreamExist(ResourceResolver resolver)
Check if the stream exist for the owner of the specified resource resolver
|
boolean isStreamExist(ResourceResolver resolver)
resolver
- ResourceResolverActivityStream getNotificationStream(ResourceResolver adminResolver, java.lang.String userId, boolean create) throws ActivityException
ActivityStreamExeption
.adminResolver
- admin resolveruserId
- the target user idcreate
- If the stream does not exist and the create flag is set to true, the method create a notification
stream; otherwise, it throws ActivityExeption
.ActivityException
- Activity Exception on failurejava.lang.Iterable<Notification> getNotifications(ResourceResolver resolver, UgcFilter filter, int startIndex, int size)
resolver
- owner resolverfilter
- UgcFilterstartIndex
- index to start fromsize
- size of the resultsetlong getUnreadCount(ResourceResolver resolver, Constraint customConstraint, java.lang.String channelId) throws RepositoryException
resolver
- owner resolverchannelId
- StringcustomConstraint
- ConstraintRepositoryException
- Repository Exceptionjava.lang.Iterable<Resource> getUnreadResource(ResourceResolver resolver, Constraint customConstraint, java.lang.String channelId) throws RepositoryException
RepositoryException
int getUnreadCountConfigured()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"