public class GenericPreferencesService extends java.lang.Object implements IPreferencesService
Constructor and Description |
---|
GenericPreferencesService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
deletePreferencesByName(java.lang.String ticket,
java.lang.String name,
java.lang.String appId)
Deletes the preferences object at the given path + name.
|
org.json.JSONObject |
getPreferencesByName(java.lang.String ticket,
java.lang.String name,
boolean shallow,
java.lang.String appId)
Gets a JSON object of the preferences at the path + name specified;
if shallow is true, we remove any complex keys.
|
org.json.JSONObject |
getPreferencesByName(java.lang.String ticket,
java.lang.String name,
java.lang.String appId)
Gets a JSONObject of the preferences at the path + name specified
|
java.util.Map<java.lang.String,java.lang.Object> |
getPreferencesMapByName(java.lang.String ticket,
java.lang.String name,
boolean latest,
boolean shallow,
long lastModifiedDate,
java.lang.String appId,
javax.servlet.http.HttpServletResponse response)
Returns the preferences found with the given name,
as a hashmap.
|
java.util.Map<java.lang.String,java.lang.Object> |
savePreferencesByName(java.lang.String ticket,
java.io.InputStream jsonStream,
java.lang.String name,
java.lang.String id,
java.lang.String appId)
* Saves the preferences within the given path with the given name.
|
java.util.Map<java.lang.String,java.lang.Object> |
updatePreferencesByName(java.lang.String ticket,
java.io.InputStream jsonStream,
java.lang.String name,
java.lang.String id,
java.lang.String appId,
boolean errorstate)
Updates the preferences within the given path with the given name
|
public java.util.Map<java.lang.String,java.lang.Object> getPreferencesMapByName(java.lang.String ticket, java.lang.String name, boolean latest, boolean shallow, long lastModifiedDate, java.lang.String appId, javax.servlet.http.HttpServletResponse response)
IPreferencesService
getPreferencesMapByName
in interface IPreferencesService
appId
- - This is the application ID for HPI, if multiple/separate config files are desired.public java.util.Map<java.lang.String,java.lang.Object> savePreferencesByName(java.lang.String ticket, java.io.InputStream jsonStream, java.lang.String name, java.lang.String id, java.lang.String appId)
IPreferencesService
savePreferencesByName
in interface IPreferencesService
id
- value to prepend to the "_id" identifier for the JSON ObjectappId
- - This is the application ID for HPI, if multiple/separate config files are desired.public java.util.Map<java.lang.String,java.lang.Object> updatePreferencesByName(java.lang.String ticket, java.io.InputStream jsonStream, java.lang.String name, java.lang.String id, java.lang.String appId, boolean errorstate)
IPreferencesService
updatePreferencesByName
in interface IPreferencesService
appId
- - This is the application ID for HPI, if multiple/separate config files are desired.public java.lang.String deletePreferencesByName(java.lang.String ticket, java.lang.String name, java.lang.String appId)
IPreferencesService
deletePreferencesByName
in interface IPreferencesService
appId
- - This is the application ID for HPI, if multiple/separate config files are desired.public org.json.JSONObject getPreferencesByName(java.lang.String ticket, java.lang.String name, java.lang.String appId) throws java.io.IOException, org.json.JSONException
IPreferencesService
getPreferencesByName
in interface IPreferencesService
appId
- - This is the application ID for HPI, if multiple/separate config files are desired.java.io.IOException
org.json.JSONException
public org.json.JSONObject getPreferencesByName(java.lang.String ticket, java.lang.String name, boolean shallow, java.lang.String appId) throws java.io.IOException, org.json.JSONException
IPreferencesService
getPreferencesByName
in interface IPreferencesService
appId
- - This is the application ID for HPI, if multiple/separate config files are desired.java.io.IOException
org.json.JSONException