public interface ActivityManager
Modifier and Type | Method and Description |
---|---|
void |
createActivity(String userId,
String groupId,
String appId,
Set<String> fields,
Activity activity)
Creates an Activity object for the given person using the given details
|
void |
deleteActivities(String userId,
String groupId,
String appId,
Set<String> activityIds)
Deletes the activities for the given activityIds
|
void |
deleteActivity(String userId,
String activityId,
String appId)
Removes the activity of the given userId
|
Activity[] |
getActivities(String[] userIds,
String groupId,
String appId,
Set<String> fields,
FilterOptions options)
Returns an array of Activity objects to the passed parameters
|
Activity[] |
getActivities(String userId,
String groupId,
String appId,
Set<String> fields,
FilterOptions options,
String[] activityIds)
Returns an array of Activity objects to the passed activityIds
|
Activity |
getActivity(String userId,
String groupId,
String appId,
Set<String> fields,
String activityId)
Returns the Activity object for the given user
|
void |
saveActivity(String userId,
Activity userActivity)
Persists the activity for the given userId
|
void |
updateActivity(String userId,
Activity userActivity)
Updates the activity of the given userId
|
void saveActivity(String userId, Activity userActivity) throws SocialDataException
userId
- The userId of the person whose activity to be storeduserActivity
- The Activity object of the user to be storedSocialDataException
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 activitySocialDataException
void updateActivity(String userId, Activity userActivity) throws SocialDataException
userId
- The userId of the person whose activity to be modifieduserActivity
- The activity to be modifiedSocialDataException
Activity[] getActivities(String[] userIds, String groupId, String appId, Set<String> fields, FilterOptions options) throws SocialDataException
userIds
- The set of userIds for which activities to be fetchedgroupId
- The groupIdappId
- The appId of the activities to be fetchedfields
- The fields to return. Empty set implies alloptions
- The sorting/filtering/pagination optionsSocialDataException
Activity[] getActivities(String userId, String groupId, String appId, Set<String> fields, FilterOptions options, String[] activityIds) throws SocialDataException
userId
- The userId of the person whose activity to be fetchedgroupId
- The groupIdappId
- The appId of the activities to be fetchedfields
- The fields to return. Empty set implies alloptions
- The sorting/filtering/pagination optionsactivityIds
- The ids of the activities to be fetchedSocialDataException
Activity getActivity(String userId, String groupId, String appId, Set<String> fields, String activityId) throws SocialDataException
userId
- The userId of the person whose activity to be fetchedgroupId
- The groupIdappId
- The appId of the activityfields
- The fields to return. Empty set implies allactivityId
- The activityId of the activity to be fetchedSocialDataException
void deleteActivities(String userId, String groupId, String appId, Set<String> activityIds) throws SocialDataException
userId
- The userId of the person whose activities to be deletedgroupId
- The groupIdappId
- The appIdactivityIds
- The activityIds to be deletedSocialDataException
void createActivity(String userId, String groupId, String appId, Set<String> fields, Activity activity) throws SocialDataException
userId
- The userId of the person to create the activity forgroupId
- The groupIdappId
- The appId of the activityfields
- Fields of the activity to be createdactivity
- The activity to createSocialDataException
Copyright © 2023 WSO2. All rights reserved.