public class RMISession extends MXSession
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
|
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.
|
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, isConnected, removeMXSessionListener, setClientAddr, setClientHost, setCredential, setForUser, setHost, setInteractive, setLangCode, setLocale, setMXSessionImplFactory, setPassword, setTenant, setTimeZone, setUserName
public void connect() throws MXException, java.rmi.RemoteException
connect
in class MXSession
MXException
java.rmi.RemoteException
MXSession.isConnected()
,
MXSession.disconnect()
,
MXSession.setHost(String)
,
MXSession.setUserName(String)
,
MXSession.setPassword(String)
public void disconnect() throws MXException, java.rmi.RemoteException
disconnect
in class MXSession
MXException
java.rmi.RemoteException
MXSession.isConnected()
,
connect()
,
SecurityService.disconnectUser(UserInfo, int)
public MboSetRemote getMboSet(java.lang.String name) throws MXException
getMboSet
in class MXSession
name
- The name of the type of set desired, such as
WORKORDER
, EQUIPMENT
, etc.MXException
MXSession.getSession()
,
MboSet.setWhere(String)
public MXServerRemote getMXServerRemote() throws MXException
getMXServerRemote
in class MXSession
MXException
public ProfileRemote getProfile() throws MXException, java.rmi.RemoteException
getProfile
in class MXSession
MXException
java.rmi.RemoteException
SecurityService.getProfile(psdi.security.UserInfo)
public ServiceRemote lookup(java.lang.String name) throws java.rmi.RemoteException, MXException
lookup
in class MXSession
name
- The name of the desired service.psdi.server.ServiceRemote
).java.rmi.RemoteException
MXException
ServiceRemote
public boolean isSupportedLangCode(java.lang.String langCode) throws MXException, java.rmi.RemoteException
langCode
- MXException
java.rmi.RemoteException
public java.lang.String getBaseLang() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[][] getLanguageList() throws MXException, java.rmi.RemoteException
getLanguageList
in class MXSession
MXException
java.rmi.RemoteException
public java.lang.String getMessage(java.lang.String group, java.lang.String key) throws MXException, java.rmi.RemoteException
getMessage
in class MXSession
group
- key
- MXException
java.rmi.RemoteException
public java.lang.String[] getMessages(java.lang.String group, java.lang.String[] key) throws MXException, java.rmi.RemoteException
getMessages
in class MXSession
group
- key[]
- MXException
java.rmi.RemoteException
public java.lang.String getMessage(MXException mxe) throws MXException, java.rmi.RemoteException
getMessage
in class MXSession
exception
- MXException
java.rmi.RemoteException
public java.lang.String getTaggedMessage(MXException mxe) throws MXException, java.rmi.RemoteException
getTaggedMessage
in class MXSession
exception
- MXException
java.rmi.RemoteException
public java.lang.String getProperty(java.lang.String propName) throws MXException, java.rmi.RemoteException
getProperty
in class MXSession
propName
- Property nameMXException
java.rmi.RemoteException
MXServer.getPublicProperty(String, String)
public int getBranding() throws MXException, java.rmi.RemoteException
getBranding
in class MXSession
MXException
java.rmi.RemoteException
MXServer.getBranding()