Package com.microstrategy.web.app
Class StaticSession
- java.lang.Object
 - 
- com.microstrategy.utils.config.AbstractConfigurationElement
 - 
- com.microstrategy.web.app.StaticSession
 
 
 
- 
- All Implemented Interfaces:
 ConfigurationElement,ConfigurationFile,java.lang.Cloneable
@Deprecated public class StaticSession extends AbstractConfigurationElement
Deprecated.Functionality afforded by this class has been superceded byWebAppSessionManagerand the external security feature.The StaticSession class contains the definition of a single static session which might represent a template for sessions partially defined with default information.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
AbstractConfigurationElement.FilteredList 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATT_AUTH_MODEDeprecated.static java.lang.StringATT_NAMEDeprecated.static java.lang.StringATT_PDeprecated.static java.lang.StringATT_PROJECT_NAMEDeprecated.static java.lang.StringATT_SERVER_NAMEDeprecated.static java.lang.StringATT_USER_NAMEDeprecated.static intAUTH_MODE_FIELD_MISSINGDeprecated.Flag for indicating auth mode field is missing from the session informationstatic java.lang.StringNODE_SESSIONDeprecated.Identifier on the configuration file for elements that will become StaticSession instancesstatic intP_FIELD_MISSINGDeprecated.Flag for indicating password field is missing from the session informationstatic intPORT_NUMBER_FIELD_MISSINGDeprecated.Flag for indicating port number field is missing from the session informationstatic intPROJECT_NAME_FIELD_MISSINGDeprecated.Flag for indicating project name field is missing from the session informationstatic intSERVER_NAME_FIELD_MISSINGDeprecated.Flag for indicating server name field is missing from the session informationstatic intUSER_NAME_FIELD_MISSINGDeprecated.Flag for indicating user name field is missing from the session information- 
Fields inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
ATT_CONFIG_SRC, ATT_DELETED, ATT_POSITION, ATT_PROTOTYPE, ATT_USE_DEFAULT 
 - 
 
- 
Constructor Summary
Constructors Constructor Description StaticSession()Deprecated.Class constructor.StaticSession(java.lang.String sessionName, java.lang.String serverName, java.lang.String projectName, int port)Deprecated.Class constructor.StaticSession(java.lang.String sessionName, java.lang.String u, java.lang.String p, java.lang.String serverName, java.lang.String projectName)Deprecated.Class constructor.StaticSession(org.w3c.dom.Node root)Deprecated.Class constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetAuthenticationMode()Deprecated.Return the value of the authentication mode propertyprotected java.lang.StringgetKeyAttribute()Deprecated.This method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.intgetMissingFields()Deprecated.Return a flag which value is set according to the fields missing from this instance definitionjava.lang.StringgetPassword()Deprecated.Return the value of the password propertyintgetPort()Deprecated.Return the value of the port propertyjava.lang.StringgetProjectName()Deprecated.Return the value of the project name propertyjava.lang.StringgetServerName()Deprecated.Return the value of the server name propertyjava.lang.StringgetSessionName()Deprecated.Return the value of the session name propertyjava.lang.StringgetUserName()Deprecated.Return the value of the user name propertyprotected voidinitFromXML(org.w3c.dom.Node root, java.lang.String sourceKey, CustomizationInfo c)Deprecated.Initialize the attributes and child elements from the values in the givenNodevoidsetAuthenticationMode(int authMode)Deprecated.Set the value for the authentication mode propertyvoidsetPassword(java.lang.String p)Deprecated.Set the value for the password propertyvoidsetPort(int port)Deprecated.Set the value for the port propertyvoidsetProjectName(java.lang.String projectName)Deprecated.Set the value for the project name propertyvoidsetServerName(java.lang.String serverName)Deprecated.Set the value for the server name propertyvoidsetSessionName(java.lang.String sessionName)Deprecated.Set the value for the session name -unique identifier- propertyvoidsetUserName(java.lang.String u)Deprecated.Set the value for the user name property- 
Methods inherited from class com.microstrategy.utils.config.AbstractConfigurationElement
addFileSource, applyCustomization, applyCustomizations, cleanUpDeletedElements, clone, delete, deltas, deltas, equalAtts, equalElements, equalNodeValues, equals, equalsIncludingDeletedElements, exportAttributesToXML, exportElementsToXML, exportNodeValueToXML, getAttribute, getAttributes, getBoolAttribute, getChildKey, getConfigSrc, getDTDFileName, getElement, getElement, getElements, getFileLoader, getIntAttribute, getIntAttribute, getKey, getLineNumber, getList, getNextKey, getNodeName, getNodeValue, getNodeValue, getOrCreateElement, getParent, getPosition, getPrototype, getRegisteredClass, getSelfInitPath, getSource, getStrAttribute, getUseDefault, getXMLParserParameters, getXMLSerializerParameters, hashCode, hashCodeAtts, hashCodeElements, hashCodeNodeValues, hasRegisteredClass, initAttributesFromXML, initDefaultAttributes, initElementFromXML, initElementsFromXML, initFromFile, initFromResource, initFromXML, initNodeValueFromXML, initPrototype, isActive, isCustomized, isDeleted, isDirty, isInSource, isKeyAttribute, load, mergeChanges, newChildInstance, newSource, original, populate, printAttributes, printElements, printNodeValue, refreshLists, registerClass, registerElement, registerElement, registerElementList, reload, reloadPrototype, removeAttribute, removeDefaults, replaceList, restore, save, save, saveChangesAs, saveConfig, saveFlatXML, saveNode, saveSource, setAttribute, setBoolAttribute, setChildOriginals, setConfigSrc, setCustomized, setElement, setFileLoader, setIntAttribute, setKey, setLineNumber, setNodeName, setNodeValue, setPosition, setPrototype, setSelfInitPath, setStrAttribute, setUseDefault, setUseValidation, throwConfigParseException, toString, toXML, toXML, toXML, toXML, useNodeValue, useValidation 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NODE_SESSION
public static final java.lang.String NODE_SESSION
Deprecated.Identifier on the configuration file for elements that will become StaticSession instances- See Also:
 - Constant Field Values
 
 
