Skip navigation links

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


oracle.webcenter.likes
Interface LikesManager


public interface LikesManager

Method Summary
 LikesSummary createLikesSummary(ActivityObject object, int count)
          Create the LikesSummary.
 void deleteLike(java.lang.String likeId)
          Delete the Like.
 Like getLike(ActivityObject object)
          Retrieve the Like voted by the current user on an object.
 Like getLike(ActivityObject object, java.lang.String votedBy)
          Retrieve the Like voted by a user on an object.
 java.util.List<Like> getLikes(ActivityObject object)
          Retrive the list of Like voted on an object.
 java.util.List<Like> getLikes(ActivityObject object, int startIndex, int itemsPerPage)
          Retrive the list of Like voted on an object.
 LikesSummary getLikesSummary(ActivityObject object)
          Retrieve the LikesSummary.
 Like like(ActivityObject object, oracle.webcenter.framework.service.Scope scope)
          Express like on an object by the current user;
 Like like(ActivityObject object, oracle.webcenter.framework.service.Scope scope, java.lang.String activityId)
          Express like on an object by the current user;
 Like like(ActivityObject object, java.lang.String votedBy, oracle.webcenter.framework.service.Scope scope)
          Express like on an object by the a user;
 Like like(ActivityObject object, java.lang.String votedBy, oracle.webcenter.framework.service.Scope scope, java.lang.String activityId)
          Express like on an object by the a user;
 void unlike(ActivityObject object)
          Reverse the like on an object by the current user.
 void unlike(ActivityObject object, java.lang.String votedBy)
          Reverse the like on an object by the user.

 

Method Detail

getLikes

java.util.List<Like> getLikes(ActivityObject object)
                              throws LikesException
Retrive the list of Like voted on an object.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String)on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
Returns:
The list of Like.
Throws:
LikesException

getLikes

java.util.List<Like> getLikes(ActivityObject object,
                              int startIndex,
                              int itemsPerPage)
                              throws LikesException
Retrive the list of Like voted on an object.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String)on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
startIndex - The start index for the query (1 based)
itemsPerPage - The number of items to return
Returns:
The list of Like.
Throws:
LikesException

getLike

Like getLike(ActivityObject object,
             java.lang.String votedBy)
             throws LikesException
Retrieve the Like voted by a user on an object.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
votedBy - The user ID who voted.
Returns:
The Like
Throws:
LikesException

getLike

Like getLike(ActivityObject object)
             throws LikesException
Retrieve the Like voted by the current user on an object.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
Returns:
The Like
Throws:
LikesException

like

Like like(ActivityObject object,
          java.lang.String votedBy,
          oracle.webcenter.framework.service.Scope scope,
          java.lang.String activityId)
          throws LikesException
Express like on an object by the a user;
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
votedBy - The user who like the object.
scope - The WebCenter scope to which the object belongs
activityId - An optional activity ID representing the original activity which led the user to like this object. The timestamp of the original activity is advanced to move the activity to the top of the user's activity stream.
Returns:
The Like
Throws:
LikesException

like

Like like(ActivityObject object,
          java.lang.String votedBy,
          oracle.webcenter.framework.service.Scope scope)
          throws LikesException
Express like on an object by the a user;
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
votedBy - The user who like the object.
scope - The WebCenter scope to which the object belongs
Returns:
The Like
Throws:
LikesException

like

Like like(ActivityObject object,
          oracle.webcenter.framework.service.Scope scope)
          throws LikesException
Express like on an object by the current user;
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
scope - The WebCenter scope to which the object belongs.
Returns:
The Like being creatd.
Throws:
LikesException

like

Like like(ActivityObject object,
          oracle.webcenter.framework.service.Scope scope,
          java.lang.String activityId)
          throws LikesException
Express like on an object by the current user;
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
scope - The WebCenter scope to which the object belongs.
activityId - An optional activity ID representing the original activity which led the user to like this object. The timestamp of the original activity is advanced to move the activity to the top of the user's activity stream.
Returns:
The Like being creatd.
Throws:
LikesException

unlike

void unlike(ActivityObject object,
            java.lang.String votedBy)
            throws LikesException
Reverse the like on an object by the user.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
votedBy - The user who unlike this object.
Throws:
LikesException

unlike

void unlike(ActivityObject object)
            throws LikesException
Reverse the like on an object by the current user.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents. Reverse the like on an object by the current user.
Throws:
LikesException

deleteLike

void deleteLike(java.lang.String likeId)
                throws LikesException
Delete the Like.
Parameters:
likeId - The like ID.
Throws:
LikesException

createLikesSummary

LikesSummary createLikesSummary(ActivityObject object,
                                int count)
                                throws LikesException
Create the LikesSummary.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
count - The likes count.
Returns:
The LikesSummary
Throws:
LikesException

getLikesSummary

LikesSummary getLikesSummary(ActivityObject object)
                             throws LikesException
Retrieve the LikesSummary.
Parameters:
object - Object carrying information identifying the WebCenter object for which likes are to be retreived. The key properties needed to be specified on it are the service ID, the object type, and the object ID. It can be constructed by calling ActivityStreamingService.createObject(java.lang.String, oracle.webcenter.framework.service.ServiceObjectType, java.lang.String) passing in the appropriate object ID and object type, and then calling ActivityObject.setServiceID(java.lang.String) on it. The display name on the ActivityObject can be any non-null non-empty string, and need not even be the correct display name of the actual WebCenter object it represents.
Returns:
The LikesSummary
Throws:
LikesException

Skip navigation links

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


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