public class RMISession extends MXSession
adminLogout, baseCurrency, clientAddr, clientHost, connected, credential, hostname, interactive, langCode, locale, password, remoteServer, servername, timeZone, username| Constructor and Description |
|---|
RMISession() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connect to the server.
|
void |
disconnect()
Disconnects from the server.
|
java.lang.String |
getBaseLang()
Returns the base language code
|
int |
getBranding()
Returns branding.
|
java.lang.String[][] |
getLanguageList()
Returns the language ID and name in corresponding language
|
MboSetRemote |
getMboSet(java.lang.String name)
Return a new MboSetRemote for the specified component
|
java.lang.String |
getMessage(MXException mxe)
Returns message for the exception
|
java.lang.String |
getMessage(java.lang.String group,
java.lang.String key)
Returns the message for group and key for the mxsession langcode
|
java.lang.String[] |
getMessages(java.lang.String group,
java.lang.String[] key)
Return list of translated strings from the maxmessages table in the order specified by the array of keys passed
|
protected MXServerRemote |
getMXServer()
Returns MXServer object depending on some settings.
|
MXServerRemote |
getMXServerRemote()
Return the MXServerRemote
|
ProfileRemote |
getProfile()
Return the user's security profile.
|
java.lang.String |
getProperty(java.lang.String propName)
Returns value of a public property.
|
java.lang.String |
getTaggedMessage(MXException mxe)
Returns message with MessageID for the exception
|
boolean |
isSupportedLangCode(java.lang.String langCode)
Is the language a supported maximo language code.
|
protected UserInfo |
loadUserInfo()
Returns user information based on the authentication details
provided by authenticating the user credentials with the server.
|
ServiceRemote |
lookup(java.lang.String name)
Return the specified remote service
|
addMXSessionListener, connectAsRegUser, getBaseCurrency, getClientAddr, getClientHost, getCredential, getDate, getForUser, getHost, getLocale, getNewSession, getPassword, getServer, getSession, getTenant, getTimeZone, getURLAsString, getUserInfo, getUserName, hasAdminLogout, isConnected, removeMXSessionListener, setClientAddr, setClientHost, setCredential, setForUser, setHost, setInteractive, setLangCode, setLocale, setMXSessionImplFactory, setPassword, setTenant, setTimeZone, setUserNamepublic void connect()
throws MXException,
java.rmi.RemoteException
connect in class MXSessionMXExceptionjava.rmi.RemoteExceptionMXSession.isConnected(),
MXSession.disconnect(),
MXSession.setHost(String),
MXSession.setUserName(String),
MXSession.setPassword(String)public void disconnect()
throws MXException,
java.rmi.RemoteException
disconnect in class MXSessionMXExceptionjava.rmi.RemoteExceptionMXSession.isConnected(),
RMISession.connect(),
SecurityService.disconnectUser(UserInfo, int)protected UserInfo loadUserInfo() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionRMISession.authenticateUser(String, String)protected MXServerRemote getMXServer() throws MXException, java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException, java.net.UnknownHostException
MXExceptionjava.net.MalformedURLExceptionjava.rmi.NotBoundExceptionjava.rmi.RemoteExceptionjava.net.UnknownHostExceptionpublic MboSetRemote getMboSet(java.lang.String name) throws MXException
getMboSet in class MXSessionname - The name of the type of set desired, such as
WORKORDER, EQUIPMENT, etc.MXExceptionMXSession.getSession(),
MboSet.setWhere(String)public MXServerRemote getMXServerRemote() throws MXException
getMXServerRemote in class MXSessionMXExceptionpublic ProfileRemote getProfile() throws MXException, java.rmi.RemoteException
getProfile in class MXSessionMXExceptionjava.rmi.RemoteExceptionSecurityService.getProfile(psdi.security.UserInfo)public ServiceRemote lookup(java.lang.String name) throws java.rmi.RemoteException, MXException
lookup in class MXSessionname - The name of the desired service.psdi.server.ServiceRemote).java.rmi.RemoteExceptionMXExceptionServiceRemotepublic boolean isSupportedLangCode(java.lang.String langCode)
throws MXException,
java.rmi.RemoteException
langCode - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getBaseLang()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String[][] getLanguageList()
throws MXException,
java.rmi.RemoteException
getLanguageList in class MXSessionMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getMessage(java.lang.String group,
java.lang.String key)
throws MXException,
java.rmi.RemoteException
getMessage in class MXSessiongroup - key - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String[] getMessages(java.lang.String group,
java.lang.String[] key)
throws MXException,
java.rmi.RemoteException
getMessages in class MXSessiongroup - key[] - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getMessage(MXException mxe) throws MXException, java.rmi.RemoteException
getMessage in class MXSessionexception - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getTaggedMessage(MXException mxe) throws MXException, java.rmi.RemoteException
getTaggedMessage in class MXSessionexception - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getProperty(java.lang.String propName)
throws MXException,
java.rmi.RemoteException
getProperty in class MXSessionpropName - Property nameMXExceptionjava.rmi.RemoteExceptionMXServer.getPublicProperty(String, String)public int getBranding()
throws MXException,
java.rmi.RemoteException
getBranding in class MXSessionMXExceptionjava.rmi.RemoteExceptionMXServer.getBranding()