- 
ATT_AUTH_MODE
public static final java.lang.String ATT_AUTH_MODE
Deprecated.- Since:
 - MicroStrategy Web 9.0.0
 - See Also:
 - Constant Field Values
 
 
- 
ATT_P
public static final java.lang.String ATT_P
Deprecated.- Since:
 - MicroStrategy Web 11.3.3
 - See Also:
 - Constant Field Values
 
 
- 
ATT_USER_NAME
public static final java.lang.String ATT_USER_NAME
Deprecated.- Since:
 - MicroStrategy Web 9.0.0
 - See Also:
 - Constant Field Values
 
 
- 
ATT_PROJECT_NAME
public static final java.lang.String ATT_PROJECT_NAME
Deprecated.- Since:
 - MicroStrategy Web 9.0.0
 - See Also:
 - Constant Field Values
 
 
- 
ATT_SERVER_NAME
public static final java.lang.String ATT_SERVER_NAME
Deprecated.- Since:
 - MicroStrategy Web 9.0.0
 - See Also:
 - Constant Field Values
 
 
- 
ATT_NAME
public static final java.lang.String ATT_NAME
Deprecated.- Since:
 - MicroStrategy Web 9.0.0
 - See Also:
 - Constant Field Values
 
 
- 
USER_NAME_FIELD_MISSING
public static final int USER_NAME_FIELD_MISSING
Deprecated.Flag for indicating user name field is missing from the session information- See Also:
 - Constant Field Values
 
 
- 
P_FIELD_MISSING
public static final int P_FIELD_MISSING
Deprecated.Flag for indicating password field is missing from the session information- See Also:
 - Constant Field Values
 
 
- 
SERVER_NAME_FIELD_MISSING
public static final int SERVER_NAME_FIELD_MISSING
Deprecated.Flag for indicating server name field is missing from the session information- See Also:
 - Constant Field Values
 
 
- 
PROJECT_NAME_FIELD_MISSING
public static final int PROJECT_NAME_FIELD_MISSING
Deprecated.Flag for indicating project name field is missing from the session information- See Also:
 - Constant Field Values
 
 
- 
PORT_NUMBER_FIELD_MISSING
public static final int PORT_NUMBER_FIELD_MISSING
Deprecated.Flag for indicating port number field is missing from the session information- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
- 
AUTH_MODE_FIELD_MISSING
public static final int AUTH_MODE_FIELD_MISSING
Deprecated.Flag for indicating auth mode field is missing from the session information- Since:
 - MicroStrategy Web 8.0.0
 - See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
