public class BasicRemoteApplicationPreferences extends UnicastRemoteObject implements RemoteApplicationPreferences
| Modifier and Type | Field and Description |
|---|---|
protected BasicApplicationPreferences |
basicApplicationPreferences |
static String |
FIELD_HELP_TIP |
protected boolean |
loaded |
protected EntityReferenceLocator |
locator |
protected static String |
PREFERENCE_PATH |
protected static String |
PREFERENCES |
refKEY_USER_PREFERENCE| Constructor and Description |
|---|
BasicRemoteApplicationPreferences(int p,
Hashtable param,
EntityReferenceLocator locator)
Constructs a new BasicRemoteApplication.
|
BasicRemoteApplicationPreferences(int p,
String f,
EntityReferenceLocator locator)
Constructs a new BasicRemoteApplication.
|
BasicRemoteApplicationPreferences(int p,
String f,
String pa,
EntityReferenceLocator locator)
Constructs a new BasicRemoteApplication.
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
getAllPreferences() |
BasicApplicationPreferences |
getBasicApplicationPreferences() |
String |
getRemotePreference(int sessionId,
String user,
String preferenceName)
Method to get the preferences remotely.
|
void |
loadRemotePreferences(int sessionId)
Method to load the preferences from the preferences file remotely.
|
void |
saveRemotePreferences(int sessionId)
Method to save the preferences stored into the buffer to the preferences
file remotely.
|
void |
setRemotePreference(int sessionId,
String user,
String preferenceName,
String value)
Method to set the preferences remotely.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic static final String FIELD_HELP_TIP
protected static final String PREFERENCES
protected static final String PREFERENCE_PATH
protected BasicApplicationPreferences basicApplicationPreferences
protected EntityReferenceLocator locator
protected boolean loaded
public BasicRemoteApplicationPreferences(int p,
String f,
EntityReferenceLocator locator)
throws RemoteException
p - The port.f - Name of the file (without path) that contains the application
preferences.locator - The locator.RemoteExceptionpublic BasicRemoteApplicationPreferences(int p,
String f,
String pa,
EntityReferenceLocator locator)
throws RemoteException
p - The port.f - Name of the file (without path) that contains the application
preferences.pa - Path where the file is.locator - The locator.RemoteExceptionpublic BasicRemoteApplicationPreferences(int p,
Hashtable param,
EntityReferenceLocator locator)
throws RemoteException
p - The portparam - Hashtable with the parameters.locator - The locator.RemoteExceptionpublic BasicApplicationPreferences getBasicApplicationPreferences()
public String getRemotePreference(int sessionId, String user, String preferenceName) throws Exception
RemoteApplicationPreferencesgetRemotePreference in interface RemoteApplicationPreferencessessionId - The session ID.user - String with the user.preferenceName - String with the preference name.String with the preferences.Exceptionpublic void setRemotePreference(int sessionId,
String user,
String preferenceName,
String value)
throws Exception
RemoteApplicationPreferencessetRemotePreference in interface RemoteApplicationPreferencessessionId - The session ID.user - String with the user.preferenceName - String with the preference name.value - String with the preference value.Exceptionpublic void saveRemotePreferences(int sessionId)
throws Exception
RemoteApplicationPreferencessaveRemotePreferences in interface RemoteApplicationPreferencessessionId - The session ID.Exceptionpublic void loadRemotePreferences(int sessionId)
throws Exception
RemoteApplicationPreferencesloadRemotePreferences in interface RemoteApplicationPreferencessessionId - The session ID.Exceptionpublic Properties getAllPreferences() throws Exception
ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.