Interface FollowManager


@Exported public interface FollowManager
FollowManager manages all aspects related to follow, such as to follow or unfollow certain object, to return all objects followed by a user, etc.
  • Method Details

    • followObject

      void followObject(String serviceId, ActivityActor actor, ActivityObject followedObject) throws ActivityException
      To set the actor to follow the specified object
      Parameters:
      serviceId - , the service in which the follow happens.
      actor - the actor who follow the specified object
      followedObject - the object to be followed
      Throws:
      ActivityException
    • followObject

      void followObject(ActivityActor actor, ActivityObject followedObject) throws ActivityException
      To set the actor to follow the specified object
      Parameters:
      actor - the actor who follow the specified object
      followedObject - the object to be followed
      Throws:
      ActivityException
    • unfollowObject

      void unfollowObject(String serviceId, ActivityActor actor, ActivityObject followedObject) throws ActivityException
      Unfollow the specified object for an actor.
      Parameters:
      serviceId - , the service in which the follow happens.
      actor - the actor who unfollow the specified object
      followedObject - the object to be unfollowed
      Throws:
      ActivityException
    • unfollowObject

      void unfollowObject(ActivityActor actor, ActivityObject followedObject) throws ActivityException
      Unfollow the specified object for an actor.
      Parameters:
      actor - the actor who unfollow the specified object
      followedObject - the object to be unfollowed
      Throws:
      ActivityException
    • unfollowObject

      void unfollowObject(ActivityObject followedObject) throws ActivityException
      Unfollow the specified object for actors.
      Parameters:
      followedObject - the object to be unfollowed
      Throws:
      ActivityException
    • unfollowObject

      void unfollowObject(String serviceId, ActivityObject followedObject) throws ActivityException
      Unfollow the specified object for actors.
      Parameters:
      serviceId - , the service in which the follow happens.
      followedObject - the object to be unfollowed
      Throws:
      ActivityException
    • unfollowObject

      void unfollowObject(ActivityActor actor, List<ActivityObject> followedObjects, boolean isAsync) throws ActivityException
      Unfollow the specified list of objects for actor.
      Parameters:
      actor - the actor who unfollow the specified object
      followedObjects - the list of objects to be unfollowed
      isAsync - submit as asyncronous process if set this value to true
      Throws:
      ActivityException
    • doesFollowObject

      boolean doesFollowObject(ActivityActor actor, ActivityObject followedObject) throws ActivityException
      Whether the actor follow the specified object
      Parameters:
      actor - the actor to be checked whether he follow the specified object
      followedObject - the object to be checked
      Returns:
      whether the actor follow the specified object
      Throws:
      ActivityException
    • getFollowedObjects

      List<ActivityObject> getFollowedObjects(ActivityActor actor) throws ActivityException
      Return all objects followed by the specified actor
      Parameters:
      actor - the actor whose followed object to be returned
      Returns:
      all objects followed by the specified actor
      Throws:
      ActivityException
    • getFollowedObjects

      List<ActivityObject> getFollowedObjects(ActivityActor actor, boolean objectSecured) throws ActivityException
      Return all objects followed by the specified actor
      Parameters:
      actor - the actor whose followed object to be returned
      objectSecured - If the objectSecured is true, the implemenation of this method should filter those objects that the user has no permission to access.
      Returns:
      all objects followed by the specified actor
      Throws:
      ActivityException