| java.lang.Object | ||
| ↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
| ↳ | com.microstrategy.web.app.StaticSession | |
This class is deprecated.
Functionality afforded by this class has been superceded by WebAppSessionManager and 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.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | ATT_AUTH_MODE | ||||||||||
| String | ATT_NAME | ||||||||||
| String | ATT_PASSWORD | ||||||||||
| String | ATT_PROJECT_NAME | ||||||||||
| String | ATT_SERVER_NAME | ||||||||||
| String | ATT_USER_NAME | ||||||||||
| int | AUTH_MODE_FIELD_MISSING | Flag for indicating auth mode field is missing from the session information | |||||||||
| String | NODE_SESSION | Identifier on the configuration file for elements that will become StaticSession instances | |||||||||
| int | PASSWORD_FIELD_MISSING | Flag for indicating password field is missing from the session information | |||||||||
| int | PORT_NUMBER_FIELD_MISSING | Flag for indicating port number field is missing from the session information | |||||||||
| int | PROJECT_NAME_FIELD_MISSING | Flag for indicating project name field is missing from the session information | |||||||||
| int | SERVER_NAME_FIELD_MISSING | Flag for indicating server name field is missing from the session information | |||||||||
| int | USER_NAME_FIELD_MISSING | Flag for indicating user name field is missing from the session information | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.utils.config.AbstractConfigurationElement
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
StaticSession()
Class constructor.
| |||||||||||
|
StaticSession(Node root)
Class constructor.
| |||||||||||
|
StaticSession(String sessionName, String userName, String password, String serverName, String projectName)
Class constructor.
| |||||||||||
|
StaticSession(String sessionName, String serverName, String projectName, int port)
Class constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int |
getAuthenticationMode()
Return the value of the authentication mode property
| ||||||||||
| int |
getMissingFields()
Return a flag which value is set according to the fields missing from this
instance definition
| ||||||||||
| String |
getPassword()
Return the value of the password property
| ||||||||||
| int |
getPort()
Return the value of the port property
| ||||||||||
| String |
getProjectName()
Return the value of the project name property
| ||||||||||
| String |
getServerName()
Return the value of the server name property
| ||||||||||
| String |
getSessionName()
Return the value of the session name property
| ||||||||||
| String |
getUserName()
Return the value of the user name property
| ||||||||||
| void |
setAuthenticationMode(int authMode)
Set the value for the authentication mode property
| ||||||||||
| void |
setPassword(String password)
Set the value for the password property
| ||||||||||
| void |
setPort(int port)
Set the value for the port property
| ||||||||||
| void |
setProjectName(String projectName)
Set the value for the project name property
| ||||||||||
| void |
setServerName(String serverName)
Set the value for the server name property
| ||||||||||
| void |
setSessionName(String sessionName)
Set the value for the session name -unique identifier- property
| ||||||||||
| void |
setUserName(String userName)
Set the value for the user name property
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String |
getKeyAttribute()
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 the
getKey and
setKey methods. | ||||||||||
| void |
initFromXML(Node root, String sourceKey, CustomizationInfo c)
Initialize the attributes and child elements from the values in the given
Node | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.utils.config.AbstractConfigurationElement
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.microstrategy.utils.config.ConfigurationElement
| |||||||||||
From interface
com.microstrategy.utils.config.ConfigurationFile
| |||||||||||
Flag for indicating auth mode field is missing from the session information
Identifier on the configuration file for elements that will become StaticSession instances
Flag for indicating password field is missing from the session information
Flag for indicating port number field is missing from the session information
Flag for indicating project name field is missing from the session information
Flag for indicating server name field is missing from the session information
Flag for indicating user name field is missing from the session information
Class constructor. Initializes a new -empty- instance of the StaticSession class.
Class constructor. Initialize a new instance of the StaticSession class with information from the XML node.
| root | Node instance representing the static session element. |
|---|
Class constructor. Initializes the instance setting its properties to the information set as parameter.
| sessionName | name -unique identifier- of the session |
|---|---|
| userName | name of the user |
| password | password for the login |
| serverName | name of the server |
| projectName | name of the project |
Class constructor. Initializes the instance setting its properties to the information set as parameter.
| sessionName | name -unique identifier- of the session |
|---|---|
| serverName | name of the server |
| projectName | name of the project |
| port | port number for the session |
Return the value of the authentication mode property
EnumDSSXMLAuthModes value with the authentication mode corresponding to the login
Return a flag which value is set according to the fields missing from this instance definition
int value with a flag value indicating which fields are missing from
the session definition.
Return the value of the password property
String value with the password corresponding to the login
Return the value of the port property
int value with the port corresponding to the login
Return the value of the project name property
String value with the name of the project
Return the value of the server name property
String value with the name of the server
Return the value of the session name property
String value with the name -identifier- of the session
Return the value of the user name property
String value with the name of the user (UID / Login)
Set the value for the authentication mode property
| authMode | authentication mode for the login. A value of the
EnumDSSXMLAuthModes enumeration.
|
|---|
Set the value for the password property
| password | password for the login |
|---|
Set the value for the port property
| port | port for the login |
|---|
Set the value for the project name property
| projectName | name of the project |
|---|
Set the value for the server name property
| serverName | name of the server |
|---|
Set the value for the session name -unique identifier- property
| sessionName | name -unique identifier- of the session |
|---|
Set the value for the user name property
| userName | name of the user |
|---|
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 the getKey and
setKey methods.
Initialize the attributes and child elements from the values in the given Node
| root | The DOM Node from where the information is read |
|---|---|
| sourceKey | The key that identifies the ElementSource where the values are being read |
| c | CustomizationInfo class where the ElementSource was loaded from. |