Class StaticSession

  • All Implemented Interfaces:
    ConfigurationElement, ConfigurationFile, java.lang.Cloneable

    @Deprecated
    public class StaticSession
    extends AbstractConfigurationElement
    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.
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • 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 user
        p - password for the login
        serverName - name of the server
        projectName - name of the project
        sessionName - 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 server
        projectName - name of the project
        port - port number for the session
        sessionName - name -unique identifier- of the session
    • Method Detail

      • getKeyAttribute

        protected java.lang.String getKeyAttribute()
        Deprecated.
        Description copied from class: AbstractConfigurationElement
        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.
        Specified by:
        getKeyAttribute in class AbstractConfigurationElement
        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 String value 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 String value 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 int value 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 the EnumDSSXMLAuthModes enumeration.
      • getAuthenticationMode

        public int getAuthenticationMode()
        Deprecated.
        Return the value of the authentication mode property
        Returns:
        an EnumDSSXMLAuthModes value 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 String value 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 String value 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 String value 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 int value 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: AbstractConfigurationElement
        Initialize the attributes and child elements from the values in the given Node
        Overrides:
        initFromXML in class AbstractConfigurationElement
        Parameters:
        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.
        Since:
        MicroStrategy Web 9.0.0