Package com.microstrategy.webapi
Class ACMSessionIdResolver.SymmetricReuseSessionReconstructor
- java.lang.Object
-
- com.microstrategy.webapi.ACMSessionReconstructor
-
- com.microstrategy.webapi.ACMSessionIdResolver.SymmetricReuseSessionReconstructor
-
- Enclosing class:
- ACMSessionIdResolver
public static class ACMSessionIdResolver.SymmetricReuseSessionReconstructor extends ACMSessionReconstructor
SymmetricReuseSessionReconstructor reconstructs sessions for the case (1) symmetric, (2) reuse sessions Notice that this is a static inner class that does NOT relying on the outer instance. That's because in the non ACM workflows the outer instance does not exist The implementation is trivial, because when reusing the session nothing needs to be done.
-
-
Field Summary
-
Fields inherited from class com.microstrategy.webapi.ACMSessionReconstructor
mClusterInfo, mProjectIdOpt, mServerSession, mSessionId
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SymmetricReuseSessionReconstructor(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createMasterSessionIdIfNeeded(IDSSXMLSessionId.IConfigSessionId lConfigSessionId, java.util.Optional<java.lang.String> iProjectIdOpt, ACMJwt iACMJwt, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, int iIServerSessionIdleTimeout, boolean iIsCloseable)
void
createProjectSessionIfNeeded(IDSSXMLSessionId.IConfigSessionId iConfigSessionId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMJwt iACMJwt)
createProjectSessionIfNeeded will create the project session if the original session was a project sessionIDSSXMLSessionId.IConfigSessionId
getConfigSession(com.microstrategy.webapi.CDSSXMLServerSessionImpl.GetJwtReturn lNewSessionInfo)
getConfigSession will use the newly created config session no matter whatIDSSXMLSessionId
getSessionId()
boolean
isConfigSessionCloseable()
isConfigSessionCloseable will return true no matter what-
Methods inherited from class com.microstrategy.webapi.ACMSessionReconstructor
createAsymmetricNew, createAsymmetricReuse, createSymmetricNew, createSymmetricReuse
-
-
-
-
Constructor Detail
-
SymmetricReuseSessionReconstructor
protected SymmetricReuseSessionReconstructor(IDSSXMLServerSession iServerSession, IDSSXMLSessionId iSessionId, java.lang.String iProjectId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMClusterInfo iClusterInfo) throws MSTRWebAPIException
- Throws:
MSTRWebAPIException
-
-
Method Detail
-
getConfigSession
public IDSSXMLSessionId.IConfigSessionId getConfigSession(com.microstrategy.webapi.CDSSXMLServerSessionImpl.GetJwtReturn lNewSessionInfo) throws MSTRWebAPIException
getConfigSession will use the newly created config session no matter what- Specified by:
getConfigSession
in classACMSessionReconstructor
- Throws:
MSTRWebAPIException
-
isConfigSessionCloseable
public boolean isConfigSessionCloseable()
isConfigSessionCloseable will return true no matter what- Specified by:
isConfigSessionCloseable
in classACMSessionReconstructor
-
createMasterSessionIdIfNeeded
public void createMasterSessionIdIfNeeded(IDSSXMLSessionId.IConfigSessionId lConfigSessionId, java.util.Optional<java.lang.String> iProjectIdOpt, ACMJwt iACMJwt, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, int iIServerSessionIdleTimeout, boolean iIsCloseable) throws MSTRWebAPIException
- Specified by:
createMasterSessionIdIfNeeded
in classACMSessionReconstructor
- Throws:
MSTRWebAPIException
-
createProjectSessionIfNeeded
public void createProjectSessionIfNeeded(IDSSXMLSessionId.IConfigSessionId iConfigSessionId, ACMGSSCredential iGSSCredential, ACMCreateSessionParams iCSParams, ACMJwt iACMJwt) throws MSTRWebAPIException
createProjectSessionIfNeeded will create the project session if the original session was a project session- Specified by:
createProjectSessionIfNeeded
in classACMSessionReconstructor
- Throws:
MSTRWebAPIException
-
getSessionId
public IDSSXMLSessionId getSessionId()
- Specified by:
getSessionId
in classACMSessionReconstructor
-
-