public interface IPreferencesService
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
|
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)
ticket
- name
- latest
- shallow
- path
- lastModifiedDate
- appId
- - This is the application ID for HPI, if multiple/separate config files are desired.response
- org.json.JSONObject getPreferencesByName(java.lang.String ticket, java.lang.String name, java.lang.String appId) throws java.io.IOException, org.json.JSONException
ticket
- name
- appId
- - This is the application ID for HPI, if multiple/separate config files are desired.org.json.JSONException
java.io.IOException
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
ticket
- name
- shallow
- appId
- - This is the application ID for HPI, if multiple/separate config files are desired.java.io.IOException
org.json.JSONException
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)
ticket
- jsonStream
- name
- 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.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)
ticket
- name
- path
- data
- id
- appId
- - This is the application ID for HPI, if multiple/separate config files are desired.java.lang.String deletePreferencesByName(java.lang.String ticket, java.lang.String name, java.lang.String appId)
ticket
- name
- appId
- - This is the application ID for HPI, if multiple/separate config files are desired.