public class

MWSConnection

extends Object
java.lang.Object
   ↳ com.microstrategy.webservices.MWSConnection

Class Overview

Provides MSTR Web Service Connection functionality including connect, disconnect, server list and project list capabilities.

Summary

Public Constructors
MWSConnection(MWSConnectInfo cInfo)
MWSConnection(MWSConnectInfo cInfo, ContainerServices cs)
MWSConnection(MWSConnectInfo cInfo, boolean bRequiresSession)
MWSConnection(MWSConnectInfo cInfo, boolean bRequiresSession, boolean bLogonToSource)
Public Methods
void changePassword(MWSConnectInfo cInfo, String newPassword)
void closeSession()
Disconnects the current session if active.
void createTrustedRelationship(String webAppName)
Setup Trust relationship between MWS and I-Server.
void deleteTrustedRelationship()
Delete Trusted relationship between MWS and I-Server.
Locale getClientUILocale()
MWSWSDLVersion getClientWSDLVersion()
MWSConnectInfo getConnectInfo()
Locale getDisplayLocale()
WebObjectsFactory getFactoryInstance()
Returns the web objects factory instance created by this object.
String getIServerVersion()
Returns the iServer version number contained in this object.
MWSProjectSessionInfo getProjectSessionInfo()
Returns project status, session, and selected project folder IDs.
ArrayOfMWSProjectInfo getProjectsWithoutSessions()
Returns the list of projects associated with the current session.
String getSessionState()
Returns the session string contained in this object.
boolean isActive()
Indicates whether or not the session contained in this object is active in the I-Server.
boolean isNewSession()
Indicates if the active session was created when this connection object was constructed.
static void main(String[] args)
void restoreSessionState(WebIServerSession serverSession)
Main construction code for the connection class.
String toString()
For logging purposes, returns the session string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MWSConnection (MWSConnectInfo cInfo)

Throws
MWSException

public MWSConnection (MWSConnectInfo cInfo, ContainerServices cs)

Throws
MWSException

public MWSConnection (MWSConnectInfo cInfo, boolean bRequiresSession)

Throws
MWSException

public MWSConnection (MWSConnectInfo cInfo, boolean bRequiresSession, boolean bLogonToSource)

Throws
MWSException

Public Methods

public void changePassword (MWSConnectInfo cInfo, String newPassword)

Throws
MWSException

public void closeSession ()

Disconnects the current session if active.

Throws
MWSException

public void createTrustedRelationship (String webAppName)

Setup Trust relationship between MWS and I-Server. The caller should guarantee that the session is active.

Parameters
webAppName the web application name passed to Intelligence Server
Throws
MWSException

public void deleteTrustedRelationship ()

Delete Trusted relationship between MWS and I-Server. The caller should guarantee that the session is active.

Throws
MWSException

public Locale getClientUILocale ()

public MWSWSDLVersion getClientWSDLVersion ()

public MWSConnectInfo getConnectInfo ()

public Locale getDisplayLocale ()

public WebObjectsFactory getFactoryInstance ()

Returns the web objects factory instance created by this object.

Returns
  • WebObjectsFactory instance.

public String getIServerVersion ()

Returns the iServer version number contained in this object.

Returns
  • Version number in string form

public MWSProjectSessionInfo getProjectSessionInfo ()

Returns project status, session, and selected project folder IDs. Called from connectToProject.

Returns
  • MWSProjectSessionInfo object
Throws
MWSException
MWSException

public ArrayOfMWSProjectInfo getProjectsWithoutSessions ()

Returns the list of projects associated with the current session. Project sessions are not created.

Returns
  • Array of active project available to this session.
Throws
MWSException
MWSException

public String getSessionState ()

Returns the session string contained in this object.

Returns
  • string representing the active session.

public boolean isActive ()

Indicates whether or not the session contained in this object is active in the I-Server.

Returns
  • boolean flag, true if active, false if not.
Throws
MWSException

public boolean isNewSession ()

Indicates if the active session was created when this connection object was constructed.

Returns
  • boolean indicating if new session created.

public static void main (String[] args)

public void restoreSessionState (WebIServerSession serverSession)

Main construction code for the connection class.

Throws
MWSException

public String toString ()

For logging purposes, returns the session string.

Returns
  • string representing the session.