org.wso2.carbon.registry.social.api.appdata
Interface AppDataManager


public interface AppDataManager

This interface handles appData related to people

Implement this interface to according to the persistence storage of social data


Method Summary
 void deletePersonData(String userId, String groupId, String appId, Set<String> fields)
          Deletes data for the specified user and group
 Map<String,Map<String,String>> getPersonData(String[] userIds, String groupId, String appId, Set<String> fields)
          Retrieves app data for the specified user list and group
 void savePersonData(String userId, String appId, Map<String,String> values)
          Save app data for the specified user with the given values
 void updatePersonData(String userId, String groupId, String appId, Set<String> fields, Map<String,String> values)
          Updates app data for the specified user and group with the new values
 

Method Detail

getPersonData

Map<String,Map<String,String>> getPersonData(String[] userIds,
                                             String groupId,
                                             String appId,
                                             Set<String> fields)
                                             throws SocialDataException
Retrieves app data for the specified user list and group

Parameters:
userIds - A set of userIds whose app data to be retrieved
groupId - The group
appId - The app
fields - The fields to return
Returns:
A collection of appData for the given user list and group
Throws:
SocialDataException

deletePersonData

void deletePersonData(String userId,
                      String groupId,
                      String appId,
                      Set<String> fields)
                      throws SocialDataException
Deletes data for the specified user and group

Parameters:
userId - The userId of the person whose app data to be removed
groupId - The group
appId - The app
fields - The fields to delete. Empty implies all
Throws:
SocialDataException

updatePersonData

void updatePersonData(String userId,
                      String groupId,
                      String appId,
                      Set<String> fields,
                      Map<String,String> values)
                      throws SocialDataException
Updates app data for the specified user and group with the new values

Parameters:
userId - The userId of the person whose app data to be modified
groupId - The group
appId - The app
fields - The fields to update. Empty implies all
values - The new values to set
Throws:
SocialDataException

savePersonData

void savePersonData(String userId,
                    String appId,
                    Map<String,String> values)
                    throws SocialDataException
Save app data for the specified user with the given values

Parameters:
userId - The userId of the person whose app data to be modified
appId - The app
values - The new values to set
Throws:
SocialDataException


Copyright © 2012 WSO2 Inc. All Rights Reserved.