|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.locator.ReferenceLocator
Standard implementation of EntityReferenceLocator.
This class implements a 'local' EntityReferenceLocator, where 'local' means
that the object is instantiated and used in the client side. In this mode,
the entity requests (and other requests) that this object receives are
forwarded to a remote ReferenceLocator.
Also, the ReferenceLocator can be instantiated in nonlocal mode. In this way,
the object will not forward requests but will process these requests itself.
This class implements the RMIFailureHandler interface for managing RMI
failures. These failures are handled only if the value of the parameter
'CustomSocket' is yes.
*
| Nested Class Summary | |
protected class |
ReferenceLocator.DefaultClientSocketFactory
Inner class that implements a RMISocketFactory and manages reconnection in case of RMI failures. |
protected class |
ReferenceLocator.DefaultSSLClientSocketFactory
Inner class that implements a RMISocketFactory with SSL communications and manages reconnection in case of RMI failures. |
| Nested classes inherited from class com.ontimize.locator.UtilReferenceLocator |
UtilReferenceLocator.Message |
| Field Summary | |
static boolean |
askUserChangeTimezone
Configuration variable used when client and server have different time zones. |
static java.lang.String |
ATTACHMENT_ENTITY
AttachmentEntity property |
static java.lang.String |
ATTACHMENT_ENTITY_PATH
AttachmentEntityPath property |
protected java.lang.String |
attachmentEntity
The name of the entity for managing attachments |
protected Entity |
attachmentEntityInstance
|
protected java.lang.String |
attachmentPath
|
static java.lang.String |
AUTONUMERICAL_PROPERTIES
AutonumericalProperties property |
protected javax.swing.JButton |
b
|
protected int |
chatCheckTime
|
protected javax.swing.JDialog |
chatWindow
|
static java.lang.String |
CHECK_SERVER_MESSAGES_PERIOD
CheckServerMessagePeriod property |
protected java.lang.Thread |
checkMessagesThread
|
static java.lang.String |
CUSTOM_SOCKET
CustomSocket property |
protected ClientWatch |
cw
|
protected DatabaseEntityManager |
databaseEntityManager
|
static java.lang.String |
DB_PROPERTIES
DatabaseProperties property |
static boolean |
DEBUG
For debugging purposes |
protected static java.lang.String |
defaultNoticeDestinyEntityClass
|
protected static java.lang.String |
defaultNoticeEntityClass
|
static boolean |
defaultValueUseServerTimezone
Configuration variable used when client and server have different time zones. |
protected static java.lang.String |
ENCRYPT_PROPERTY
com.ontimize.locator.ReferenceLocator.InitSession.Encrypt property. |
static java.lang.String |
ENTITIES_CLASS
EntityClass property |
static java.lang.String |
ENTITIES_PROPERTIES
EntityProperties property |
protected java.util.Hashtable |
entitiesProperties
|
protected java.lang.String |
entitiesPropertiesClass
|
protected java.lang.String |
formManagerProviderEntity
|
protected java.lang.String |
formManagerProviderEntityFormNameColumn
|
protected java.lang.String |
formManagerProviderEntityIdColumn
|
protected java.lang.String |
formManagerProviderEntityInteractionManagerColumn
|
protected java.lang.String |
formProviderEntity
|
protected java.lang.String |
formProviderEntityFormNameColumn
|
protected java.lang.String |
formProviderEntityFormXMLColumn
|
static java.lang.String |
IMPOSSIBLE_CONNECT_TO_SERVER
'Cannot connect to server' message key |
protected java.util.List |
initReferences
|
protected boolean |
installSocketFactory
|
protected java.lang.String |
key
|
protected long |
lastRemoteReferenceCheck
|
protected java.util.Hashtable |
loadedEntities
|
static java.lang.String |
LOCAL
Local property |
static java.lang.String |
LOCAL_ENTITIES
LocalEntities property |
static java.lang.String |
LOCAL_ENTITIES_PACKAGE
LocalEntityPackage property |
protected java.util.Vector |
localEntities
|
protected java.lang.String |
localEntitiesPackage
|
protected boolean |
localLocator
|
protected LocalRemoteReportStore |
localRemoteReportStore
|
static java.lang.String |
LOGIN_ENTITY
LoginEntity property |
protected java.lang.String |
loginEntity
The name of the entity used for login. |
static java.lang.String |
M_NOT_AUTHORIZED
'Unauthorized user' message key |
protected DatabaseConnectionManager |
manager
|
protected java.lang.String |
menuProviderEntity
|
protected java.lang.String |
menuProviderEntityXMLColumn
|
protected int |
messagesCheckTime
|
static java.lang.String |
MULTICONNECTION_MANAGER
|
protected boolean |
multiConnectionManager
|
protected java.lang.String |
multiConnectionManagerPath
|
static boolean |
NEW_CHAT
|
static java.lang.String |
NOTICE_ENTITY_DESTINY_NAME
|
static java.lang.String |
NOTICE_ENTITY_NAME
|
protected static NoticeEntity |
noticeEntity
|
protected java.lang.String |
noticesPath
|
protected boolean |
noticeSystem
|
protected static int |
offset
|
protected static java.lang.String |
offsetString
|
static java.lang.String |
PACKAGE_OR_HOSTNAME
PackageOrHostname property |
protected java.lang.String |
packageA
|
protected int |
port
|
static java.lang.String |
PORT
Port property |
protected Entity |
printingTemplateEntityInstance
|
protected java.lang.String |
printingTemplatesEntity
|
protected int |
privilegedId
An integer used when needed as privileged identifier for querying entities |
protected java.lang.String |
propertiesPath
|
protected boolean |
reconnectState
|
protected java.lang.Object |
referenceLocatorServer
|
protected java.lang.String |
referenceLocatorServerName
Name of the object that contains the references of the server entities. |
static java.lang.String |
REMOTE_OBJECT_NOT_REGISTERED
'Server not ready' message key |
static java.lang.String |
REMOTE_REFERENCE_LOCATOR_NAME
RemoteLocatorName property |
long |
remoteReferenceCheckCycle
|
protected static java.util.Hashtable |
remoteReferenceClassNames
|
protected static java.util.Hashtable |
remoteReferenceInstances
|
protected static java.util.Hashtable |
remoteReferenceParameters
|
static java.lang.String |
REPORT_ENTITIES
ReportEntities property |
protected java.util.List |
reportEntities
|
protected ReportStore |
reportStore
|
protected RemoteOperationManager |
rOperationManager
|
protected javax.swing.JScrollPane |
s
|
protected java.util.TimeZone |
serverTimeZone
|
protected boolean |
startSession
|
protected javax.swing.JTextArea |
text
|
protected javax.swing.text.SimpleAttributeSet |
textAttribute
|
static java.lang.String |
UNKNOWN_ERROR
'Unknown error' message key |
static java.lang.String |
UNKNOWN_HOST
'Unknown host' message key |
protected java.lang.String |
user
|
protected int |
userId
|
static java.lang.String |
VIEWER
Viewer property |
protected java.lang.String |
xmlDynamicMenu
|
| Fields inherited from interface com.ontimize.gui.RemotelyManageable |
ADMINISTRATION_PERMISSION, CONNECTION_INFO, IS_MULTICONNECTION, LOADED_ENTITIES, MULTICONNECTION_IDLIST, MULTICONNECTION_INFO |
| Constructor Summary | |
ReferenceLocator(boolean local,
java.lang.String entitiesPackageOrRMIServer,
java.lang.String entitiesReferenceServerName,
int port,
java.net.URL databasePropertiesURL,
java.net.URL autonumericalURL)
When application runs in local mode, references to entities will be obtained with Class.forName() and for remote applications
with RMI. |
|
ReferenceLocator(boolean local,
java.lang.String entitiesPackageOrRMIServer,
java.lang.String entityReferenceServerName,
int port,
java.net.URL databasePropURL,
java.net.URL autonumericalURL,
java.lang.String loginEntity)
|
|
ReferenceLocator(java.util.Hashtable param)
Initializes parameters. |
|
| Method Summary | |
void |
checkNoticeAsSend(java.lang.Object noticeKey)
This method marks the specified notice as sent |
void |
checkNoticeSent(int sessionId,
java.lang.Object noticeKey)
This method sets a notices as sent |
boolean |
checkToken(java.lang.String token)
|
void |
closeLockedConnections(java.lang.String id,
java.lang.String databaseId)
|
boolean |
closeSession(java.lang.String id,
int sessionId)
This method close the user's session with the given sessionID. |
protected DatabaseConnectionManager |
configureConnectionManager(boolean bStatisticViewer,
boolean writeConnectionInfoFile,
java.net.URL databasePropertiesURL,
java.net.URL autonumericalURL)
|
protected void |
configureMultiConnectionManager()
|
protected void |
configureRemoteReferences(java.lang.String xmlDefinitionResource)
|
protected DatabaseConnectionManager |
createConnectionManager(boolean bStatisticViewer,
boolean writeConnectionInfoFile,
java.net.URL databasePropertiesURL,
java.net.URL autonumericalURL)
|
protected DatabaseEntityManager |
createDatabaseEntityManager(java.util.Hashtable param)
|
protected java.lang.Object |
createRemoteReference(java.lang.String className,
java.util.Hashtable parameters)
|
void |
endSession(int id)
This method finishes a client session. |
protected void |
ensureRemoteReferenceLocator()
|
boolean |
failure(java.lang.Exception e)
|
protected void |
finalize()
Override the finalize method to guarantee the end of the open session. |
void |
finishAdministrationRemoteSession(java.lang.String id)
Method that finishes the remote session. |
Entity |
getAttachmentEntity(int sessionId)
|
int |
getChatCheckTime()
Get the time between two verifications of new chat messages |
java.util.List |
getConnectedSessionIds(int sessionId)
|
java.util.List |
getConnectedUsers(int sessionId)
|
DatabaseConnectionManager |
getConnectionManager()
|
protected java.util.Hashtable |
getContextParams(java.lang.String password)
|
DatabaseConnectionManager |
getDatabaseConnectionManager()
|
boolean |
getDEBUGValueRemote(java.lang.String id,
java.lang.String v)
Method to obtain the current value of the DEBUG Server variables. |
java.lang.String |
getDefaultPackage()
|
protected DatabaseConnectionManager |
getEntityConnectionManager(java.lang.String entityName)
|
Entity |
getEntityReference(java.lang.String entityName)
This method gets an entity reference. |
java.util.Hashtable |
getFormManagerParameters(java.lang.String formManagerId,
int userid)
|
InitialContext |
getInitialContext()
|
EntityResult |
getInternalNotices(int sessionId,
boolean unsend,
boolean unread,
boolean deleted)
Method to get all notices for the specified user. |
java.lang.String |
getLastNCharactersFromLogFile(int characterNumber)
Method that recovers the n characters indicated from the log file. |
java.lang.String |
getLContent()
|
java.lang.Object |
getLInfoObject()
|
java.util.List |
getLoadedEntities(int sessionId)
|
protected Entity |
getLocalEntity(java.lang.String entityName)
|
protected Entity |
getLocalEntity(java.lang.String entityName,
boolean checkDatabase)
|
java.lang.String |
getLoginEntityName(int sessionId)
Get the name of the login entity (LoginEntity parameter) |
java.lang.String |
getLValue(java.lang.String name)
|
protected Entity |
getMemoryEntity(java.lang.String entityName)
|
int |
getMessageCheckTime()
|
java.util.Vector |
getMessages(int sessionIdTo,
int sessionId)
|
EntityResult |
getNewMailNotice()
This method allows to get all e-mail notices not yet sent |
protected java.lang.String |
getNodeValue(org.w3c.dom.Node son)
|
protected Entity |
getNoticeEntity(java.lang.String entityName,
boolean isDestinyEntity)
|
java.lang.String |
getNoticeEntityDestinyName()
Get the name of the notice destiny entity |
java.lang.String |
getNoticeEntityName()
Get the name of the notice entity |
java.util.Vector |
getNoticeTypes()
Get the identifies for all notices types in the application |
protected java.lang.String |
getPasswordFromCert(java.security.cert.Certificate cert)
|
java.lang.String |
getPasswordFromCert(java.lang.String stringCertificate)
|
Entity |
getPrintingTemplateEntity(int sessionId)
|
protected Entity |
getPrivateEntity(java.lang.String entityName)
Deprecated. @see getMemoryEntity(String) |
RemoteApplicationPreferences |
getRemoteApplicationPreferences(int sessionId)
Get the application preferences stored in the server side |
RemoteOperationManager |
getRemoteOperationManager(int sessionId)
|
java.util.Properties |
getRemotePreferencesFile(java.lang.String id)
Method to get remotely the Server Preferences file. |
java.lang.Object |
getRemoteReference(java.lang.String name,
int sessionId)
Gets a remote reference. |
java.util.List |
getRemoteReportStore(int sessionId)
|
java.util.List |
getReportEntityNames(int sessionId)
|
EntityResult |
getSentNotices(int sessionId,
java.lang.Boolean deleted)
Method to query all notices sent by the specified user |
java.util.TimeZone |
getServerTimeZone(int sessionId)
Get the Server TimeZone. |
int |
getSessionId()
If the user has started a session always return a not negative integer. |
SessionInfo[] |
getSessionInfo(java.lang.String id)
This method returns the main information of all available user's sessions. |
protected Entity |
getSpecialEntity(java.lang.String entityName,
java.lang.String originalEntity)
|
java.util.Hashtable |
getStartSessionTime(java.lang.String id)
This method obtains a list with all the start times of all connections. |
java.util.Hashtable |
getSystemInfo(java.lang.String id,
java.lang.String key)
Method that returns system information about the connection with the database. |
java.lang.String |
getToken()
|
java.lang.String |
getUser()
Get the current user name |
protected java.lang.String |
getUserFromCert(java.security.cert.Certificate cert)
|
java.lang.String |
getUserFromCert(java.lang.String stringCertificate)
|
java.lang.Object |
getUserId(int sessionId)
Get the identification of the user that must be stored in the notice system to identify this application user. |
java.util.Hashtable |
getUserIds(java.lang.String id)
This method returns a Hashtable with the current list of users's IDs. |
java.lang.String |
getXMLForm(java.lang.String form,
int userid)
|
java.lang.String |
getXMLMenu(int userid)
|
boolean |
hasChat()
True when the application has a chat configured |
protected void |
initServerNotice(java.util.Hashtable params)
|
protected void |
installClientRMIFailureHandler()
|
protected void |
installRMISocketFactory()
|
static boolean |
isAllowCertificateLogin()
|
boolean |
isDevelopementL()
|
boolean |
isLocalMode()
|
boolean |
isMultiConnectionManager()
|
protected Entity |
loadEntity(java.lang.String entityName,
boolean checkDatabase,
DatabaseConnectionManager entityConnectionManager)
|
boolean |
ok()
|
boolean |
ok(java.lang.String number)
|
boolean |
ping()
unimplemented. |
void |
reloadXMLMenu(int userid)
|
void |
removeEntity(java.lang.String entityName,
int sessionId)
|
void |
removeEntity(java.lang.String id,
java.lang.String entityName)
|
void |
removeReceivedNotices(int sessionId,
java.util.Vector idNotices)
This method removes the specified received notices for the user with this session identifier. |
protected void |
removeRemoteReferences()
|
void |
removeSentNotices(int sessionId,
java.util.Vector idNotices)
This method sets the specified notices as deleted |
void |
restartServer(java.lang.String id)
|
InitialContext |
retrieveInitialContext(int sessionId,
java.util.Hashtable params)
|
protected void |
selectTimeZone()
Get the server time zone. |
void |
sendMessage(java.lang.String message,
java.lang.String user,
int sessionId)
|
void |
sendMessage(UtilReferenceLocator.Message message,
java.lang.String user,
int sessionId)
|
void |
sendMessageToAll(java.lang.String message,
int sessionId)
|
void |
sendNotice(java.util.Hashtable messageValues,
int sessionId,
boolean request)
Method used to send notices. |
void |
setDEBUGValueRemote(java.lang.String id,
java.lang.String v,
boolean b)
Method to set the DEBUG Server variables. |
void |
setLocalEntities(java.util.Vector el)
|
void |
setMultiConnectionManager(boolean multiConnectionManager)
|
void |
setNoticesRead(int sessionId,
java.util.Vector idNotices)
Method to set some notices as read |
void |
setRemotePreferencesFile(java.lang.String id,
java.util.Properties prop)
Method to set remotely the Server Preferences file. |
void |
setRemoteReportStore(ReportStore rs)
|
void |
showMessageDialog(java.awt.Component c)
|
java.lang.String |
startAdministrationRemoteSession(java.lang.String us,
java.lang.String pass)
This method starts a new remote session. |
protected void |
startCheckMessagesThread()
|
protected int |
startLocalSession(java.lang.String user,
java.lang.String password,
ClientWatch cw)
|
protected int |
startRemoteSession(java.lang.String user,
java.lang.String password,
ClientWatch cw)
|
int |
startSession(java.lang.String user,
java.lang.String password,
ClientWatch client)
Start a new client session in local or remote mode. |
protected int |
startUserPasswordSession(java.lang.String user,
java.lang.String password,
ClientWatch cw)
|
void |
stopServer(java.lang.String id)
|
int |
testConnectionSpeed()
Bytes per second. |
int |
testConnectionSpeed(int tam)
|
protected void |
updateRemoteReferenceLocator()
|
protected void |
waitServerForRestart(int maxTime)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String REMOTE_REFERENCE_LOCATOR_NAME
public static final java.lang.String PACKAGE_OR_HOSTNAME
public static final java.lang.String LOCAL
public static final java.lang.String CHECK_SERVER_MESSAGES_PERIOD
public static final java.lang.String CUSTOM_SOCKET
public static final java.lang.String ATTACHMENT_ENTITY_PATH
public static final java.lang.String ATTACHMENT_ENTITY
public static final java.lang.String REPORT_ENTITIES
public static final java.lang.String ENTITIES_CLASS
public static final java.lang.String ENTITIES_PROPERTIES
public static final java.lang.String VIEWER
public static final java.lang.String LOGIN_ENTITY
public static final java.lang.String LOCAL_ENTITIES_PACKAGE
public static final java.lang.String LOCAL_ENTITIES
public static final java.lang.String PORT
public static final java.lang.String DB_PROPERTIES
public static final java.lang.String AUTONUMERICAL_PROPERTIES
public static final java.lang.String MULTICONNECTION_MANAGER
public static boolean NEW_CHAT
public static boolean defaultValueUseServerTimezone
public static boolean askUserChangeTimezone
protected static final java.lang.String ENCRYPT_PROPERTY
public static boolean DEBUG
public static java.lang.String IMPOSSIBLE_CONNECT_TO_SERVER
public static java.lang.String REMOTE_OBJECT_NOT_REGISTERED
public static java.lang.String UNKNOWN_ERROR
public static java.lang.String UNKNOWN_HOST
public static java.lang.String M_NOT_AUTHORIZED
protected java.lang.String loginEntity
protected int privilegedId
protected java.lang.String attachmentEntity
protected java.lang.String attachmentPath
protected java.lang.String printingTemplatesEntity
protected java.lang.String propertiesPath
protected boolean reconnectState
protected ClientWatch cw
protected java.util.Vector localEntities
protected java.lang.String localEntitiesPackage
protected static int offset
protected static java.lang.String offsetString
protected java.lang.String entitiesPropertiesClass
protected java.util.List reportEntities
protected java.util.TimeZone serverTimeZone
protected boolean localLocator
protected java.lang.String packageA
protected int port
protected java.util.Hashtable loadedEntities
protected boolean startSession
protected java.lang.String formProviderEntity
protected java.lang.String formProviderEntityFormNameColumn
protected java.lang.String formProviderEntityFormXMLColumn
protected DatabaseEntityManager databaseEntityManager
protected java.lang.String formManagerProviderEntity
protected java.lang.String formManagerProviderEntityIdColumn
protected java.lang.String formManagerProviderEntityFormNameColumn
protected java.lang.String formManagerProviderEntityInteractionManagerColumn
protected java.lang.String menuProviderEntity
protected java.lang.String menuProviderEntityXMLColumn
protected java.lang.String referenceLocatorServerName
protected java.lang.Object referenceLocatorServer
protected DatabaseConnectionManager manager
protected java.lang.String user
protected java.lang.String key
protected int userId
protected boolean installSocketFactory
protected javax.swing.JDialog chatWindow
protected javax.swing.JButton b
protected javax.swing.JTextArea text
protected javax.swing.JScrollPane s
protected int messagesCheckTime
protected int chatCheckTime
protected java.lang.Thread checkMessagesThread
protected java.util.Hashtable entitiesProperties
protected boolean multiConnectionManager
protected java.lang.String multiConnectionManagerPath
protected static NoticeEntity noticeEntity
public static java.lang.String NOTICE_ENTITY_NAME
public static java.lang.String NOTICE_ENTITY_DESTINY_NAME
protected java.lang.String noticesPath
protected boolean noticeSystem
protected static java.lang.String defaultNoticeEntityClass
protected static java.lang.String defaultNoticeDestinyEntityClass
protected long lastRemoteReferenceCheck
public long remoteReferenceCheckCycle
protected Entity attachmentEntityInstance
protected Entity printingTemplateEntityInstance
protected javax.swing.text.SimpleAttributeSet textAttribute
protected ReportStore reportStore
protected LocalRemoteReportStore localRemoteReportStore
protected java.lang.String xmlDynamicMenu
protected RemoteOperationManager rOperationManager
protected static java.util.Hashtable remoteReferenceClassNames
protected static java.util.Hashtable remoteReferenceParameters
protected static java.util.Hashtable remoteReferenceInstances
protected java.util.List initReferences
| Constructor Detail |
public ReferenceLocator(java.util.Hashtable param)
param - the Hashtable with parameters
| attribute | values | default | required | meaning |
| PackageOrHostname | yes | Entity package(for remote applications) and host name (for
local applications). |
||
| RemoteLocatorName | no | Remote locator register name. | ||
| LoginEntity | User | no | Login entity name, this entity must contains a column 'User_' and a column'Password'. | |
| DatabaseProperties | yes | Database properties configuration file | ||
| AutonumericalProperties | no | Autonumerical configuration file. | ||
| Port | yes | Locator port. | ||
| CustomSocket | yes/no | no | Indicates when RMI failures are handled by RMIFailureHandler interface implemented in this class. | |
| LocalEntities | localent1;localent2;...;localentn | no | Names of the entities that must be loaded in local mode (used for entities in local memory) | |
| LocalEntityPackage | no | Package of the entities that must be loaded in local mode (used for entities in local memory) | ||
| CheckServerMessagePeriod | no | For Ontimize chat utility. Default value -1, if this parameter has this default value, messages are not checked. | ||
| EntityProperties | no | This parameter specifies the properties file that contains
the definition of some entities. This entities are implemented
with TableEntity class and will be automatically
generated. Each line in this file represents one entity. |
||
| ReportEntities | no | Entity names list for the report designer. Default value is empty. Format is: "entity_name:entity_properties_file". |
public ReferenceLocator(boolean local,
java.lang.String entitiesPackageOrRMIServer,
java.lang.String entitiesReferenceServerName,
int port,
java.net.URL databasePropertiesURL,
java.net.URL autonumericalURL)
Class.forName() and for remote applications
with RMI.
public ReferenceLocator(boolean local,
java.lang.String entitiesPackageOrRMIServer,
java.lang.String entityReferenceServerName,
int port,
java.net.URL databasePropURL,
java.net.URL autonumericalURL,
java.lang.String loginEntity)
| Method Detail |
public static boolean isAllowCertificateLogin()
public InitialContext getInitialContext()
getInitialContext in interface ClientReferenceLocatorpublic boolean isMultiConnectionManager()
public void setMultiConnectionManager(boolean multiConnectionManager)
protected DatabaseEntityManager createDatabaseEntityManager(java.util.Hashtable param)
throws java.lang.Exception
java.lang.Exception
public Entity getEntityReference(java.lang.String entityName)
throws java.lang.Exception
EntityReferenceLocator
getEntityReference in interface EntityReferenceLocatorentityName - Entity name
java.lang.Exception
public void removeEntity(java.lang.String entityName,
int sessionId)
throws java.lang.Exception
removeEntity in interface UtilReferenceLocatorjava.lang.Exception
public java.util.List getLoadedEntities(int sessionId)
throws java.lang.Exception
getLoadedEntities in interface UtilReferenceLocatorjava.lang.Exception
protected Entity getPrivateEntity(java.lang.String entityName)
throws java.lang.Exception
getMemoryEntity(String)
entityName -
java.lang.Exception
protected Entity getMemoryEntity(java.lang.String entityName)
throws java.lang.Exception
java.lang.Exception
protected Entity getSpecialEntity(java.lang.String entityName,
java.lang.String originalEntity)
protected Entity getNoticeEntity(java.lang.String entityName,
boolean isDestinyEntity)
protected Entity getLocalEntity(java.lang.String entityName)
throws java.lang.Exception
java.lang.Exception
protected Entity getLocalEntity(java.lang.String entityName,
boolean checkDatabase)
throws java.lang.Exception
java.lang.Exceptionprotected DatabaseConnectionManager getEntityConnectionManager(java.lang.String entityName)
protected Entity loadEntity(java.lang.String entityName,
boolean checkDatabase,
DatabaseConnectionManager entityConnectionManager)
throws java.lang.Exception
java.lang.Exception
public int startSession(java.lang.String user,
java.lang.String password,
ClientWatch client)
throws java.lang.Exception
Entity.query(Hashtable, Vector, int) method). If this query return
one record te session starts.
startSession in interface EntityReferenceLocatoruser - User namepassword - User passwordclient - Object to checks if this session is open
java.lang.Exceptionprotected void selectTimeZone()
protected int startLocalSession(java.lang.String user,
java.lang.String password,
ClientWatch cw)
throws java.lang.Exception
java.lang.Exception
protected int startUserPasswordSession(java.lang.String user,
java.lang.String password,
ClientWatch cw)
throws java.lang.Exception
java.lang.Exception
protected void ensureRemoteReferenceLocator()
throws java.lang.Exception
java.lang.Exceptionprotected void removeRemoteReferences()
protected int startRemoteSession(java.lang.String user,
java.lang.String password,
ClientWatch cw)
throws java.lang.Exception
java.lang.Exceptionpublic int getSessionId()
getSessionId in interface EntityReferenceLocator
public void endSession(int id)
throws java.lang.Exception
EntityReferenceLocator
endSession in interface EntityReferenceLocatorid - Client session identifier
java.lang.Exceptionpublic java.lang.String getUser()
ClientReferenceLocator
getUser in interface ClientReferenceLocator
protected void finalize()
throws java.lang.Throwable
java.lang.Throwablepublic boolean isLocalMode()
public int testConnectionSpeed()
public int testConnectionSpeed(int tam)
protected void installRMISocketFactory()
protected void installClientRMIFailureHandler()
public boolean failure(java.lang.Exception e)
failure in interface java.rmi.server.RMIFailureHandlerpublic void setLocalEntities(java.util.Vector el)
protected void updateRemoteReferenceLocator()
throws java.lang.Exception
java.lang.Exception
public SessionInfo[] getSessionInfo(java.lang.String id)
throws java.lang.Exception
RemotelyManageable
getSessionInfo in interface RemotelyManageableid - String with the administrator id of the remote session.
SessionInfo[] with the information of the sessions.
java.lang.Exception
public java.lang.String getLastNCharactersFromLogFile(int characterNumber)
throws java.lang.Exception
RemotelyManageable
getLastNCharactersFromLogFile in interface RemotelyManageablecharacterNumber - int with the number of characters that will be recovered.
String with the characters of the log file.
java.lang.Exception
public void finishAdministrationRemoteSession(java.lang.String id)
throws java.lang.Exception
RemotelyManageable
finishAdministrationRemoteSession in interface RemotelyManageableid - String with the administrator id of the remote session.
java.lang.Exception
public void restartServer(java.lang.String id)
throws java.lang.Exception
restartServer in interface RemotelyManageablejava.lang.Exceptionprotected void waitServerForRestart(int maxTime)
public void stopServer(java.lang.String id)
throws java.lang.Exception
stopServer in interface RemotelyManageablejava.lang.Exception
public java.util.Hashtable getUserIds(java.lang.String id)
throws java.lang.Exception
RemotelyManageable
getUserIds in interface RemotelyManageableid - String with the administrator id of the remote session.
Hashtable with the user's IDs.
java.lang.Exception
public java.util.List getConnectedUsers(int sessionId)
throws java.lang.Exception
getConnectedUsers in interface UtilReferenceLocatorjava.lang.Exception
public java.util.List getConnectedSessionIds(int sessionId)
throws java.lang.Exception
getConnectedSessionIds in interface UtilReferenceLocatorjava.lang.Exception
public java.util.Hashtable getStartSessionTime(java.lang.String id)
throws java.lang.Exception
RemotelyManageable
getStartSessionTime in interface RemotelyManageableid - String with the administrator id of the remote session.
Hashtable with the values.
java.lang.Exception
public boolean closeSession(java.lang.String id,
int sessionId)
throws java.lang.Exception
RemotelyManageable
closeSession in interface RemotelyManageableid - String with the administrator id of the remote session.sessionId - int with the session id of the user's session.
boolean with the result of the operation.
java.lang.Exception
public java.lang.String startAdministrationRemoteSession(java.lang.String us,
java.lang.String pass)
throws java.lang.Exception
RemotelyManageable
startAdministrationRemoteSession in interface RemotelyManageableus - String with the user.pass - String with the password.
String with the administrator id of the remote session.
java.lang.Exceptionpublic DatabaseConnectionManager getDatabaseConnectionManager()
public Entity getAttachmentEntity(int sessionId)
throws java.lang.Exception
getAttachmentEntity in interface UtilReferenceLocatorjava.lang.Exception
public Entity getPrintingTemplateEntity(int sessionId)
throws java.lang.Exception
getPrintingTemplateEntity in interface UtilReferenceLocatorjava.lang.Exception
public java.util.Vector getMessages(int sessionIdTo,
int sessionId)
throws java.lang.Exception
getMessages in interface UtilReferenceLocatorjava.lang.Exception
public void sendMessage(UtilReferenceLocator.Message message,
java.lang.String user,
int sessionId)
throws java.lang.Exception
sendMessage in interface UtilReferenceLocatorjava.lang.Exception
public void sendMessage(java.lang.String message,
java.lang.String user,
int sessionId)
throws java.lang.Exception
sendMessage in interface UtilReferenceLocatorjava.lang.Exception
public void sendMessageToAll(java.lang.String message,
int sessionId)
throws java.lang.Exception
sendMessageToAll in interface UtilReferenceLocatorjava.lang.Exceptionpublic int getChatCheckTime()
ClientReferenceLocator
getChatCheckTime in interface ClientReferenceLocatorpublic int getMessageCheckTime()
getMessageCheckTime in interface ClientReferenceLocatorprotected void startCheckMessagesThread()
public void showMessageDialog(java.awt.Component c)
showMessageDialog in interface ClientReferenceLocator
public boolean ping()
throws java.lang.Exception
RemotelyManageable
ping in interface RemotelyManageablejava.lang.Exception
public java.util.List getRemoteReportStore(int sessionId)
throws java.lang.Exception
getRemoteReportStore in interface RemoteReportReferencerjava.lang.Exception
public java.util.List getReportEntityNames(int sessionId)
throws java.lang.Exception
getReportEntityNames in interface RemoteReportReferencerjava.lang.Exception
public void setRemoteReportStore(ReportStore rs)
throws java.lang.Exception
java.lang.Exception
public RemoteApplicationPreferences getRemoteApplicationPreferences(int sessionId)
throws java.lang.Exception
RemoteApplicationPreferenceReferencer
getRemoteApplicationPreferences in interface RemoteApplicationPreferenceReferencersessionId - User session identifier
java.lang.Exception
public boolean ok()
throws java.lang.Exception
ok in interface com.ontimize.ols.LOkjava.lang.Exception
public boolean isDevelopementL()
throws java.lang.Exception
isDevelopementL in interface com.ontimize.ols.LOkjava.lang.Exception
public boolean ok(java.lang.String number)
throws java.lang.Exception
ok in interface com.ontimize.ols.LOkjava.lang.Exception
public java.lang.String getLValue(java.lang.String name)
throws java.lang.Exception
getLValue in interface com.ontimize.ols.LOkjava.lang.Exception
public java.lang.String getLContent()
throws java.lang.Exception
getLContent in interface com.ontimize.ols.LOkjava.lang.Exception
public java.lang.Object getLInfoObject()
throws java.lang.Exception
getLInfoObject in interface com.ontimize.ols.LOkjava.lang.Exception
public void sendNotice(java.util.Hashtable messageValues,
int sessionId,
boolean request)
throws java.lang.Exception
INoticeSystem
sendNotice in interface INoticeSystemmessageValues - sessionId - request - If this is true, the notices is a request notice. In this case
the correct template must be selected
java.lang.Exception
public EntityResult getInternalNotices(int sessionId,
boolean unsend,
boolean unread,
boolean deleted)
throws java.lang.Exception
INoticeSystem
getInternalNotices in interface INoticeSystemsessionId - User session identifierunsend - When this is true only return the unsend noticesunread - When this is true ontly return the unread notices
java.lang.Exception
public void setNoticesRead(int sessionId,
java.util.Vector idNotices)
throws java.lang.Exception
INoticeSystem
setNoticesRead in interface INoticeSystemsessionId - User session identifieridNotices - Array with the notice keys
java.lang.Exception
public EntityResult getSentNotices(int sessionId,
java.lang.Boolean deleted)
throws java.lang.Exception
INoticeSystem
getSentNotices in interface INoticeSystemsessionId - User session identifierdeleted - deleted = true only query the deleted notices java.lang.Exception
public void checkNoticeSent(int sessionId,
java.lang.Object noticeKey)
throws java.lang.Exception
INoticeSystem
checkNoticeSent in interface INoticeSystemsessionId - User session identifiernoticeKey - Notice key.
java.lang.Exception
public void removeSentNotices(int sessionId,
java.util.Vector idNotices)
throws java.lang.Exception
INoticeSystem
removeSentNotices in interface INoticeSystemsessionId - User session identifieridNotices - Keys of the notices to remove
java.lang.Exception
public void removeReceivedNotices(int sessionId,
java.util.Vector idNotices)
throws java.lang.Exception
INoticeSystem
removeReceivedNotices in interface INoticeSystemsessionId - User session identifieridNotices - Notice keys
java.lang.Exception
public java.util.Vector getNoticeTypes()
throws java.lang.Exception
INoticeSystem
getNoticeTypes in interface INoticeSystemjava.lang.Exceptionpublic java.lang.String getNoticeEntityName()
INoticeSystem
getNoticeEntityName in interface INoticeSystempublic java.lang.String getNoticeEntityDestinyName()
INoticeSystem
getNoticeEntityDestinyName in interface INoticeSystemprotected void initServerNotice(java.util.Hashtable params)
public EntityResult getNewMailNotice()
throws java.lang.Exception
INoticeSendMails
getNewMailNotice in interface INoticeSendMailsjava.lang.Exception
public void checkNoticeAsSend(java.lang.Object noticeKey)
throws java.lang.Exception
INoticeSendMails
checkNoticeAsSend in interface INoticeSendMailsnoticeKey - Notice key
java.lang.Exception
public java.lang.Object getUserId(int sessionId)
throws java.lang.Exception
INoticeSystem
getUserId in interface INoticeSystemsessionId - User session identifier
java.lang.Exceptionpublic DatabaseConnectionManager getConnectionManager()
public java.lang.String getXMLForm(java.lang.String form,
int userid)
throws java.lang.Exception
getXMLForm in interface XMLFormProviderjava.lang.Exception
public java.util.Hashtable getFormManagerParameters(java.lang.String formManagerId,
int userid)
throws java.lang.Exception
getFormManagerParameters in interface XMLClientProviderjava.lang.Exception
public void reloadXMLMenu(int userid)
throws java.lang.Exception
reloadXMLMenu in interface XMLClientProviderjava.lang.Exception
public java.lang.String getXMLMenu(int userid)
throws java.lang.Exception
getXMLMenu in interface XMLClientProviderjava.lang.Exceptionpublic boolean hasChat()
ClientReferenceLocator
hasChat in interface ClientReferenceLocator
public RemoteOperationManager getRemoteOperationManager(int sessionId)
throws java.lang.Exception
getRemoteOperationManager in interface UtilReferenceLocatorjava.lang.Exception
public java.lang.Object getRemoteReference(java.lang.String name,
int sessionId)
throws java.lang.Exception
UtilReferenceLocator
getRemoteReference in interface UtilReferenceLocatorname - sessionId -
java.lang.Exception{@link SecureReferenceLocator#configureRemoteReferences(String)}
protected java.lang.Object createRemoteReference(java.lang.String className,
java.util.Hashtable parameters)
throws java.lang.Exception
java.lang.Exceptionprotected void configureRemoteReferences(java.lang.String xmlDefinitionResource)
protected java.lang.String getNodeValue(org.w3c.dom.Node son)
public java.util.TimeZone getServerTimeZone(int sessionId)
throws java.lang.Exception
UtilReferenceLocator
getServerTimeZone in interface UtilReferenceLocatorsessionId -
java.lang.Exception
public java.lang.String getLoginEntityName(int sessionId)
throws java.lang.Exception
UtilReferenceLocator
getLoginEntityName in interface UtilReferenceLocatorsessionId -
java.lang.Exceptionpublic java.lang.String getDefaultPackage()
protected DatabaseConnectionManager configureConnectionManager(boolean bStatisticViewer,
boolean writeConnectionInfoFile,
java.net.URL databasePropertiesURL,
java.net.URL autonumericalURL)
throws java.lang.Exception
java.lang.Exception
protected DatabaseConnectionManager createConnectionManager(boolean bStatisticViewer,
boolean writeConnectionInfoFile,
java.net.URL databasePropertiesURL,
java.net.URL autonumericalURL)
throws java.lang.Exception
java.lang.Exceptionprotected void configureMultiConnectionManager()
public boolean getDEBUGValueRemote(java.lang.String id,
java.lang.String v)
throws java.lang.Exception
RemotelyManageable
getDEBUGValueRemote in interface RemotelyManageableid - String with the administrator id of the remote session.v - String with the name of the variable.
boolean with the value of the indicated variable.
java.lang.Exception
public java.util.Hashtable getSystemInfo(java.lang.String id,
java.lang.String key)
throws java.lang.Exception
RemotelyManageable
| key | meaning |
| CONNECTION_INFO | To get the connection information when exist only one connection. |
| IS_MULTICONNECTION | To know if multiconnection is available. Returns a String "true" or "false". |
| MULTICONNECTION_IDLIST | To get the list of Strings with the identification of the connections. |
| MULTICONNECTION_INFO | To get the connection information of all connections available. |
NOTE: the connection information contains into the Hashtable returned is:
getSystemInfo in interface RemotelyManageableid - String with the administrator id of the remote session.key - String indicating what information you wish to request.
Hashtable with the values.
java.lang.Exception
public void setDEBUGValueRemote(java.lang.String id,
java.lang.String v,
boolean b)
throws java.lang.Exception
RemotelyManageable
setDEBUGValueRemote in interface RemotelyManageableid - String with the administrator id of the remote session.v - String with the name of the variable.b - Boolean with the value.
java.lang.Exception
public void removeEntity(java.lang.String id,
java.lang.String entityName)
throws java.lang.Exception
removeEntity in interface RemotelyManageablejava.lang.Exception
public java.util.Properties getRemotePreferencesFile(java.lang.String id)
throws java.lang.Exception
RemotelyManageable
getRemotePreferencesFile in interface RemotelyManageableid - String with the administrator id of the remote session.
Properties with the preferences.
java.lang.Exception
public void setRemotePreferencesFile(java.lang.String id,
java.util.Properties prop)
throws java.lang.Exception
RemotelyManageable
setRemotePreferencesFile in interface RemotelyManageableid - String with the administrator id of the remote session.prop - The properties file to be established. This file will contain the structure of pair values: key-value.
java.lang.Exception
public void closeLockedConnections(java.lang.String id,
java.lang.String databaseId)
throws java.lang.Exception
closeLockedConnections in interface RemotelyManageablejava.lang.Exception
public java.lang.String getToken()
throws java.lang.Exception
getToken in interface UtilReferenceLocatorjava.lang.Exception
public java.lang.String getUserFromCert(java.lang.String stringCertificate)
throws java.lang.Exception
getUserFromCert in interface UtilReferenceLocatorjava.lang.Exception
public java.lang.String getPasswordFromCert(java.lang.String stringCertificate)
throws java.lang.Exception
getPasswordFromCert in interface UtilReferenceLocatorjava.lang.Exception
public boolean checkToken(java.lang.String token)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String getPasswordFromCert(java.security.cert.Certificate cert)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String getUserFromCert(java.security.cert.Certificate cert)
throws java.lang.Exception
java.lang.Exceptionprotected java.util.Hashtable getContextParams(java.lang.String password)
public InitialContext retrieveInitialContext(int sessionId,
java.util.Hashtable params)
throws java.lang.Exception
retrieveInitialContext in interface UtilReferenceLocatorjava.lang.Exception
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||