public abstract class AbstractSocialNotificationCollection extends BaseSocialComponent implements SocialNotificationCollection
ALL_CHANNEL_ID, DEFAULT_CHANNEL, DEFAULT_MAX_NOTIFICATIONS, PROP_CHANNEL_ID, PROP_MAX_NOTIFICATIONS, PROP_USER_ID, RESOURCE_TYPECSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR| Constructor and Description |
|---|
AbstractSocialNotificationCollection(Resource resource,
ClientUtilities clientUtils,
NotificationManager notificationManager) |
AbstractSocialNotificationCollection(Resource resource,
ClientUtilities clientUtilities,
QueryRequestInfo queryRequestInfo,
NotificationManager notificationManager) |
AbstractSocialNotificationCollection(Resource resource,
ClientUtilities clientUtilities,
QueryRequestInfo queryRequestInfo,
NotificationManager notificationManager,
java.lang.String userId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChannelId()
Get the channel id of this collection
|
java.util.List<java.lang.Object> |
getItems()
Returns a list of children of this collection.
|
PageInfo |
getPageInfo()
Gets information about the pages for this collection.
|
static Constraint |
getPathConstraint(Resource resource) |
int |
getTotalSize()
Get total size of the collection.
|
long |
getUnreadCount()
Get the number of unread notifications
|
int |
getUnreadCountConfigured() |
java.lang.String |
getUserId()
Get the userId
|
void |
setPagination(CollectionPagination pagination)
Set the collection pagination to define how getItems() should be paginated.
|
void |
setSortedOrder(CollectionSortedOrder sortedOrder)
Set the collection sorted order.
|
buildJSONString, getAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONStringpublic AbstractSocialNotificationCollection(Resource resource, ClientUtilities clientUtils, NotificationManager notificationManager)
public AbstractSocialNotificationCollection(Resource resource, ClientUtilities clientUtilities, QueryRequestInfo queryRequestInfo, NotificationManager notificationManager)
public AbstractSocialNotificationCollection(Resource resource, ClientUtilities clientUtilities, QueryRequestInfo queryRequestInfo, NotificationManager notificationManager, java.lang.String userId)
public long getUnreadCount()
SocialNotificationCollectiongetUnreadCount in interface SocialNotificationCollectionpublic int getTotalSize()
SocialCollectionComponentgetTotalSize in interface SocialCollectionComponentpublic void setPagination(CollectionPagination pagination)
SocialCollectionComponentsetPagination in interface SocialCollectionComponentpagination - an object defining the how the list of items should be paginated.public void setSortedOrder(CollectionSortedOrder sortedOrder)
SocialCollectionComponentsetSortedOrder in interface SocialCollectionComponentsortedOrder - the order definition of how the items should be sorted.public java.util.List<java.lang.Object> getItems()
SocialCollectionComponentgetItems in interface SocialCollectionComponentList of children of this collection, or an empty list if no children are present. If the
children is the first level child, then the child is embedded in the list, otherwise, the child url is
included in the list.public java.lang.String getChannelId()
SocialNotificationCollectiongetChannelId in interface SocialNotificationCollectionpublic java.lang.String getUserId()
SocialNotificationCollectiongetUserId in interface SocialNotificationCollectionpublic PageInfo getPageInfo()
SocialNotificationCollectiongetPageInfo in interface SocialNotificationCollectionpublic int getUnreadCountConfigured()
public static Constraint getPathConstraint(Resource resource)
Copyright © 2010 - 2023 Adobe. All Rights Reserved