@Component(value="appDataService") public class PluginSettingsAppDataService extends Object implements AppDataService
AppDataService
implementation backed by SAL's PluginSettings
Constructor and Description |
---|
PluginSettingsAppDataService(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) |
Modifier and Type | Method and Description |
---|---|
void |
deletePersonData(PersonId personId,
AppId appId,
OpenSocialRequestContext requestContext)
Delete all application data for the specified person and all fields
|
void |
deletePersonData(PersonId personId,
AppId appId,
Set<String> fields,
OpenSocialRequestContext requestContext)
Delete all application data for the specified person and fields
|
Map<PersonId,Map<String,String>> |
getPeopleData(Set<PersonId> people,
AppId appId,
OpenSocialRequestContext requestContext)
Fetch the application data for the specified people and all fields
|
Map<PersonId,Map<String,String>> |
getPeopleData(Set<PersonId> people,
AppId appId,
Set<String> fields,
OpenSocialRequestContext requestContext)
Fetch the application data for the specified people
|
void |
updatePersonData(PersonId personId,
AppId appId,
Map<String,String> values,
OpenSocialRequestContext requestContext)
Update (add or modify) application data for the specified person with the specified field / value pairs.
|
public PluginSettingsAppDataService(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
public Map<PersonId,Map<String,String>> getPeopleData(Set<PersonId> people, AppId appId, Set<String> fields, OpenSocialRequestContext requestContext) throws AppDataServiceException
AppDataService
getPeopleData
in interface AppDataService
people
- The people whose data is being requestedappId
- The app id for the gadget making this requestfields
- The requested fieldsrequestContext
- The request contextAppDataServiceException
- if there is a problem while performing this operationpublic Map<PersonId,Map<String,String>> getPeopleData(Set<PersonId> people, AppId appId, OpenSocialRequestContext requestContext) throws AppDataServiceException
AppDataService
getPeopleData
in interface AppDataService
people
- The people whose data is being requestedappId
- The app id for the gadget making this requestrequestContext
- The request contextAppDataServiceException
public void deletePersonData(PersonId personId, AppId appId, Set<String> fields, OpenSocialRequestContext requestContext) throws AppDataServiceException
AppDataService
deletePersonData
in interface AppDataService
personId
- The person whose data is being deletedappId
- The app id for the gadget making this requestfields
- The requested fieldsrequestContext
- The request contextAppDataServiceException
- if there is a problem while performing this operationpublic void deletePersonData(PersonId personId, AppId appId, OpenSocialRequestContext requestContext) throws AppDataServiceException
AppDataService
deletePersonData
in interface AppDataService
personId
- The person whose data is being deletedappId
- The app id for the gadget making this requestrequestContext
- The request contextAppDataServiceException
- if there is a problem while performing this operationpublic void updatePersonData(PersonId personId, AppId appId, Map<String,String> values, OpenSocialRequestContext requestContext) throws AppDataServiceException
AppDataService
updatePersonData
in interface AppDataService
personId
- The person whose data is being updatedappId
- The app id for the gadget making this requestvalues
- The new values for the fields to take onrequestContext
- The request contextAppDataServiceException
- if there is a problem while performing this operationCopyright © 2018 Atlassian. All rights reserved.