public class FndServerConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Record |
currentUser |
Server |
srv |
Constructor and Description |
---|
FndServerConnection()
Creates a new instance of FndServerConnection
|
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
Connect to the server.
|
void |
disconnect()
Disconnects from servers.
|
java.lang.String |
getConnectionString()
Gets the current connection string used for server communication.
|
void |
setConnectionString(java.lang.String cs)
Sets the connection string to use for server communication.
|
void |
setCredentials(java.lang.String identification,
java.lang.String password)
Sets the credentials used to authenticate the user.
|
void |
setShowLoginAlways(boolean enable)
Enable showing login dialog always.
|
void |
setShowLoginContinuously(boolean enable)
Enable showing login dialog continuously until login success.
|
protected boolean |
showLoginDialog()
Show Login Dialog when needed.
|
protected void |
showMessage(java.lang.String msg)
Show Error Message.
|
public FndServerConnection()
public boolean connect() throws APException
APException
public java.lang.String getConnectionString()
public void setConnectionString(java.lang.String cs)
public void setCredentials(java.lang.String identification, java.lang.String password)
identification
- the user's identification.password
- the user's password.public void setShowLoginContinuously(boolean enable)
enable
- if true
Enable Show login continuously.public void setShowLoginAlways(boolean enable)
enable
- if true
Enable Show login always.public void disconnect()
protected boolean showLoginDialog()
protected void showMessage(java.lang.String msg)