Package com.microstrategy.webapi
Class ACMSessionReconstructor
- java.lang.Object
-
- com.microstrategy.webapi.ACMSessionReconstructor
-
public abstract class ACMSessionReconstructor extends java.lang.Object
ACMSessionReconstructor is the base class to recreate a session. In some cases the original session should be reused and in other cases the original session should be only the springboard to create entirely new sessions. The general workflow for the two cases is similar, while subtle differences are handled via polymorphism
-
-
Field Summary
Fields Modifier and Type Field Description protected ACMClusterInfo
mClusterInfo
protected java.util.Optional<java.lang.String>
mProjectIdOpt
protected com.microstrategy.webapi.CDSSXMLServerSessionImpl
mServerSession
protected IDSSXMLSessionId
mSessionId
-
Constructor Summary
Constructors Modifier Constructor Description protected
ACMSessionReconstructor(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo, boolean iReuseConnection)
ACMSessionReconstructor is the base constructor that drives the walk through the polymorhpic method
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ACMSessionReconstructor
createAsymmetricNew(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo)
createAsymmetricNew creates an ACMSessionReconstructor that will do the work to reconstruct a session in an asymmetric workflow (used by Library) and the flag to reuse the session is off (default)static ACMSessionReconstructor
createAsymmetricReuse(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo)
createAsymmetricReuse creates an ACMSessionReconstructor that will do the work to reconstruct a session in an asymmetric workflow (used by Library) and the flag to reuse the session is onprotected abstract void
createMasterSessionIdIfNeeded(IDSSXMLSessionId.IConfigSessionId lConfigSessionId, java.util.Optional<java.lang.String> iProjectIdOpt, ACMJwt iACMJwt, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, int iIServerSessionIdleTimeout, boolean iIsCloseable)
protected abstract void
createProjectSessionIfNeeded(IDSSXMLSessionId.IConfigSessionId iConfigSessionId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMJwt iACMJwt)
protected abstract IDSSXMLSessionId.IConfigSessionId
getConfigSession(com.microstrategy.webapi.CDSSXMLServerSessionImpl.GetJwtReturn iNewSessionInfo)
abstract IDSSXMLSessionId
getSessionId()
protected abstract boolean
isConfigSessionCloseable()
-
-
-
Field Detail
-
mServerSession
protected final com.microstrategy.webapi.CDSSXMLServerSessionImpl mServerSession
-
mSessionId
protected final IDSSXMLSessionId mSessionId
-
mProjectIdOpt
protected final java.util.Optional<java.lang.String> mProjectIdOpt
-
mClusterInfo
protected final ACMClusterInfo mClusterInfo
-
-
Constructor Detail
-
ACMSessionReconstructor
protected ACMSessionReconstructor(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo, boolean iReuseConnection) throws MSTRWebAPIException
ACMSessionReconstructor is the base constructor that drives the walk through the polymorhpic method- Parameters:
iServerSession
-iSessionId
-iProjectId
-iGSSCredential
-iCSParams
-iClusterInfo
-- Throws:
MSTRWebAPIException
-
-
Method Detail
-
getSessionId
public abstract IDSSXMLSessionId getSessionId()
-
getConfigSession
protected abstract IDSSXMLSessionId.IConfigSessionId getConfigSession(com.microstrategy.webapi.CDSSXMLServerSessionImpl.GetJwtReturn iNewSessionInfo) throws MSTRWebAPIException
- Throws:
MSTRWebAPIException
-
isConfigSessionCloseable
protected abstract boolean isConfigSessionCloseable()
-
createMasterSessionIdIfNeeded
protected abstract void createMasterSessionIdIfNeeded(IDSSXMLSessionId.IConfigSessionId lConfigSessionId, java.util.Optional<java.lang.String> iProjectIdOpt, ACMJwt iACMJwt, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, int iIServerSessionIdleTimeout, boolean iIsCloseable) throws MSTRWebAPIException
- Throws:
MSTRWebAPIException
-
createProjectSessionIfNeeded
protected abstract void createProjectSessionIfNeeded(IDSSXMLSessionId.IConfigSessionId iConfigSessionId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMJwt iACMJwt) throws MSTRWebAPIException
- Throws:
MSTRWebAPIException
-
createAsymmetricReuse
public static ACMSessionReconstructor createAsymmetricReuse(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo) throws MSTRWebAPIException
createAsymmetricReuse creates an ACMSessionReconstructor that will do the work to reconstruct a session in an asymmetric workflow (used by Library) and the flag to reuse the session is on- Parameters:
iServerSession
-iSessionId
-iProjectId
-iGSSCredential
-iCSParams
-iClusterInfo
-- Returns:
- Throws:
MSTRWebAPIException
-
createAsymmetricNew
public static ACMSessionReconstructor createAsymmetricNew(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo) throws MSTRWebAPIException
createAsymmetricNew creates an ACMSessionReconstructor that will do the work to reconstruct a session in an asymmetric workflow (used by Library) and the flag to reuse the session is off (default)- Parameters:
iServerSession
-iSessionId
-iProjectId
-iGSSCredential
-iCSParams
-iClusterInfo
-- Returns:
- Throws:
MSTRWebAPIException
-
-