com.microstrategy.web.objects.WebSessionInfo |
![]() |
The WebSessionInfo class represents the session used by this WebSessionInfo object.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final TimeZone | DEFAULT_TIME_ZONE |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
canChangePassword()
Returns whether the password can be changed.
| ||||||||||
abstract void |
changePassword(String oldPassword, String newPassword)
Changes the password for the session.
| ||||||||||
abstract void |
changePassword(String newPassword)
Changes the password that will be used in the session.
| ||||||||||
abstract void |
closeSession()
Closes the session used to communicate with the Intelligence Server.
| ||||||||||
abstract Locale |
getDisplayLocale()
Returns the display locale, which is meant to be used for the strings that will
displayed to the user.
| ||||||||||
abstract WebObjectsFactory |
getFactory()
Returns the
WebObjectsFactory instance associated with the current
WebSessionInfo instance. | ||||||||||
abstract Locale |
getLocale()
Returns the current locale setting used for number and date representations.
| ||||||||||
abstract int |
getLocaleID()
Returns the current locale of this object in the format of a Windows locale ID.
| ||||||||||
abstract String |
getLogin()
Returns the current login property.
| ||||||||||
abstract String |
getSessionID()
Returns the session ID which is currently set on this object.
| ||||||||||
abstract String |
getSessionID(boolean create)
Returns the session ID of this object.
| ||||||||||
abstract WebSessionInfoList |
getSessionList()
This method will return the
WebSessionInfoList object that this session belongs to. | ||||||||||
abstract int |
getSessionType()
Returns the type of session for this WebSessionInfo object.
| ||||||||||
abstract TimeZone |
getTimeZone()
Returns the current time zone settings of this object.
| ||||||||||
abstract String |
getTimeZoneID()
Returns the current time zone settings of this object.
| ||||||||||
abstract WebObjectInfo |
getUserInfo()
Retrieves the
WebObjectInfo information about the user corresponding to this session. | ||||||||||
abstract WebObjectInfo |
getUserInfo(boolean populate)
Retrieves the
WebObjectInfo information about the user corresponding to this session. | ||||||||||
abstract boolean |
isActive()
This method will return whether the current session is the active session within its list.
| ||||||||||
abstract boolean |
isAlive()
Returns true if the current session is alive on the I-Server.
| ||||||||||
abstract boolean |
isDirty()
Returns true if the session state changed since last restoreState call.
| ||||||||||
abstract void |
reconnect()
Creates a new session regardless of whether the current session is alive
or not.
| ||||||||||
abstract void |
refresh()
If the current session is alive does nothing, otherwise creates
a new session.
| ||||||||||
abstract void |
setActive()
This method will set the current session as the active session.
| ||||||||||
abstract void |
setDirty(boolean value)
Sets the dirty flag.
| ||||||||||
abstract void |
setDisplayLocale(Locale displayLocale)
Sets the display locale, which is meant to be used for the strings that will
displayed to the user.
| ||||||||||
abstract void |
setLocale(Locale locale)
Configures the number and date locale setting of this object.
| ||||||||||
abstract void |
setLocaleID(int localeID)
Configures the number and date locale setting of this object as a Windows locale ID.
| ||||||||||
abstract void |
setLogin(String login)
Sets the login which will be used in any methods which require that parameter
while communicating with the Intelligence Server.
| ||||||||||
abstract void |
setPassword(String password)
Sets the user password which will be passed to the backend Server when
creating a session.
| ||||||||||
abstract void |
setSessionID(String sessionID)
Sets the sesssion ID, which will be used to tell the backend Server the
credentials of the currently logged-in user.
| ||||||||||
abstract void |
setTimeZone(TimeZone timezone)
Sets the current time zone settings of this object.
| ||||||||||
abstract void |
setTimeZoneID(String timezoneID)
Sets the current time zone settings of this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns whether the password can be changed.
true
if the password can be changed through changePassword(String)
method.Changes the password for the session. This new password will be propagated to any sessions in the list which are in the same cluster and have the same login.
oldPassword | The old password. The user should be prompted for this before allowing a password change, even if they are |
---|
WebObjectsException | |
WebObjectsException |
Changes the password that will be used in the session.
newPassword | The value of the new password. |
---|
WebObjectsException | thrown if an error occured while changing the password. |
---|
Closes the session used to communicate with the Intelligence Server.
WebObjectsException | thrown if the sessionID is invalid. |
---|
Returns the display locale, which is meant to be used for the strings that will displayed to the user. This is not the locale that is sent to the Intelligence Server when creating the session.
Returns the WebObjectsFactory
instance associated with the current
WebSessionInfo instance. They are in one to one relationship.
WebObjectsFactory
instance.
Returns the current locale setting used for number and date representations.
Returns the current locale of this object in the format of a Windows locale ID.
Returns the current login property. However, this property is typically not saved and restored in the web application lifecycle, and therefore may not be be available in other web pages after logging in. This value will be used in any methods which require a login to communicate with the Intelligence Server.
Returns the session ID which is currently set on this object. When there is no session ID exists on this object, a new session ID will be created. The session ID is an identifier which is used in most communications to the server which tells the server the credentials of the user currently logged in. This value can be set manually by calling setSessionID, or will be automatically created from user's credentials provided in this object.
WebObjectsException | Thrown when error occurs during get the session id. |
---|
Returns the session ID of this object. If create
is set to false,
this object will return its session ID as it is; if create
is set to true,
and there is no session ID exists, this object will create a new ID and return it.
The session ID is an identifier which is used in most communications to the
server which tells the server the credentials of the user currently logged in.
This value can be set manually by calling setSessionID, or will be
automatically created from user's credentials provided in this object.
WebObjectsException | Thrown when error occurs during get the session id. |
---|
This method will return the WebSessionInfoList
object that this session belongs to.
Every session has a 1:1 relationship with a session list object.
WebSessionInfoList
object that this session belongs to.Returns the type of session for this WebSessionInfo object.
Returns the current time zone settings of this object. This time zone will be used to format any time related string.
Returns the current time zone settings of this object. This time zone will be used to format any time related string.
DateTimeConverter
object.
Retrieves the WebObjectInfo
information about the user corresponding to this session.
Equivalent to getUserInfo(boolean)
with populate parameter of true.
WebObjectsException | if the user information retrieval ended in an error condition on the I-Server. |
---|
Retrieves the WebObjectInfo
information about the user corresponding to this session.
If uninitialized, and populate is false, null will be returned.
populate | whether to make a round trip to the Intelligence Server |
---|
WebObjectsException | if the user information retrieval ended in an error condition on the I-Server. |
---|
This method will return whether the current session is the active session within its list. The active session will be the session that is used for all Intelligence Server requests.
Returns true if the current session is alive on the I-Server. Resolution is as follows:
WebObjectsException |
---|
Returns true if the session state changed since last restoreState call.
Creates a new session regardless of whether the current session is alive or not.
WebObjectsException |
---|
If the current session is alive does nothing, otherwise creates a new session.
WebObjectsException |
---|
This method will set the current session as the active session. This means that
any requests to the Intelligence Server within the WebObjectsFactory
linked with
the owner WebSessionInfoList
object will be sent using this session's information.
Sets the dirty flag.
value | the flag value. |
---|
Sets the display locale, which is meant to be used for the strings that will displayed to the user. This is not the locale that is sent to the Intelligence Server when creating the session.
displayLocale | The java.util.Locale object representing the display locale. |
---|
Configures the number and date locale setting of this object.
locale | The locale of the current object. |
---|
Configures the number and date locale setting of this object as a Windows locale ID.
localeID | The locale ID of the current locale. |
---|
Sets the login which will be used in any methods which require that parameter while communicating with the Intelligence Server.
login | The login to use when communicating with the Intelligence Server. |
---|
Sets the user password which will be passed to the backend Server when creating a session.
password | The password to use when contacting the backend Server. |
---|
Sets the sesssion ID, which will be used to tell the backend Server the credentials of the currently logged-in user.
sessionID | The session ID to be used when communicating with the server. |
---|
Sets the current time zone settings of this object. This time zone will be used to format any time related string.
timezone | The time zone to set. |
---|
Sets the current time zone settings of this object. This time zone will be used to format any time related string.
timezoneID | The ID for the time zone. The available time zone ID list can be retrieved by calling
getAvailableTimeZoneIDs() from DateTimeConverter object.
|
---|