Ontimize 5.2072EN

com.ontimize.gui.preferences
Class BasicRemoteApplicationPreferences

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bycom.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

Field Summary
protected  BasicApplicationPreferences basicApplicationPreferences
           
static java.lang.String FIELD_HELP_TIP
           
protected  boolean loaded
           
protected  EntityReferenceLocator locator
           
protected static java.lang.String PREFERENCE_PATH
           
protected static java.lang.String PREFERENCES
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface com.ontimize.gui.preferences.RemoteApplicationPreferences
KEY_USER_PREFERENCE
 
Constructor Summary
BasicRemoteApplicationPreferences(int p, java.util.Hashtable param, EntityReferenceLocator locator)
          Constructs a new BasicRemoteApplication.
BasicRemoteApplicationPreferences(int p, java.lang.String f, EntityReferenceLocator locator)
          Constructs a new BasicRemoteApplication.
BasicRemoteApplicationPreferences(int p, java.lang.String f, java.lang.String pa, EntityReferenceLocator locator)
          Constructs a new BasicRemoteApplication.
 
Method Summary
 java.util.Properties getAllPreferences()
           
 BasicApplicationPreferences getBasicApplicationPreferences()
           
 java.lang.String getRemotePreference(int sessionId, java.lang.String user, java.lang.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, java.lang.String user, java.lang.String preferenceName, java.lang.String value)
          Method to set the preferences remotely.
 
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 Detail

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
Constructor Detail

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 port
param - Hashtable with the parameters.
locator - The locator.
Throws:
java.rmi.RemoteException
Method Detail

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

Ontimize