StaticSession
public StaticSession()
Deprecated.Class constructor. Initializes a new -empty- instance of the StaticSession class. 
- 
StaticSession
public StaticSession(org.w3c.dom.Node root)
Deprecated.Class constructor. Initialize a new instance of the StaticSession class with information from the XML node.- Parameters:
 root- Node instance representing the static session element.
 
- 
StaticSession
public StaticSession(java.lang.String sessionName, java.lang.String u, java.lang.String p, java.lang.String serverName, java.lang.String projectName)Deprecated.Class constructor. Initializes the instance setting its properties to the information set as parameter.- Parameters:
 u- name of the userp- password for the loginserverName- name of the serverprojectName- name of the projectsessionName- name -unique identifier- of the session
 
- 
StaticSession
public StaticSession(java.lang.String sessionName, java.lang.String serverName, java.lang.String projectName, int port)Deprecated.Class constructor. Initializes the instance setting its properties to the information set as parameter.- Parameters:
 serverName- name of the serverprojectName- name of the projectport- port number for the sessionsessionName- name -unique identifier- of the session
 
 - 
 
- 
Method Detail
- 
getKeyAttribute
protected java.lang.String getKeyAttribute()
Deprecated.Description copied from class:AbstractConfigurationElementThis method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override thegetKeyandsetKeymethods.- Specified by:
 getKeyAttributein classAbstractConfigurationElement- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setUserName
public void setUserName(java.lang.String u)
Deprecated.Set the value for the user name property- Parameters:
 u- name of the user
 
- 
getUserName
public java.lang.String getUserName()
Deprecated.Return the value of the user name property- Returns:
 - a 
Stringvalue with the name of the user (UID / Login) 
 
- 
setPassword
public void setPassword(java.lang.String p)
Deprecated.Set the value for the password property- Parameters:
 p- password for the login
 
- 
getPassword
public java.lang.String getPassword()
Deprecated.Return the value of the password property- Returns:
 - a 
Stringvalue with the password corresponding to the login 
 
- 
setPort
public void setPort(int port)
Deprecated.Set the value for the port property- Parameters:
 port- port for the login
 
- 
getPort
public int getPort()
Deprecated.Return the value of the port property- Returns:
 - a 
intvalue with the port corresponding to the login 
 
- 
setAuthenticationMode
public void setAuthenticationMode(int authMode)
Deprecated.Set the value for the authentication mode property- Parameters:
 authMode- authentication mode for the login. A value of theEnumDSSXMLAuthModesenumeration.
 
- 
getAuthenticationMode
public int getAuthenticationMode()
Deprecated.Return the value of the authentication mode property- Returns:
 - an 
EnumDSSXMLAuthModesvalue with the authentication mode corresponding to the login 
 
- 
setServerName
public void setServerName(java.lang.String serverName)
Deprecated.Set the value for the server name property- Parameters:
 serverName- name of the server
 
- 
getServerName
public java.lang.String getServerName()
Deprecated.Return the value of the server name property- Returns:
 - a 
Stringvalue with the name of the server 
 
- 
setProjectName
public void setProjectName(java.lang.String projectName)
Deprecated.Set the value for the project name property- Parameters:
 projectName- name of the project
 
- 
getProjectName
public java.lang.String getProjectName()
Deprecated.Return the value of the project name property- Returns:
 - a 
Stringvalue with the name of the project 
 
- 
setSessionName
public void setSessionName(java.lang.String sessionName)
Deprecated.Set the value for the session name -unique identifier- property- Parameters:
 sessionName- name -unique identifier- of the session
 
- 
getSessionName
public java.lang.String getSessionName()
Deprecated.Return the value of the session name property- Returns:
 - a 
Stringvalue with the name -identifier- of the session 
 
- 
getMissingFields
public int getMissingFields()
Deprecated.Return a flag which value is set according to the fields missing from this instance definition- Returns:
 - an 
intvalue with a flag value indicating which fields are missing from the session definition. 
 
- 
initFromXML
protected void initFromXML(org.w3c.dom.Node root, java.lang.String sourceKey, CustomizationInfo c)Deprecated.Description copied from class:AbstractConfigurationElementInitialize the attributes and child elements from the values in the givenNode- Overrides:
 initFromXMLin classAbstractConfigurationElement- Parameters:
 root- The DOM Node from where the information is readsourceKey- The key that identifies theElementSourcewhere the values are being readc- CustomizationInfo class where theElementSourcewas loaded from.- Since:
 - MicroStrategy Web 9.0.0
 
 
 - 
 
 -