com.ontimize.gui.preferences
Class BasicRemoteApplicationPreferences
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.ontimize.gui.preferences.BasicRemoteApplicationPreferences
- All Implemented Interfaces:
- java.rmi.Remote, RemoteApplicationPreferences, java.io.Serializable
- public class BasicRemoteApplicationPreferences
- extends java.rmi.server.UnicastRemoteObject
- implements RemoteApplicationPreferences
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
FIELD_HELP_TIP
public static final java.lang.String FIELD_HELP_TIP
- See Also:
- Constant Field Values
PREFERENCES
protected static final java.lang.String PREFERENCES
- See Also:
- Constant Field Values
PREFERENCE_PATH
protected static final java.lang.String PREFERENCE_PATH
- See Also:
- Constant Field Values
basicApplicationPreferences
protected BasicApplicationPreferences basicApplicationPreferences
locator
protected EntityReferenceLocator locator
loaded
protected boolean loaded
BasicRemoteApplicationPreferences
public BasicRemoteApplicationPreferences(int p,
java.lang.String f,
EntityReferenceLocator locator)
throws java.rmi.RemoteException
- Constructs a new BasicRemoteApplication.
- Parameters:
p - The port.f - Name of the file (without path) that contains the application preferences.locator - The locator.
- Throws:
java.rmi.RemoteException
BasicRemoteApplicationPreferences
public BasicRemoteApplicationPreferences(int p,
java.lang.String f,
java.lang.String pa,
EntityReferenceLocator locator)
throws java.rmi.RemoteException
- Constructs a new BasicRemoteApplication.
- Parameters:
p - The port.f - Name of the file (without path) that contains the application preferences.pa - Path where the file is.locator - The locator.
- Throws:
java.rmi.RemoteException
BasicRemoteApplicationPreferences
public BasicRemoteApplicationPreferences(int p,
java.util.Hashtable param,
EntityReferenceLocator locator)
throws java.rmi.RemoteException
- Constructs a new BasicRemoteApplication.
- Parameters:
p - The portparam - Hashtable with the parameters.locator - The locator.
- Throws:
java.rmi.RemoteException
getBasicApplicationPreferences
public BasicApplicationPreferences getBasicApplicationPreferences()
getRemotePreference
public java.lang.String getRemotePreference(int sessionId,
java.lang.String user,
java.lang.String preferenceName)
throws java.lang.Exception
- Description copied from interface:
RemoteApplicationPreferences
- Method to get the preferences remotely.
- Specified by:
getRemotePreference in interface RemoteApplicationPreferences
- Parameters:
sessionId - The session ID.user - String with the user.preferenceName - String with the preference name.
- Returns:
- a
String with the preferences.
- Throws:
java.lang.Exception
setRemotePreference
public void setRemotePreference(int sessionId,
java.lang.String user,
java.lang.String preferenceName,
java.lang.String value)
throws java.lang.Exception
- Description copied from interface:
RemoteApplicationPreferences
- Method to set the preferences remotely.
- Specified by:
setRemotePreference in interface RemoteApplicationPreferences
- Parameters:
sessionId - The session ID.user - String with the user.preferenceName - String with the preference name.value - String with the preference value.
- Throws:
java.lang.Exception
saveRemotePreferences
public void saveRemotePreferences(int sessionId)
throws java.lang.Exception
- Description copied from interface:
RemoteApplicationPreferences
- Method to save the preferences stored into the buffer to the preferences file remotely.
- Specified by:
saveRemotePreferences in interface RemoteApplicationPreferences
- Parameters:
sessionId - The session ID.
- Throws:
java.lang.Exception
loadRemotePreferences
public void loadRemotePreferences(int sessionId)
throws java.lang.Exception
- Description copied from interface:
RemoteApplicationPreferences
- Method to load the preferences from the preferences file remotely.
- Specified by:
loadRemotePreferences in interface RemoteApplicationPreferences
- Parameters:
sessionId - The session ID.
- Throws:
java.lang.Exception
getAllPreferences
public java.util.Properties getAllPreferences()
throws java.lang.Exception
- Throws:
java.lang.Exception