|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
java.util.List<Like> getLikes(ActivityObject object) throws LikesException
Like
voted on an object.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.Like
.LikesException
java.util.List<Like> getLikes(ActivityObject object, int startIndex, int itemsPerPage) throws LikesException
Like
voted on an object.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 returnLike
.LikesException
Like getLike(ActivityObject object, java.lang.String votedBy) throws LikesException
Like
voted by a user on an object.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.Like
LikesException
Like getLike(ActivityObject object) throws LikesException
Like
voted by the current user on an object.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.Like
LikesException
Like like(ActivityObject object, java.lang.String votedBy, oracle.webcenter.framework.service.Scope scope, java.lang.String activityId) throws LikesException
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 belongsactivityId
- 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.Like
LikesException
Like like(ActivityObject object, java.lang.String votedBy, oracle.webcenter.framework.service.Scope scope) throws LikesException
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 belongsLike
LikesException
Like like(ActivityObject object, oracle.webcenter.framework.service.Scope scope) throws LikesException
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.Like
being creatd.LikesException
Like like(ActivityObject object, oracle.webcenter.framework.service.Scope scope, java.lang.String activityId) throws LikesException
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.Like
being creatd.LikesException
void unlike(ActivityObject object, java.lang.String votedBy) throws LikesException
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.LikesException
void unlike(ActivityObject object) throws LikesException
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.LikesException
void deleteLike(java.lang.String likeId) throws LikesException
Like
.likeId
- The like ID.LikesException
LikesSummary createLikesSummary(ActivityObject object, int count) throws LikesException
LikesSummary
.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.LikesSummary
LikesException
LikesSummary getLikesSummary(ActivityObject object) throws LikesException
LikesSummary
.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.LikesSummary
LikesException
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |