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_TYPE
CSV_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, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
public 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()
SocialNotificationCollection
getUnreadCount
in interface SocialNotificationCollection
public int getTotalSize()
SocialCollectionComponent
getTotalSize
in interface SocialCollectionComponent
public void setPagination(CollectionPagination pagination)
SocialCollectionComponent
setPagination
in interface SocialCollectionComponent
pagination
- an object defining the how the list of items should be paginated.public void setSortedOrder(CollectionSortedOrder sortedOrder)
SocialCollectionComponent
setSortedOrder
in interface SocialCollectionComponent
sortedOrder
- the order definition of how the items should be sorted.public java.util.List<java.lang.Object> getItems()
SocialCollectionComponent
getItems
in interface SocialCollectionComponent
List
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()
SocialNotificationCollection
getChannelId
in interface SocialNotificationCollection
public java.lang.String getUserId()
SocialNotificationCollection
getUserId
in interface SocialNotificationCollection
public PageInfo getPageInfo()
SocialNotificationCollection
getPageInfo
in interface SocialNotificationCollection
public int getUnreadCountConfigured()
public static Constraint getPathConstraint(Resource resource)
Copyright © 2010 - 2020 Adobe. All Rights Reserved