public class ActivityStreamsJsonDbService extends Object implements ActivityStreamService
| Constructor and Description |
|---|
ActivityStreamsJsonDbService(JsonDbOpensocialService jsonDb,
BeanConverter converter)
Create a new ActivityStreamsJsonDbService instance via Guice injection
|
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
createActivityEntry(UserId userId,
GroupId groupId,
String appId,
Set<String> fields,
ActivityEntry activityEntry,
SecurityToken token)
Creates the passed in activity for the passed in user and group.
|
Future<Void> |
deleteActivityEntries(UserId userId,
GroupId groupId,
String appId,
Set<String> activityIds,
SecurityToken token)
Deletes the activity for the passed in user and group that corresponds to the activityId.
|
Future<RestfulCollection<ActivityEntry>> |
getActivityEntries(Set<UserId> userIds,
GroupId groupId,
String appId,
Set<String> fields,
CollectionOptions options,
SecurityToken token)
Returns a list of activities that correspond to the passed in users and group.
|
Future<RestfulCollection<ActivityEntry>> |
getActivityEntries(UserId userId,
GroupId groupId,
String appId,
Set<String> fields,
CollectionOptions options,
Set<String> activityIds,
SecurityToken token)
Returns a set of activities for the passed in user and group that corresponds to a list of
activityIds.
|
Future<ActivityEntry> |
getActivityEntry(UserId userId,
GroupId groupId,
String appId,
Set<String> fields,
String activityId,
SecurityToken token)
Returns an activity for the passed in user and group that corresponds to a single
activityId.
|
@Inject public ActivityStreamsJsonDbService(JsonDbOpensocialService jsonDb, BeanConverter converter)
jsonDb - a JsonDbOpensocialService object.converter - a BeanConverter object
annotated with "shindig.bean.converter.json".public Future<Void> createActivityEntry(UserId userId, GroupId groupId, String appId, Set<String> fields, ActivityEntry activityEntry, SecurityToken token) throws ProtocolException
createActivityEntry in interface ActivityStreamServiceuserId - The id of the person to create the activity for.groupId - The group.appId - The app id.fields - The fields to return.activityEntry - The activity to create.token - A valid SecurityTokenProtocolException - if any.public Future<Void> deleteActivityEntries(UserId userId, GroupId groupId, String appId, Set<String> activityIds, SecurityToken token) throws ProtocolException
deleteActivityEntries in interface ActivityStreamServiceuserId - The user.groupId - The group.appId - The app id.activityIds - A list of activity ids to delete.token - A valid SecurityToken.ProtocolException - if any.public Future<ActivityEntry> getActivityEntry(UserId userId, GroupId groupId, String appId, Set<String> fields, String activityId, SecurityToken token) throws ProtocolException
getActivityEntry in interface ActivityStreamServiceuserId - The set of ids of the people to fetch activities for.groupId - Indicates whether to fetch activities for a group.appId - The app id.fields - The fields to return. Empty set implies allactivityId - The activity id to fetch.token - A valid SecurityTokenProtocolException - if any.public Future<RestfulCollection<ActivityEntry>> getActivityEntries(Set<UserId> userIds, GroupId groupId, String appId, Set<String> fields, CollectionOptions options, SecurityToken token) throws ProtocolException
getActivityEntries in interface ActivityStreamServiceuserIds - The set of ids of the people to fetch activities for.groupId - Indicates whether to fetch activities for a group.appId - The app id.fields - The fields to return. Empty set implies alloptions - The sorting/filtering/pagination optionstoken - A valid SecurityTokenProtocolException - if any.public Future<RestfulCollection<ActivityEntry>> getActivityEntries(UserId userId, GroupId groupId, String appId, Set<String> fields, CollectionOptions options, Set<String> activityIds, SecurityToken token) throws ProtocolException
getActivityEntries in interface ActivityStreamServiceuserId - The set of ids of the people to fetch activities for.groupId - Indicates whether to fetch activities for a group.appId - The app id.fields - The fields to return. Empty set implies alloptions - The sorting/filtering/pagination optionsactivityIds - The set of activity ids to fetch.token - A valid SecurityTokenProtocolException - if any.Copyright © 2007-2012. All Rights Reserved.