Package com.microstrategy.webapi.acm
Class ACMSessionId.ProjectSessionId
- java.lang.Object
-
- com.microstrategy.webapi.acm.ACMSessionId
-
- com.microstrategy.webapi.acm.ACMSessionId.ProjectSessionId
-
- All Implemented Interfaces:
IDSSXMLSessionId
,IDSSXMLSessionId.IProjectSessionId
,java.lang.Comparable<ACMSessionId>
- Enclosing class:
- ACMSessionId
public static class ACMSessionId.ProjectSessionId extends ACMSessionId implements IDSSXMLSessionId.IProjectSessionId
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.webapi.acm.ACMSessionId
ACMSessionId.ConfigSessionId, ACMSessionId.MasterSessionId, ACMSessionId.ProjectSessionId
-
Nested classes/interfaces inherited from interface com.microstrategy.webapi.IDSSXMLSessionId
IDSSXMLSessionId.Factory, IDSSXMLSessionId.IConfigSessionId, IDSSXMLSessionId.IMasterSessionId, IDSSXMLSessionId.IProjectSessionId, IDSSXMLSessionId.TYPE
-
-
Constructor Summary
Constructors Constructor Description ProjectSessionId(IDSSXMLSessionIdParser iSessionIdParser)
ProjectSessionId(java.lang.String iAugmentedSessionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDSSXMLSessionId.IConfigSessionId
castConfigSessionId()
castConfigSessionId returns the IConfigSessionId already cast.java.util.Optional<IDSSXMLSessionId.IConfigSessionId>
castConfigSessionIdOpt()
IDSSXMLSessionId.IMasterSessionId
castMasterSessionId()
castMasterSessionId returns the IMasterSessionId already cast.java.util.Optional<IDSSXMLSessionId.IMasterSessionId>
castMasterSessionIdOpt()
IDSSXMLSessionId.IProjectSessionId
castProjectSessionId()
castProjectSessionId returns the IPsid already cast.java.util.Optional<IDSSXMLSessionId.IProjectSessionId>
castProjectSessionIdOpt()
ACMSessionId.ProjectSessionId
Clone()
Clone will create a new copy of the IDSSXMLSessionId.java.util.Optional<IDSSXMLSessionId.IConfigSessionId>
getConfigSessionId()
java.util.Optional<IDSSXMLSessionId.IMasterSessionId>
getMasterSessionId()
java.util.Optional<IDSSXMLSessionId.IProjectSessionId>
getProjectSessionId()
-
Methods inherited from class com.microstrategy.webapi.acm.ACMSessionId
addLocale, addMessageId, addProjectId, addRetVal, addSSProjectId, compareTo, equals, getAugmentedSessionId, getIServerNodeName, getLocale, getLocaleOpt, getMessageId, getMessageIdOpt, getObscuredAugmentedSessionId, getPort, getProjectId, getProjectIdOpt, getRetVal, getRetValOpt, getSessionId, getSSProjectId, getSSProjectIdOpt, getType, hashCode, hasLocale, hasMessageId, hasProjectId, hasRetVal, hasSSProjectId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.webapi.IDSSXMLSessionId
addLocale, addMessageId, addProjectId, addRetVal, addSSProjectId, getAugmentedSessionId, getIServerNodeName, getLocale, getLocaleOpt, getMessageId, getMessageIdOpt, getObscuredAugmentedSessionId, getPort, getProjectId, getProjectIdOpt, getRetVal, getRetValOpt, getSessionId, getSSProjectId, getSSProjectIdOpt, getType, hasLocale, hasMessageId, hasProjectId, hasRetVal, hasSSProjectId
-
-
-
-
Constructor Detail
-
ProjectSessionId
public ProjectSessionId(java.lang.String iAugmentedSessionId) throws MSTRWebAPIException
- Throws:
MSTRWebAPIException
-
ProjectSessionId
public ProjectSessionId(IDSSXMLSessionIdParser iSessionIdParser) throws MSTRWebAPIException
- Throws:
MSTRWebAPIException
-
-
Method Detail
-
castMasterSessionId
public IDSSXMLSessionId.IMasterSessionId castMasterSessionId() throws MSTRWebAPIException
Description copied from interface:IDSSXMLSessionId
castMasterSessionId returns the IMasterSessionId already cast. If this object is not a MasterSessionId it will throw MSTRWebAPIException. To avoid the throw use getType to find out what type it is before casting- Specified by:
castMasterSessionId
in interfaceIDSSXMLSessionId
- Returns:
- the cast Master Session Id
- Throws:
MSTRWebAPIException
- when it is not a Master Session Id
-
castMasterSessionIdOpt
public java.util.Optional<IDSSXMLSessionId.IMasterSessionId> castMasterSessionIdOpt()
- Specified by:
castMasterSessionIdOpt
in interfaceIDSSXMLSessionId
-
getMasterSessionId
public java.util.Optional<IDSSXMLSessionId.IMasterSessionId> getMasterSessionId()
- Specified by:
getMasterSessionId
in interfaceIDSSXMLSessionId
-
castConfigSessionId
public IDSSXMLSessionId.IConfigSessionId castConfigSessionId() throws MSTRWebAPIException
Description copied from interface:IDSSXMLSessionId
castConfigSessionId returns the IConfigSessionId already cast. If this object is not a ConfigSessionId it will throw MSTRWebAPIException. To avoid the throw use getType to find out what type it is before casting- Specified by:
castConfigSessionId
in interfaceIDSSXMLSessionId
- Specified by:
castConfigSessionId
in classACMSessionId
- Returns:
- the cast Configuration Session Id
- Throws:
MSTRWebAPIException
- when it is not a Configuration Session Id
-
castConfigSessionIdOpt
public java.util.Optional<IDSSXMLSessionId.IConfigSessionId> castConfigSessionIdOpt()
- Specified by:
castConfigSessionIdOpt
in interfaceIDSSXMLSessionId
- Specified by:
castConfigSessionIdOpt
in classACMSessionId
-
getConfigSessionId
public java.util.Optional<IDSSXMLSessionId.IConfigSessionId> getConfigSessionId()
- Specified by:
getConfigSessionId
in interfaceIDSSXMLSessionId
-
castProjectSessionId
public IDSSXMLSessionId.IProjectSessionId castProjectSessionId() throws MSTRWebAPIException
Description copied from interface:IDSSXMLSessionId
castProjectSessionId returns the IPsid already cast. If this object is not a ProjectSessionId it will throw MSTRWebAPIException. To avoid the throw use getType to find out what type it is before casting- Specified by:
castProjectSessionId
in interfaceIDSSXMLSessionId
- Specified by:
castProjectSessionId
in classACMSessionId
- Returns:
- the cast Project Session Id
- Throws:
MSTRWebAPIException
- when it is not a Project Session Id
-
castProjectSessionIdOpt
public java.util.Optional<IDSSXMLSessionId.IProjectSessionId> castProjectSessionIdOpt()
- Specified by:
castProjectSessionIdOpt
in interfaceIDSSXMLSessionId
- Specified by:
castProjectSessionIdOpt
in classACMSessionId
-
getProjectSessionId
public java.util.Optional<IDSSXMLSessionId.IProjectSessionId> getProjectSessionId()
- Specified by:
getProjectSessionId
in interfaceIDSSXMLSessionId
-
Clone
public ACMSessionId.ProjectSessionId Clone() throws MSTRWebAPIException
Description copied from interface:IDSSXMLSessionId
Clone will create a new copy of the IDSSXMLSessionId. This is good because the ConfigSessionIds and ProjectSessionIds are held inside a number of maps and will be accessed on different threads. To avoid locking, it is good to create a Clone that you can use temporarily- Specified by:
Clone
in interfaceIDSSXMLSessionId
- Specified by:
Clone
in interfaceIDSSXMLSessionId.IProjectSessionId
- Specified by:
Clone
in classACMSessionId
- Returns:
- the cloned Session Id
- Throws:
MSTRWebAPIException
-
-