public class UserInfo
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone the userinfo and assign a new connection key
|
java.lang.Object |
clone(boolean keepKey)
Clone the userinfo and assign a new connection key
|
java.lang.String |
getBaseCaltype()
Get the Base calendar type of MXServer.
|
java.lang.String |
getBaseCurrency()
Returns the base currency for the organization.
|
java.lang.String |
getCaltype()
Get the calendar type of this user login.
|
java.lang.String |
getClientAddr()
Returns the user's client address (getRemoteAddr).
|
java.lang.String |
getClientHost()
Returns the user's client host (getRemoteHost).
|
ConnectionKey |
getConnectionKey()
Returns a ConnectionKey which can be used to get a
database connection.
|
java.lang.Object |
getCredential()
Get the certificate if passed in to UserInfo
|
java.lang.String |
getDefaultLang() |
java.lang.String |
getDefaultLocaleStr() |
java.lang.String |
getDefaultTZStr() |
java.lang.String |
getDisplayName()
Return the display name
|
java.lang.String |
getEmail()
Return users's primary email address.
|
com.ibm.icu.util.ULocale |
getICULocale()
Returns the ICU locale of this user.
|
boolean |
getInactiveSites()
Get the "inactive sites" flag (derived from maxuser.inactivesites).
|
java.lang.String |
getInsertSite()
Get the insert site of the user.
|
java.lang.String |
getLangCode()
Get the language code of this user login.
|
int |
getLeftNav() |
java.util.Locale |
getLocale()
Returns the locale of this user.
|
java.lang.String |
getLoginID()
returns the loginID.
|
java.lang.String |
getLoginUserName()
Return the login user name (userid).
|
long |
getMaxSessionID()
Return user's maxsessionid (part of index to maxsession table).
|
java.lang.String |
getPersonId()
Return the personId
|
java.lang.String |
getSchemaOwner()
Returns the schema owner.
|
boolean |
getScreenReader()
Returns True if this user uses a screen reader.
|
java.util.UUID |
getServerGuid() |
java.lang.String |
getStartApp() |
int |
getTenantID()
Reterns the id of the tenant the user represented by this UserInfo belongs to.
|
java.util.TimeZone |
getTimeZone()
Returns the time zone for this user.
|
psdi.security.UserLoginDetails |
getUserLoginDetails()
Get the user login details for this userinfo
|
java.lang.String |
getUserName()
Return the user name
|
boolean |
isClonedFrom(UserInfo ui)
Returns true if the UserInfo objects are identical except the connection key
|
boolean |
isInteractive()
Get the interactive flag value.
|
boolean |
isLandlord()
Check whether a UserInfo is for the landlord tenant.
|
boolean |
isLocalSession() |
boolean |
isPreview()
Check whether it is preview mode.
|
void |
refreshLoginDetails(psdi.security.UserLoginDetails newLoginDetails)
Refresh UserLoginDetails (
loginDetails ). |
void |
setCalType(java.lang.String Cal)
Set the Calendar Type
|
void |
setCredential(java.lang.Object cert)
Set the X509 certificate.
|
void |
setEmail(java.lang.String email)
Cache user's primary email address.
|
void |
setInteractive(boolean interactiveValue)
Set the mode to interactive.
|
void |
setLangCode(java.lang.String langCode)
Set the language code
|
void |
setLangCode(java.lang.String langCode,
MXServerRemote server)
Set the language code, the language code will be validated based on the
valid language code list provided by the server reference.
|
void |
setLeftNav(int leftNav) |
void |
setLocale(java.util.Locale locale)
Sets the Locale.
|
void |
setLocale(java.lang.String localeStr) |
void |
setLocalSession(boolean isLocalSession)
If a user session authenticated through this UserInfo object does not require remote rmi access, that is
the program runs in the same JVM as the server, this method should be called to set to true.
|
void |
setMaxSessionID(long maxsessionid)
Cache user's maxsessionid (part of key to maxsession table).
|
void |
setMXServer(MXServerRemote server) |
boolean |
setPreview(boolean flag)
Set whether the connection for this user info is preview mode onlly.
|
void |
setStartApp(java.lang.String startApp) |
void |
setTimeZone(java.lang.String tzStr) |
void |
setTimeZone(java.util.TimeZone timeZone)
Sets the time zone.
|
void |
setUserName(java.lang.String s)
Change the user name (userid).
|
public psdi.security.UserLoginDetails getUserLoginDetails()
public ConnectionKey getConnectionKey()
public java.lang.String getUserName()
public java.lang.String getPersonId()
public java.lang.String getDisplayName()
UserLoginDetails.getDisplayName()
public java.lang.String getLoginUserName()
public java.lang.String getLoginID()
public void setEmail(java.lang.String email)
email
- Primary email addresspublic java.lang.String getEmail()
public void setMaxSessionID(long maxsessionid)
maxsessionid
- public long getMaxSessionID()
public void setUserName(java.lang.String s)
public java.lang.String getSchemaOwner()
public java.util.Locale getLocale()
java.util.Locale
.Locale
public com.ibm.icu.util.ULocale getICULocale()
com.ibm.icu.util.ULocale
.ULocale
public void setLocale(java.util.Locale locale)
public void setLocale(java.lang.String localeStr)
localeStr
- public java.util.TimeZone getTimeZone()
java.util.TimeZone
.TimeZone
public void setTimeZone(java.util.TimeZone timeZone)
public void setTimeZone(java.lang.String tzStr) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getBaseCurrency()
public void setMXServer(MXServerRemote server)
public java.util.UUID getServerGuid()
public java.lang.String getCaltype()
public void setCalType(java.lang.String Cal)
public java.lang.String getBaseCaltype()
public java.lang.String getLangCode()
public void setLangCode(java.lang.String langCode)
the
- language code in iso 639-2 code.public void setLangCode(java.lang.String langCode, MXServerRemote server) throws MXException, java.rmi.RemoteException
langCode
- server
- MXException
java.rmi.RemoteException
public void setInteractive(boolean interactiveValue)
interactive
- Where the object take input from client.public boolean isInteractive()
public java.lang.String getDefaultLang()
public java.lang.String getDefaultLocaleStr()
public java.lang.String getDefaultTZStr()
public void refreshLoginDetails(psdi.security.UserLoginDetails newLoginDetails)
loginDetails
).newLoginDetails
- New UserLoginDetails.public java.lang.String getInsertSite()
public boolean getScreenReader()
public boolean getInactiveSites()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.Object clone(boolean keepKey) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public java.lang.Object getCredential()
public void setCredential(java.lang.Object cert)
cert
- public boolean isClonedFrom(UserInfo ui)
public java.lang.String getClientHost()
public java.lang.String getClientAddr()
public boolean setPreview(boolean flag)
flag
- true is it is for perview modepublic boolean isPreview()
public void setLocalSession(boolean isLocalSession)
isLocalSession
- public boolean isLocalSession()
public java.lang.String getStartApp()
public void setStartApp(java.lang.String startApp)
public int getLeftNav()
public void setLeftNav(int leftNav)
public int getTenantID()
public boolean isLandlord()