|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActivityStreamManager
Method Summary | |
---|---|
void |
createActivityEntry(String userId,
String groupId,
String appId,
Set<String> fields,
ActivityEntry activity)
Creates the passed in activity for the passed in user and group. |
void |
deleteActivity(String userId,
String activityId,
String appId)
Removes the activity of the given userId |
void |
deleteActivityEntries(String userId,
String groupId,
String appId,
Set<String> activityIds)
Deletes the activity for the passed in user and group that corresponds to the activityId. |
ActivityEntry[] |
getActivityEntries(String[] userIds,
String groupId,
String appId,
Set<String> fields,
FilterOptions options)
Returns a list of activities that correspond to the passed in users and group. |
ActivityEntry[] |
getActivityEntries(String userId,
String groupId,
String appId,
Set<String> fields,
FilterOptions options,
String[] activityIds)
Returns a set of activities for the passed in user and group that corresponds to a list of activityIds. |
ActivityEntry |
getActivityEntry(String userId,
String groupId,
String appId,
Set<String> fields,
String activityId)
Returns an activity for the passed in user and group that corresponds to a single activityId. |
void |
saveActivity(String userId,
ActivityEntry activity)
Persists the activity for the given userId |
void |
updateActivityEntry(String userId,
ActivityEntry activity)
Updates the specified Activity. |
Method Detail |
---|
void saveActivity(String userId, ActivityEntry activity) throws SocialDataException
userId
- The userId of the person whose activity to be storedactivity
- The Activity object of the user to be stored
SocialDataException
void deleteActivity(String userId, String activityId, String appId) throws SocialDataException
userId
- The userId of the person whose activity to be removedactivityId
- The id of the activity to be removedappId
- The appId of the activity
SocialDataException
ActivityEntry[] getActivityEntries(String[] userIds, String groupId, String appId, Set<String> fields, FilterOptions options) throws SocialDataException
userIds
- 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 options
SocialDataException
- if any.ActivityEntry[] getActivityEntries(String userId, String groupId, String appId, Set<String> fields, FilterOptions options, String[] activityIds) throws SocialDataException
userId
- 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.
SocialDataException
- if any.ActivityEntry getActivityEntry(String userId, String groupId, String appId, Set<String> fields, String activityId) throws SocialDataException
userId
- 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.
SocialDataException
- if any.void deleteActivityEntries(String userId, String groupId, String appId, Set<String> activityIds) throws SocialDataException
userId
- The user.groupId
- The group.appId
- The app id.activityIds
- A list of activity ids to delete.
SocialDataException
- if any.void updateActivityEntry(String userId, ActivityEntry activity) throws SocialDataException
userId
- The id of the person to update the activity foractivity
- The updated activity
SocialDataException
- if anyvoid createActivityEntry(String userId, String groupId, String appId, Set<String> fields, ActivityEntry activity) throws SocialDataException
userId
- The id of the person to create the activity for.groupId
- The group.appId
- The app id.fields
- The fields to return.activity
- The activity to create.
SocialDataException
- if any.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |