public class AbstractFollowing extends BaseSocialComponent implements MutableFollowing
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
PROP_FOLLOWEDID, PROP_USERID, RESOURCE_TYPECSV_SELECTOR, DEFAULT_SELECTOR, INDEX_SELECTOR, PROP_REFERER, QUERY_SELECTOR, TRANSLATE_SELECTOR| Constructor and Description |
|---|
AbstractFollowing(Resource resource,
ClientUtilities clientUtils,
QueryRequestInfo q) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
edge()
Get the relationship representing this instance
|
Vertex |
followedNode()
Get the followed user graph node
|
java.lang.String |
getFollowedId()
Get the followed Id.
|
java.lang.String |
getFollowedResourceType()
Get the followed Resource Type
|
boolean |
getIsFollowed()
Check the follow state
|
boolean |
getIsFollowedUser()
Check if the followed item is a user
|
boolean |
getMayFollow()
Indicate whether the current user can follow the specify following user.
|
User |
getUser()
Get the user
|
void |
setFollowingState(boolean newState)
Toggle the state of the following instance.
|
SocialGraph |
socialGraph()
Get socialGraph of this instance.
|
Vertex |
userNode()
Get the user social graph node
|
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 AbstractFollowing(Resource resource, ClientUtilities clientUtils, QueryRequestInfo q)
public boolean getIsFollowed()
FollowinggetIsFollowed in interface Followingpublic SocialGraph socialGraph()
FollowingsocialGraph in interface Followingpublic Edge edge()
Followingpublic Vertex userNode()
Followingpublic Vertex followedNode()
FollowingfollowedNode in interface Followingpublic boolean getIsFollowedUser()
FollowinggetIsFollowedUser in interface Followingpublic boolean getMayFollow()
FollowinggetMayFollow in interface Followingpublic void setFollowingState(boolean newState)
MutableFollowingsetFollowingState in interface MutableFollowingnewState - the new state of followwingpublic java.lang.String getFollowedId()
FollowinggetFollowedId in interface Followingpublic java.lang.String getFollowedResourceType()
FollowinggetFollowedResourceType in interface FollowingCopyright © 2010 - 2023 Adobe. All Rights Reserved