public class ReferenceLocator extends Object implements EntityReferenceLocator, RMIFailureHandler, RemotelyManageable, UtilReferenceLocator, RemoteReportReferencer, RemoteApplicationPreferenceReferencer, LOk, INoticeSystem, INoticeSendMails, XMLClientProvider, ClientReferenceLocator, TokenLogin
| Modifier and Type | Class and Description |
|---|---|
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.
|
UtilReferenceLocator.MessageADMINISTRATION_PERMISSION, CONNECTION_INFO, IS_MULTICONNECTION, LOADED_ENTITIES, MULTICONNECTION_IDLIST, MULTICONNECTION_INFOINTERNAL_NOTICE_PERIOD, MAIL_CONF_PROPERTIES, NOTICE_CONTENT, NOTICE_CREATE_DATE, NOTICE_DELETE_RECEIVE_NOTICE, NOTICE_DELETE_SEND_NOTICE, NOTICE_DESTINY_KEY, NOTICE_ENTITY_DESTINY_TABLE_DB, NOTICE_ENTITY_TABLE_DB, NOTICE_FORCE_READ, NOTICE_FROM_PARAMETER, NOTICE_KEY, NOTICE_MAILTO_PARAMETER, NOTICE_MESSAGE_COLUMN_NAME, NOTICE_MESSAGE_TYPE_COLUMN_NAME, NOTICE_OTHER_COLUMNS, NOTICE_READ, NOTICE_READ_DATE, NOTICE_RESPONSE_REQUEST, NOTICE_SEND, NOTICE_SEND_DATE, NOTICE_SEND_MAIL, NOTICE_SUBJECT, NOTICE_SYSTEM, NOTICE_TO_PARAMETER, PROP_NOTICE_CLASS_MAIL, PROP_NOTICE_CONFIG_DEFAULT_TEMPLATE, PROP_NOTICE_CONFIG_MAIL, PROP_NOTICE_CONFIG_REQUEST_TEMPLATE, PROP_NOTICE_CONFIG_TEMPLATES, PROP_NOTICE_ENTITY_DESTINY_NAME, PROP_NOTICE_ENTITY_NAME, SEND_MAIL_PERIOD| Constructor and Description |
|---|
ReferenceLocator(boolean local,
String entitiesPackageOrRMIServer,
String entitiesReferenceServerName,
int port,
URL databasePropertiesURL,
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,
String entitiesPackageOrRMIServer,
String entityReferenceServerName,
int port,
URL databasePropURL,
URL autonumericalURL,
String loginEntity) |
ReferenceLocator(Hashtable param)
Initializes parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addModuleMemoryEntity(String localEntityPackage,
List<String> localEntities) |
void |
blockUserDB(String user) |
EntityResult |
changePassword(String password,
int sessionId,
Hashtable av,
Hashtable kv) |
boolean |
checkBlockUserDB(String user) |
void |
checkNoticeAsSend(Object noticeKey)
This method marks the specified notice as sent
|
void |
checkNoticeSent(int sessionId,
Object noticeKey)
This method sets a notices as sent
|
boolean |
checkToken(String token) |
void |
closeLockedConnections(String id,
String databaseId) |
boolean |
closeSession(String id,
int sessionId)
This method close the user's session with the given sessionID.
|
protected DatabaseConnectionManager |
configureConnectionManager(boolean bStatisticViewer,
boolean writeConnectionInfoFile,
URL databasePropertiesURL,
URL autonumericalURL) |
protected void |
configureMultiConnectionManager() |
protected void |
configureReference(Node currentNode) |
protected void |
configureReferences(String xmlDefinitionResource)
The constructor of each reference must have the next parameters:
EntityReferenceLocator: locator reference. |
protected void |
configureRemoteReferences(String xmlDefinitionResource) |
protected DatabaseConnectionManager |
createConnectionManager(boolean bStatisticViewer,
boolean writeConnectionInfoFile,
URL databasePropertiesURL,
URL autonumericalURL) |
protected DatabaseEntityManager |
createDatabaseEntityManager(Hashtable param) |
protected Entity |
createDynamicLocalEntity(String entityName) |
protected Entity |
createMemoryEntity(String localEntityPackage,
String entityName) |
protected Object |
createReference(String className,
Hashtable parameters) |
protected Object |
createRemoteReference(String className,
Hashtable parameters) |
void |
endSession(int id)
This method finishes a client session.
|
protected void |
ensureRemoteReferenceLocator() |
boolean |
failure(Exception e) |
protected void |
finalize()
Override the finalize method to guarantee the end of the open session.
|
void |
finishAdministrationRemoteSession(String id)
Method that finishes the remote session.
|
boolean |
getAccessControl() |
Entity |
getAttachmentEntity(int sessionId) |
int |
getChatCheckTime()
Get the time between two verifications of new chat messages
|
List |
getConnectedSessionIds(int sessionId) |
List |
getConnectedUsers(int sessionId) |
DatabaseConnectionManager |
getConnectionManager() |
protected Hashtable |
getContextParams(String password) |
DatabaseConnectionManager |
getDatabaseConnectionManager() |
boolean |
getDEBUGValueRemote(String id,
String v)
Method to obtain the current value of the DEBUG Server variables.
|
String |
getDefaultPackage() |
protected DatabaseConnectionManager |
getEntityConnectionManager(String entityName) |
Entity |
getEntityReference(String entityName)
This method gets an entity reference.
|
ErrorAccessControl |
getErrorAccessControl() |
Hashtable |
getFormManagerParameters(String formManagerId,
int userid) |
BytesBlock |
getImage(String image,
int userId) |
InitialContext |
getInitialContext() |
EntityResult |
getInternalNotices(int sessionId,
boolean unsend,
boolean unread,
boolean deleted)
Method to get all notices for the specified user.
|
String |
getLastNCharactersFromLogFile(int characterNumber)
Method that recovers the n characters indicated from the log file.
|
String |
getLContent() |
Object |
getLInfoObject() |
List |
getLoadedEntities(int sessionId) |
Locale |
getLocale(int sessionId) |
String |
getLocaleEntity() |
Object |
getLocaleId(int sessionId) |
protected Entity |
getLocalEntity(String entityName) |
protected Entity |
getLocalEntity(String entityName,
boolean checkDatabase) |
String |
getLoginEntityName(int sessionId)
Get the name of the login entity (LoginEntity parameter)
|
String |
getLValue(String name) |
protected Entity |
getMemoryEntity(String entityName) |
protected Entity |
getMemoryEntity(String localEntityPackage,
String entityName) |
int |
getMessageCheckTime() |
Vector |
getMessages(int sessionIdTo,
int sessionId) |
EntityResult |
getNewMailNotice()
This method allows to get all e-mail notices not yet sent
|
protected String |
getNodeValue(Node son) |
protected Entity |
getNoticeEntity(String entityName,
boolean isDestinyEntity) |
String |
getNoticeEntityDestinyName()
Get the name of the notice destiny entity
|
String |
getNoticeEntityName()
Get the name of the notice entity
|
Vector |
getNoticeTypes()
Get the identifies for all notices types in the application
|
protected String |
getPasswordFromCert(Certificate cert) |
String |
getPasswordFromCert(String stringCertificate) |
Entity |
getPrintingTemplateEntity(int sessionId) |
protected Entity |
getPrivateEntity(String entityName)
Deprecated.
|
Object |
getReference(String name)
Allows to get local references defined in 'references.xml' file when
app is built in local mode.
|
Vector |
getRemoteAdministrationMessages(int sessionIdTo,
int sessionId) |
RemoteApplicationPreferences |
getRemoteApplicationPreferences(int sessionId)
Get the application preferences stored in the server side
|
IRemoteLogManager |
getRemoteLogManager(String id) |
RemoteOperationManager |
getRemoteOperationManager(int sessionId) |
Properties |
getRemotePreferencesFile(String id)
Method to get remotely the Server Preferences file.
|
Object |
getRemoteReference(String name,
int sessionId)
Gets a remote reference.
|
List |
getRemoteReportStore(int sessionId) |
List |
getReportEntityNames(int sessionId) |
EntityResult |
getSentNotices(int sessionId,
Boolean deleted)
Method to query all notices sent by the specified user
|
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(String id)
This method returns the main information of all available user's
sessions.
|
protected Entity |
getSpecialEntity(String entityName,
String originalEntity) |
Hashtable |
getStartSessionTime(String id)
This method obtains a list with all the start times of all connections.
|
String |
getSuffixString() |
Hashtable |
getSystemInfo(String id,
String key)
Method that returns system information about the connection with the
database.
|
String |
getToken() |
String |
getUser()
Get the current user name
|
protected String |
getUserFromCert(Certificate cert) |
String |
getUserFromCert(String stringCertificate) |
Object |
getUserId(int sessionId)
Get the identification of the user that must be stored in the notice
system to identify this application user.
|
Hashtable |
getUserIds(String id)
This method returns a Hashtable with the current list of users's IDs.
|
String |
getXMLForm(String form,
int userid) |
String |
getXMLMenu(int userid) |
String |
getXMLRules(String form,
int userid) |
String |
getXMLToolbar(int userid) |
boolean |
hasChat()
True when the application has a chat configured
|
protected void |
initServerNotice(Hashtable params) |
protected void |
installClientRMIFailureHandler() |
protected void |
installRMISocketFactory() |
static boolean |
isAllowCertificateLogin() |
boolean |
isDevelopementL() |
protected boolean |
isDynamicLocalEntity(String entityName) |
boolean |
isLocalMode() |
boolean |
isMultiConnectionManager() |
protected Entity |
loadEntity(String entityName,
boolean checkDatabase,
DatabaseConnectionManager entityConnectionManager) |
boolean |
ok() |
boolean |
ok(String number) |
boolean |
ping()
unimplemented.
|
void |
reloadXMLMenu(int userid) |
void |
reloadXMLToolbar(int userid) |
void |
removeEntity(String entityName,
int sessionId) |
void |
removeEntity(String id,
String entityName) |
void |
removeReceivedNotices(int sessionId,
Vector idNotices)
This method removes the specified received notices for the user with this
session identifier.
|
protected void |
removeRemoteReferences() |
void |
removeSentNotices(int sessionId,
Vector idNotices)
This method sets the specified notices as deleted
|
void |
restartServer(String id) |
InitialContext |
retrieveInitialContext(int sessionId,
Hashtable params) |
protected void |
selectTimeZone()
Get the server time zone.
|
void |
sendMessage(String message,
String user,
int sessionId) |
void |
sendMessage(UtilReferenceLocator.Message message,
String user,
int sessionId) |
void |
sendMessageToAll(String message,
int sessionId) |
void |
sendNotice(Hashtable messageValues,
int sessionId,
boolean request)
Method used to send notices.
|
void |
sendRemoteAdministrationMessages(String message,
int sessionId) |
void |
setDEBUGValueRemote(String id,
String v,
boolean b)
Method to set the DEBUG Server variables.
|
protected void |
setDefaultLocaleId(int sessionId) |
void |
setLocale(int sessionId,
Locale locale) |
void |
setLocalEntities(Vector el) |
void |
setMultiConnectionManager(boolean multiConnectionManager) |
void |
setNoticesRead(int sessionId,
Vector idNotices)
Method to set some notices as read
|
void |
setRemotePreferencesFile(String id,
Properties prop)
Method to set remotely the Server Preferences file.
|
void |
setRemoteReportStore(ReportStore rs) |
void |
showMessageDialog(Component c) |
Integer |
ssoLogin(Boolean debug) |
String |
startAdministrationRemoteSession(String us,
String pass)
This method starts a new remote session.
|
protected void |
startCheckMessagesThread() |
protected void |
startCheckRemoteAdministratorMessagesThread() |
protected int |
startLocalSession(String user,
String password,
ClientWatch cw) |
protected int |
startRemoteSession(String user,
String password,
ClientWatch cw) |
int |
startSession(String user,
String password,
ClientWatch client)
Start a new client session in local or remote mode.
|
protected int |
startUserPasswordSession(String user,
String password,
ClientWatch cw) |
void |
stopServer(String id) |
boolean |
supportChangePassword(String user,
int sessionId) |
int |
testConnectionSpeed()
Bytes per second.
|
int |
testConnectionSpeed(int tam) |
protected void |
updateRemoteReferenceLocator() |
protected void |
waitServerForRestart(int maxTime) |
public static final String REMOTE_REFERENCE_LOCATOR_NAME
public static final String PACKAGE_OR_HOSTNAME
public static final String LOCAL
public static final String CHECK_SERVER_MESSAGES_PERIOD
public static final String CUSTOM_SOCKET
public static final String ATTACHMENT_ENTITY_PATH
public static final String ATTACHMENT_ENTITY
public static final String REPORT_ENTITIES
public static final String ENTITIES_CLASS
public static final String ENTITIES_PROPERTIES
public static final String VIEWER
public static final String LOGIN_ENTITY
public static final String LOCAL_ENTITIES_PACKAGE
public static final String LOCAL_ENTITIES
public static final String PORT
public static final String DB_PROPERTIES
protected static final String DYNAMIC_LOCAL_ENTITY_PREFIX
public static final String AUTONUMERICAL_PROPERTIES
public static final String MULTICONNECTION_MANAGER
public static boolean NEW_CHAT
public static final String SSO_PATH
public static boolean defaultValueUseServerTimezone
public static boolean askUserChangeTimezone
protected static final String ENCRYPT_PROPERTY
public static boolean DEBUG
public static String IMPOSSIBLE_CONNECT_TO_SERVER
public static String REMOTE_OBJECT_NOT_REGISTERED
public static String UNKNOWN_ERROR
public static String UNKNOWN_HOST
public static String M_NOT_AUTHORIZED
protected String loginEntity
protected int privilegedId
protected String attachmentEntity
protected String attachmentPath
protected String printingTemplatesEntity
protected String propertiesPath
protected boolean reconnectState
protected ClientWatch cw
protected Vector localEntities
protected String localEntitiesPackage
protected static int offset
protected static String offsetString
protected String entitiesPropertiesClass
protected List reportEntities
protected TimeZone serverTimeZone
protected boolean localLocator
protected String packageA
protected int port
protected boolean startSession
protected String formProviderEntity
protected String formProviderEntityFormNameColumn
protected String formProviderEntityFormXMLColumn
protected String formProviderEntityFormRuleColumn
protected DatabaseEntityManager databaseEntityManager
protected String formManagerProviderEntity
protected String formManagerProviderEntityIdColumn
protected String formManagerProviderEntityFormNameColumn
protected String formManagerProviderEntityInteractionManagerColumn
protected String imageProviderEntity
protected String imageProviderEntityImageNameColumn
protected String imageProviderEntityImageBytesColumn
protected String menuProviderEntity
protected String menuProviderEntityXMLColumn
protected String toolbarProviderEntity
protected String toolbarProviderEntityXMLColumn
protected String referenceLocatorServerName
protected Object referenceLocatorServer
protected DatabaseConnectionManager manager
protected String user
protected String key
protected int userId
protected boolean installSocketFactory
protected JDialog chatWindow
protected JButton b
protected JTextArea text
protected JScrollPane s
protected int messagesCheckTime
protected int chatCheckTime
protected Thread checkMessagesThread
protected Thread checkRemoteAdministrationMessagesThread
protected Hashtable entitiesProperties
protected boolean multiConnectionManager
protected String multiConnectionManagerPath
public static String NOTICE_ENTITY_NAME
public static String NOTICE_ENTITY_DESTINY_NAME
protected String noticesPath
protected boolean noticeSystem
protected static String defaultNoticeEntityClass
protected static String defaultNoticeDestinyEntityClass
public static final String LOCALE_ENTITY
public static final String LOCALE_SUFFIX
protected static final String CONTROL_ACCESS_ATTEMPTS
protected static final String NUMBER_ACCESS_ATTEMPTS
protected String localeEntity
protected String localeSuffix
protected boolean controlAccessAttempt
protected int numberAccessAttemps
protected ErrorAccessControl errorAccessControl
protected long lastRemoteReferenceCheck
public long remoteReferenceCheckCycle
protected Entity attachmentEntityInstance
protected Entity printingTemplateEntityInstance
protected SimpleAttributeSet textAttribute
protected ReportStore reportStore
protected LocalRemoteReportStore localRemoteReportStore
protected String xmlDynamicMenu
protected String xmlDynamicToolbar
protected RemoteOperationManager rOperationManager
protected static Hashtable remoteReferenceClassNames
protected static Hashtable remoteReferenceParameters
protected static Hashtable remoteReferenceInstances
protected Hashtable referenceClassNames
protected Hashtable referenceParameters
protected Hashtable referenceInstances
protected List initReferences
protected static final String REFERENCES_ELEMENT
protected static final String REFERENCE_ELEMENT
public ReferenceLocator(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". | ||
| LocaleEntity | no | Specify the locale entity (Which extends from LocaleEntity) | ||
| ControlAccessAttempts | true/false | false | no | 'true' to block an user when insert its password 5 times wrong. Otherwise 'false' or if the property don't exist |
public ReferenceLocator(boolean local,
String entitiesPackageOrRMIServer,
String entitiesReferenceServerName,
int port,
URL databasePropertiesURL,
URL autonumericalURL)
Class.forName() and for remote applications
with RMI.public static boolean isAllowCertificateLogin()
public InitialContext getInitialContext()
getInitialContext in interface ClientReferenceLocatorpublic boolean isMultiConnectionManager()
public void setMultiConnectionManager(boolean multiConnectionManager)
protected DatabaseEntityManager createDatabaseEntityManager(Hashtable param) throws Exception
Exceptionprotected boolean isDynamicLocalEntity(String entityName)
protected Entity createDynamicLocalEntity(String entityName) throws Exception
Exceptionpublic Entity getEntityReference(String entityName) throws Exception
EntityReferenceLocatorgetEntityReference in interface EntityReferenceLocatorentityName - Entity nameExceptionpublic void removeEntity(String entityName, int sessionId) throws Exception
removeEntity in interface UtilReferenceLocatorExceptionpublic List getLoadedEntities(int sessionId) throws Exception
getLoadedEntities in interface UtilReferenceLocatorException@Deprecated protected Entity getPrivateEntity(String entityName) throws Exception
getMemoryEntity(String)entityName - Exceptionprotected Entity getMemoryEntity(String entityName) throws Exception
Exceptionprotected Entity getMemoryEntity(String localEntityPackage, String entityName) throws Exception
Exceptionprotected Entity createMemoryEntity(String localEntityPackage, String entityName) throws Exception
Exceptionpublic void addModuleMemoryEntity(String localEntityPackage, List<String> localEntities)
protected Entity getLocalEntity(String entityName) throws Exception
Exceptionprotected Entity getLocalEntity(String entityName, boolean checkDatabase) throws Exception
Exceptionprotected DatabaseConnectionManager getEntityConnectionManager(String entityName)
protected Entity loadEntity(String entityName, boolean checkDatabase, DatabaseConnectionManager entityConnectionManager) throws Exception
Exceptionpublic int startSession(String user, String password, ClientWatch client) throws 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 openExceptionprotected void setDefaultLocaleId(int sessionId)
protected void selectTimeZone()
protected int startLocalSession(String user, String password, ClientWatch cw) throws Exception
Exceptionprotected int startUserPasswordSession(String user, String password, ClientWatch cw) throws Exception
Exceptionprotected void ensureRemoteReferenceLocator()
throws Exception
Exceptionprotected void removeRemoteReferences()
protected int startRemoteSession(String user, String password, ClientWatch cw) throws Exception
Exceptionpublic int getSessionId()
getSessionId in interface EntityReferenceLocatorpublic void endSession(int id)
throws Exception
EntityReferenceLocatorendSession in interface EntityReferenceLocatorid - Client session identifierExceptionpublic String getUser()
ClientReferenceLocatorgetUser in interface ClientReferenceLocatorprotected void finalize()
throws Throwable
public boolean isLocalMode()
public int testConnectionSpeed()
public int testConnectionSpeed(int tam)
protected void installRMISocketFactory()
protected void installClientRMIFailureHandler()
public boolean failure(Exception e)
failure in interface RMIFailureHandlerpublic void setLocalEntities(Vector el)
protected void updateRemoteReferenceLocator()
throws Exception
Exceptionpublic SessionInfo[] getSessionInfo(String id) throws Exception
RemotelyManageablegetSessionInfo in interface RemotelyManageableid - String with the administrator id of the remote session.SessionInfo[] with the information of the
sessions.Exceptionpublic String getLastNCharactersFromLogFile(int characterNumber) throws Exception
RemotelyManageablegetLastNCharactersFromLogFile in interface RemotelyManageablecharacterNumber - int with the number of characters that will be recovered.String with the characters of the log file.Exceptionpublic void finishAdministrationRemoteSession(String id) throws Exception
RemotelyManageablefinishAdministrationRemoteSession in interface RemotelyManageableid - String with the administrator id of the remote session.Exceptionpublic void restartServer(String id) throws Exception
restartServer in interface RemotelyManageableExceptionprotected void waitServerForRestart(int maxTime)
public void stopServer(String id) throws Exception
stopServer in interface RemotelyManageableExceptionpublic Hashtable getUserIds(String id) throws Exception
RemotelyManageablegetUserIds in interface RemotelyManageableid - String with the administrator id of the remote session.Hashtable with the user's IDs.Exceptionpublic List getConnectedUsers(int sessionId) throws Exception
getConnectedUsers in interface UtilReferenceLocatorExceptionpublic List getConnectedSessionIds(int sessionId) throws Exception
getConnectedSessionIds in interface UtilReferenceLocatorExceptionpublic Hashtable getStartSessionTime(String id) throws Exception
RemotelyManageablegetStartSessionTime in interface RemotelyManageableid - String with the administrator id of the remote session.Hashtable with the values.Exceptionpublic boolean closeSession(String id, int sessionId) throws Exception
RemotelyManageablecloseSession 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.Exceptionpublic String startAdministrationRemoteSession(String us, String pass) throws Exception
RemotelyManageablestartAdministrationRemoteSession in interface RemotelyManageableus - String with the user.pass - String with the password.String with the administrator id of the remote
session.Exceptionpublic DatabaseConnectionManager getDatabaseConnectionManager()
public Entity getAttachmentEntity(int sessionId) throws Exception
getAttachmentEntity in interface UtilReferenceLocatorExceptionpublic Entity getPrintingTemplateEntity(int sessionId) throws Exception
getPrintingTemplateEntity in interface UtilReferenceLocatorExceptionpublic Vector getMessages(int sessionIdTo, int sessionId) throws Exception
getMessages in interface UtilReferenceLocatorExceptionpublic Vector getRemoteAdministrationMessages(int sessionIdTo, int sessionId) throws Exception
getRemoteAdministrationMessages in interface UtilReferenceLocatorExceptionpublic void sendMessage(UtilReferenceLocator.Message message, String user, int sessionId) throws Exception
sendMessage in interface UtilReferenceLocatorExceptionpublic void sendMessage(String message, String user, int sessionId) throws Exception
sendMessage in interface UtilReferenceLocatorExceptionpublic void sendMessageToAll(String message, int sessionId) throws Exception
sendMessageToAll in interface UtilReferenceLocatorExceptionpublic void sendRemoteAdministrationMessages(String message, int sessionId) throws Exception
sendRemoteAdministrationMessages in interface UtilReferenceLocatorExceptionpublic int getChatCheckTime()
ClientReferenceLocatorgetChatCheckTime in interface ClientReferenceLocatorpublic int getMessageCheckTime()
getMessageCheckTime in interface ClientReferenceLocatorprotected void startCheckMessagesThread()
protected void startCheckRemoteAdministratorMessagesThread()
public void showMessageDialog(Component c)
showMessageDialog in interface ClientReferenceLocatorpublic boolean ping()
throws Exception
RemotelyManageableping in interface RemotelyManageableExceptionpublic List getRemoteReportStore(int sessionId) throws Exception
getRemoteReportStore in interface RemoteReportReferencerExceptionpublic List getReportEntityNames(int sessionId) throws Exception
getReportEntityNames in interface RemoteReportReferencerExceptionpublic void setRemoteReportStore(ReportStore rs) throws Exception
Exceptionpublic RemoteApplicationPreferences getRemoteApplicationPreferences(int sessionId) throws Exception
RemoteApplicationPreferenceReferencergetRemoteApplicationPreferences in interface RemoteApplicationPreferenceReferencersessionId - User session identifierExceptionpublic boolean isDevelopementL()
throws Exception
isDevelopementL in interface LOkExceptionpublic String getLContent() throws Exception
getLContent in interface LOkExceptionpublic Object getLInfoObject() throws Exception
getLInfoObject in interface LOkExceptionpublic void sendNotice(Hashtable messageValues, int sessionId, boolean request) throws Exception
INoticeSystemsendNotice in interface INoticeSystemrequest - If this is true, the notices is a request notice. In this case
the correct template must be selectedExceptionpublic EntityResult getInternalNotices(int sessionId, boolean unsend, boolean unread, boolean deleted) throws Exception
INoticeSystemgetInternalNotices in interface INoticeSystemsessionId - User session identifierunsend - When this is true only return the unsend noticesunread - When this is true ontly return the unread noticesExceptionpublic void setNoticesRead(int sessionId,
Vector idNotices)
throws Exception
INoticeSystemsetNoticesRead in interface INoticeSystemsessionId - User session identifieridNotices - Array with the notice keysExceptionpublic EntityResult getSentNotices(int sessionId, Boolean deleted) throws Exception
INoticeSystemgetSentNotices in interface INoticeSystemsessionId - User session identifierdeleted - deleted = true only query the deleted notices Exceptionpublic void checkNoticeSent(int sessionId,
Object noticeKey)
throws Exception
INoticeSystemcheckNoticeSent in interface INoticeSystemsessionId - User session identifiernoticeKey - Notice key.Exceptionpublic void removeSentNotices(int sessionId,
Vector idNotices)
throws Exception
INoticeSystemremoveSentNotices in interface INoticeSystemsessionId - User session identifieridNotices - Keys of the notices to removeExceptionpublic void removeReceivedNotices(int sessionId,
Vector idNotices)
throws Exception
INoticeSystemremoveReceivedNotices in interface INoticeSystemsessionId - User session identifieridNotices - Notice keysExceptionpublic Vector getNoticeTypes() throws Exception
INoticeSystemgetNoticeTypes in interface INoticeSystemExceptionpublic String getNoticeEntityName()
INoticeSystemgetNoticeEntityName in interface INoticeSystempublic String getNoticeEntityDestinyName()
INoticeSystemgetNoticeEntityDestinyName in interface INoticeSystemprotected void initServerNotice(Hashtable params)
public EntityResult getNewMailNotice() throws Exception
INoticeSendMailsgetNewMailNotice in interface INoticeSendMailsExceptionpublic void checkNoticeAsSend(Object noticeKey) throws Exception
INoticeSendMailscheckNoticeAsSend in interface INoticeSendMailsnoticeKey - Notice keyExceptionpublic Object getUserId(int sessionId) throws Exception
INoticeSystemgetUserId in interface INoticeSystemsessionId - User session identifierExceptionpublic DatabaseConnectionManager getConnectionManager()
public String getXMLForm(String form, int userid) throws Exception
getXMLForm in interface XMLFormProviderExceptionpublic BytesBlock getImage(String image, int userId) throws Exception
getImage in interface XMLClientProviderExceptionpublic String getXMLRules(String form, int userid) throws Exception
getXMLRules in interface XMLClientProviderExceptionpublic Hashtable getFormManagerParameters(String formManagerId, int userid) throws Exception
getFormManagerParameters in interface XMLClientProviderExceptionpublic void reloadXMLMenu(int userid)
throws Exception
reloadXMLMenu in interface XMLClientProviderExceptionpublic String getXMLMenu(int userid) throws Exception
getXMLMenu in interface XMLClientProviderExceptionpublic void reloadXMLToolbar(int userid)
throws Exception
reloadXMLToolbar in interface XMLClientProviderExceptionpublic String getXMLToolbar(int userid) throws Exception
getXMLToolbar in interface XMLClientProviderExceptionpublic boolean hasChat()
ClientReferenceLocatorhasChat in interface ClientReferenceLocatorpublic RemoteOperationManager getRemoteOperationManager(int sessionId) throws Exception
getRemoteOperationManager in interface UtilReferenceLocatorExceptionpublic Object getRemoteReference(String name, int sessionId) throws Exception
UtilReferenceLocatorgetRemoteReference in interface UtilReferenceLocatorExceptionSecureReferenceLocator#configureRemoteReferences(String)}protected Object createReference(String className, Hashtable parameters) throws Exception
Exceptionpublic Object getReference(String name) throws Exception
getRemoteReference(String, int)getReference in interface ClientReferenceLocatorname - The name of reference defined in 'references.xml' file.Exception - When application is not in local mode or when something
fails.protected void configureReferences(String xmlDefinitionResource)
<References>
<Reference>
<Name>name</Name>
<Class>className</Class>
<Param>
<Name>paramName1</Name>
<Value>paramValue1</Value>
</Param>
<Param>
<Name>paramName2</Name>
<Value>paramValue2</Value>
</Param>
</Reference>
</References>
xmlDefinitionResource - resource path where is loaded the xml definition in.protected void configureReference(Node currentNode) throws Exception
Exceptionprotected Object createRemoteReference(String className, Hashtable parameters) throws Exception
Exceptionprotected void configureRemoteReferences(String xmlDefinitionResource)
public TimeZone getServerTimeZone(int sessionId) throws Exception
UtilReferenceLocatorgetServerTimeZone in interface UtilReferenceLocatorExceptionpublic String getLoginEntityName(int sessionId) throws Exception
UtilReferenceLocatorgetLoginEntityName in interface UtilReferenceLocatorExceptionpublic String getDefaultPackage()
protected DatabaseConnectionManager configureConnectionManager(boolean bStatisticViewer, boolean writeConnectionInfoFile, URL databasePropertiesURL, URL autonumericalURL) throws Exception
Exceptionprotected DatabaseConnectionManager createConnectionManager(boolean bStatisticViewer, boolean writeConnectionInfoFile, URL databasePropertiesURL, URL autonumericalURL) throws Exception
Exceptionprotected void configureMultiConnectionManager()
public boolean getDEBUGValueRemote(String id, String v) throws Exception
RemotelyManageablegetDEBUGValueRemote 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.Exceptionpublic Hashtable getSystemInfo(String id, String key) throws 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.Exceptionpublic void setDEBUGValueRemote(String id, String v, boolean b) throws Exception
RemotelyManageablesetDEBUGValueRemote 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.Exceptionpublic void removeEntity(String id, String entityName) throws Exception
removeEntity in interface RemotelyManageableExceptionpublic Properties getRemotePreferencesFile(String id) throws Exception
RemotelyManageablegetRemotePreferencesFile in interface RemotelyManageableid - String with the administrator id of the remote session.Properties with the preferences.Exceptionpublic void setRemotePreferencesFile(String id, Properties prop) throws Exception
RemotelyManageablesetRemotePreferencesFile 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.Exceptionpublic void closeLockedConnections(String id, String databaseId) throws Exception
closeLockedConnections in interface RemotelyManageableExceptionpublic IRemoteLogManager getRemoteLogManager(String id) throws Exception
getRemoteLogManager in interface RemotelyManageableExceptionpublic String getToken() throws Exception
getToken in interface UtilReferenceLocatorgetToken in interface TokenLoginExceptionpublic String getUserFromCert(String stringCertificate) throws Exception
getUserFromCert in interface UtilReferenceLocatorgetUserFromCert in interface TokenLoginExceptionpublic String getPasswordFromCert(String stringCertificate) throws Exception
getPasswordFromCert in interface UtilReferenceLocatorgetPasswordFromCert in interface TokenLoginExceptionprotected String getPasswordFromCert(Certificate cert) throws Exception
Exceptionprotected String getUserFromCert(Certificate cert) throws Exception
Exceptionpublic InitialContext retrieveInitialContext(int sessionId, Hashtable params) throws Exception
retrieveInitialContext in interface UtilReferenceLocatorExceptionpublic Locale getLocale(int sessionId) throws Exception
getLocale in interface UtilReferenceLocatorExceptionpublic void setLocale(int sessionId,
Locale locale)
throws Exception
setLocale in interface UtilReferenceLocatorExceptionpublic String getSuffixString()
getSuffixString in interface UtilReferenceLocatorpublic Object getLocaleId(int sessionId) throws Exception
getLocaleId in interface ClientReferenceLocatorExceptionpublic String getLocaleEntity() throws Exception
getLocaleEntity in interface UtilReferenceLocatorExceptionpublic boolean supportChangePassword(String user, int sessionId) throws Exception
supportChangePassword in interface UtilReferenceLocatorExceptionpublic EntityResult changePassword(String password, int sessionId, Hashtable av, Hashtable kv) throws Exception
changePassword in interface UtilReferenceLocatorExceptionpublic boolean getAccessControl()
throws Exception
getAccessControl in interface UtilReferenceLocatorExceptionpublic ErrorAccessControl getErrorAccessControl() throws Exception
getErrorAccessControl in interface UtilReferenceLocatorExceptionpublic void blockUserDB(String user) throws Exception
blockUserDB in interface UtilReferenceLocatorExceptionpublic boolean checkBlockUserDB(String user) throws Exception
checkBlockUserDB in interface UtilReferenceLocatorExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.