Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


oracle.webcenter.activitystreaming
Interface FollowManager


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 Summary
 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(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.

 

Method Detail

followObject

void followObject(java.lang.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(java.lang.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(java.lang.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

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

java.util.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

java.util.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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.