public class AbstractSubscriptionCollection extends BaseSocialComponent implements SubscriptionCollection
1. The userId is obtained from the resource Following.PROP_USERID property; If this property does not
exist, the userId is obtained from the request's session user id.
2. The followedId is obtained from the resource Following.PROP_FOLLOWEDID property; If this property does
not exist, the userId is obtained from the resource name
RESOURCE_TYPECSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR| Constructor and Description |
|---|
AbstractSubscriptionCollection(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo q,
java.util.List<Subscription> subscriptions)
Construct a collection from the specified subscriptions
|
AbstractSubscriptionCollection(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo q,
SubscriptionManager subscriptionManager) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOwner()
Get the owner of the subscription
|
java.lang.String |
getPath()
Get the path of this subscription
|
java.util.Map<java.lang.String,SubscriptionStatus> |
getStates()
Get the subscription status of this collection
|
java.lang.String |
getSubscribedId()
Get the id the user wants to subscribe to.
|
java.lang.String[] |
getTypes()
Get the list of subscription types
|
boolean |
isSubscribed()
Check if there is a selection in this collection
|
boolean |
isUserLoggedIn()
Check if there is a login session
|
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 AbstractSubscriptionCollection(Resource resource, ClientUtilities clientUtils, QueryRequestInfo q, SubscriptionManager subscriptionManager)
public AbstractSubscriptionCollection(Resource resource, ClientUtilities clientUtils, QueryRequestInfo q, java.util.List<Subscription> subscriptions)
resource - ResourceclientUtils - ClientUtilitiesq - QueryRequestInfosubscriptions - Listpublic java.lang.String getSubscribedId()
SubscriptionCollectiongetSubscribedId in interface SubscriptionCollectionpublic java.lang.String getOwner()
SubscriptionCollectiongetOwner in interface SubscriptionCollectionpublic java.lang.String getPath()
SubscriptionCollectiongetPath in interface SubscriptionCollectionpublic java.lang.String[] getTypes()
SubscriptionCollectiongetTypes in interface SubscriptionCollectionpublic java.util.Map<java.lang.String,SubscriptionStatus> getStates()
SubscriptionCollectiongetStates in interface SubscriptionCollectionpublic boolean isSubscribed()
SubscriptionCollectionisSubscribed in interface SubscriptionCollectionpublic boolean isUserLoggedIn()
SubscriptionCollectionisUserLoggedIn in interface SubscriptionCollectionCopyright © 2010 - 2023 Adobe. All Rights Reserved