Deprecated. since 3.0, Use com.sap.mobile.lib.configuration.Preferences
All members of SDMPreferences, including inherited members.
VariablesModifier and Type | Variable | Description |
---|---|---|
public static String | DEFAULT_PARSER_STRING_SUBFOLDER_NAME | Default subfolder for SDMParser. |
public static String | DEFAULT_PERSISTENCE_STRING_SUBFOLDER_NAME | Default subfolder for SDMPersistence. |
protected Hashtable< String, Object > | defaultPreferences | Store for default Preferences. |
protected ISDMLogger | logger | |
protected int | logLevel | |
protected Hashtable< String, Set< ISDMPreferenceChangeListener > > | preferenceChangeListeners | Listeners for Preference changes. |
protected static final String | SDMPREFERENCES |
Modifier and Type | Constructor | Description |
---|---|---|
public | SDMPreferences(Context, ISDMLogger) | Public constructor. |
Modifier and Type | Method | Description |
---|---|---|
protected void | addDefaultPreferences() | Can be used to add application specific default preferences. |
protected Object | confirmPreference(String) | Validates changed preference if it can be changed. |
public boolean | containsPreference(String) | Checks the existence of the given preference. |
public Boolean | getBooleanPreference(String) | Returns the value of the given preference or null if there is no preference with the given key. |
public Float | getFloatPreference(String) | Returns the value of the given preference or null if there is no preference with the given key. |
public Integer | getIntPreference(String) | Returns the value of the given preference or null if there is no preference with the given key. |
public Long | getLongPreference(String) | Returns the value of the given preference or null if there is no preference with the given key. |
private< T > T | getPreference(String) | |
public String | getStringPreference(String) | Returns the value of the given preference or null if there is no preference with the given key. |
public void | onSharedPreferenceChanged(SharedPreferences, final String) | |
public synchronized void | registerPreferenceChangeListener(String, ISDMPreferenceChangeListener) | You can register a class implementing the ISDMPreferenceChangeListener interface for the change of a preference with the given key. |
public void | removePreference(String) | Removes the preferences with the given key. |
public void | resetPreference(String) | Resets the preference's value to it's default value or to null if there is no default value for the given preference. |
public void | setBooleanPreference(String, boolean) | Sets and validates and persists the value of the preferences with the given type. |
public void | setFloatPreference(String, float) | Sets and validates and persists the value of the preferences with the given type. |
public void | setIntPreference(String, int) | Sets and validates and persists the value of the preferences with the given type. |
public void | setLongPreference(String, long) | Sets and validates and persists the value of the preferences with the given type. |
public void | setStringPreference(String, String) | Sets and validates and persists the value of the preferences with the given type. |
public synchronized void | unRegisterPreferenceChangeListener(String, ISDMPreferenceChangeListener) | You can unregister a change listener. |
Modifier and Type | Member | Description |
---|---|---|
public static final String | BUSINESSTRANSACTION_ENABLED | Preference for the indicator to decide if SAP passport should be enabled or not. |
public static final String | BYPASS_PROXY | Preference for the indicator to decide which URLs need the proxy bypassed. |
public static final String | SAP_APPLICATIONID_HEADER_VALUE | Preference for application ID (used in request headers) |
public static final String | SAPPASSPORT_ENABLED | Preference for the indicator to decide if SAP passport should be enabled or not. |
public static final String | SDM_CACHE_CAPACITY | Preference for the maximum number of documents can be stored in cache. |
public static final String | SDM_CACHE_MAX_SEARCH_RESULTS | Preference for the maximum entries that can be returned as a result of a search. |
public static final String | SDM_CACHE_PARSER_SEARCH_ATTRIBUTE | Preference for the name of the XML attribute that should be used to decide if a property is searchable. |
public static final String | SDM_CACHE_SEARCH_ATTRIBUTE_XMLNS | Preference for the XML namespace URI of the XML attribute that should be used to decide if a property is searchable. |
public static final String | SDM_CONNECTIVITY_CONNTIMEOUT | Preference for connection time out. |
public static final String | SDM_CONNECTIVITY_HANDLER_CLASS_NAME | Preference for full name (including package) of the class that should be initialized as connectivity handler. |
public static final String | SDM_CONNECTIVITY_HTTP_PORT | Preference for default HTTP port. |
public static final String | SDM_CONNECTIVITY_HTTPS_PORT | Preference for default HTTPS port. |
public static final String | SDM_CONNECTIVITY_PROXY_HOST | Preference for proxy host if there is a proxy should be used. |
public static final String | SDM_CONNECTIVITY_PROXY_PORT | Preference for proxy post if there is a proxy should be used. |
public static final String | SDM_CONNECTIVITY_SCONNTIMEOUT | Preference for socket connection time out. |
public static final String | SDM_LOG_LEVEL | Preference for the current log severity. |
public static final String | SDM_PARSER_FOLDER_PATH | Preference for the default folder where Parser related information can be persisted Should not point to a folder that can be removed outside of the application. |
public static final String | SDM_PERSISTENCE_BYTE_BUFFER_SIZE | Preference for the size of the buffer that is used during persistence Should be changed only in case of low memory available. |
public static final String | SDM_PERSISTENCE_CIPHER_TRANSFORMATION | Preference for the default cipher transformation algorithm Should be matched with algorithm of the Secure Key generation used for data encryption. |
public static final String | SDM_PERSISTENCE_FOLDER_PATH | Preference for the default folder where data should be persisted. |
public static final String | SDM_PERSISTENCE_SECUREMODE | Preference for indicator if persisted data should be encrypted. |
Modifier and Type | Member | Description |
---|---|---|
public static final boolean | DEFAULT_BUSINESSTRANSACTION_ENABLED | SAP Business Transaction XML enablement default setting. |
public static final String | DEFAULT_CIPHER_TRANSFORMATION | Default cipher transformation. |
public static final int | DEFAULT_CONNECTION_TIMEOUT | Default connection timeout. |
public static final String | DEFAULT_HANDLER_CLASS_NAME | Default handler class. |
public static final int | DEFAULT_HTTP_PORT | Default HTTP port. |
public static final int | DEFAULT_HTTPS_PORT | Default HTTPS port. |
public static final int | DEFAULT_LOG_LEVEL | Default log level. |
public static final boolean | DEFAULT_PERSISTENCE_BOOLEAN_SECUREMODE | Default security mode. |
public static final int | DEFAULT_PERSISTENCE_BYTE_BUFFER_SIZE | Default buffer size. |
public static final String | DEFAULT_PROXY_HOST | Default proxy host. |
public static final int | DEFAULT_PROXY_PORT | Default proxy port. |
public static final String | DEFAULT_SAP_APPLICATIONID_HEADER_VALUE | Default application ID. |
public static final boolean | DEFAULT_SAPPASSPORT_ENABLED | SAP Passport enablement default setting. |
public static final int | DEFAULT_SEARCH_LIMIT | Default for maximum search results retrieved from cache. |
public static final int | DEFAULT_SOCKET_CONNECTION_TIMEOUT | Default socket connection timeout. |
public static final int | DEFAULT_STORE_CAPACITY | Default cache capacity. |
public static final int | MAX_PERSISTENCE_BYTE_BUFFER_SIZE | Maximum buffer size. |
public static final int | MAXIMUM_STORE_CAPACITY | Maximum cache capacity. |
public static final int | MIN_PERSISTENCE_BYTE_BUFFER_SIZE | Minimum buffer size. |
public static final String | SDM_HTTP_HANDLER_CLASS | Socket Connection handler class. |
public static final String | SDM_IMO_HANDLER_CLASS | IMO Connection handler class. |
public static final String | SDM_SHARED_PREFERENCES | Shared preferences. |