|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActivityManager
This interface handles social activities
Implement this interface to according to the persistence storage of social data
Method Summary | |
---|---|
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 |
Method Detail |
---|
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 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
void updateActivity(String userId, Activity userActivity) throws SocialDataException
userId
- The userId of the person whose activity to be modifieduserActivity
- The activity to be modified
SocialDataException
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 options
SocialDataException
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 fetched
SocialDataException
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 fetched
SocialDataException
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 deleted
SocialDataException
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 create
SocialDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |