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_TYPE
CSV_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, toJSONString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsMap, getFriendlyUrl, getId, getParentComponent, getProperties, getProperty, getProperty, getResource, getResourceType, getSourceComponent, getUrl, toJSONString
public 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()
SubscriptionCollection
getSubscribedId
in interface SubscriptionCollection
public java.lang.String getOwner()
SubscriptionCollection
getOwner
in interface SubscriptionCollection
public java.lang.String getPath()
SubscriptionCollection
getPath
in interface SubscriptionCollection
public java.lang.String[] getTypes()
SubscriptionCollection
getTypes
in interface SubscriptionCollection
public java.util.Map<java.lang.String,SubscriptionStatus> getStates()
SubscriptionCollection
getStates
in interface SubscriptionCollection
public boolean isSubscribed()
SubscriptionCollection
isSubscribed
in interface SubscriptionCollection
public boolean isUserLoggedIn()
SubscriptionCollection
isUserLoggedIn
in interface SubscriptionCollection
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"