public interface FollowManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesFollowObject(ActivityActor actor,
ActivityObject followedObject)
Whether the actor follow the specified object
|
void |
followObject(ActivityActor actor,
ActivityObject followedObject)
To set the actor to follow the specified object
|
void |
followObject(java.lang.String serviceId,
ActivityActor actor,
ActivityObject followedObject)
To set the actor to follow the specified object
|
java.util.List<ActivityObject> |
getFollowedObjects(ActivityActor actor)
Return all objects followed by the specified actor
|
java.util.List<ActivityObject> |
getFollowedObjects(ActivityActor actor,
boolean objectSecured)
Return all objects followed by the specified actor
|
void |
unfollowObject(ActivityActor actor,
ActivityObject followedObject)
Unfollow the specified object for an actor.
|
void |
unfollowObject(ActivityActor actor,
java.util.List<ActivityObject> followedObjects,
boolean isAsync)
Unfollow the specified list of objects for actor.
|
void |
unfollowObject(ActivityObject followedObject)
Unfollow the specified object for actors.
|
void |
unfollowObject(java.lang.String serviceId,
ActivityActor actor,
ActivityObject followedObject)
Unfollow the specified object for an actor.
|
void |
unfollowObject(java.lang.String serviceId,
ActivityObject followedObject)
Unfollow the specified object for actors.
|
void followObject(java.lang.String serviceId,
ActivityActor actor,
ActivityObject followedObject)
throws ActivityException
serviceId, - the service in which the follow happens.actor - the actor who follow the specified objectfollowedObject - the object to be followedActivityExceptionvoid followObject(ActivityActor actor, ActivityObject followedObject) throws ActivityException
actor - the actor who follow the specified objectfollowedObject - the object to be followedActivityExceptionvoid unfollowObject(java.lang.String serviceId,
ActivityActor actor,
ActivityObject followedObject)
throws ActivityException
serviceId, - the service in which the follow happens.actor - the actor who unfollow the specified objectfollowedObject - the object to be unfollowedActivityExceptionvoid unfollowObject(ActivityActor actor, ActivityObject followedObject) throws ActivityException
actor - the actor who unfollow the specified objectfollowedObject - the object to be unfollowedActivityExceptionvoid unfollowObject(ActivityObject followedObject) throws ActivityException
followedObject - the object to be unfollowedActivityExceptionvoid unfollowObject(java.lang.String serviceId,
ActivityObject followedObject)
throws ActivityException
serviceId, - the service in which the follow happens.followedObject - the object to be unfollowedActivityExceptionvoid unfollowObject(ActivityActor actor, java.util.List<ActivityObject> followedObjects, boolean isAsync) throws ActivityException
actor - the actor who unfollow the specified objectfollowedObjects - the list of objects to be unfollowedisAsync - submit as asyncronous process if set this value to trueActivityExceptionboolean doesFollowObject(ActivityActor actor, ActivityObject followedObject) throws ActivityException
actor - the actor to be checked whether he follow the specified objectfollowedObject - the object to be checkedActivityExceptionjava.util.List<ActivityObject> getFollowedObjects(ActivityActor actor) throws ActivityException
actor - the actor whose followed object to be returnedActivityExceptionjava.util.List<ActivityObject> getFollowedObjects(ActivityActor actor, boolean objectSecured) throws ActivityException
actor - the actor whose followed object to be returnedobjectSecured - If the objectSecured is true, the implemenation of this
method should filter those objects that the user has no permission to access.ActivityException