Class ContextInfo

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

    public class ContextInfo
    extends AbstractConfigurationElementList
    The ContextInfo element defines a group of folder links, or shortcuts. A context is generally associated with a single editor or folder browser in the application (specified through a setting in the editor or browser). The context can include different sets of folder links for different projects.
    Since:
    MicroStrategy Web 8.0.0
    • Constructor Detail

      • ContextInfo

        public ContextInfo()
        Default no-arguments constructor.
        Since:
        MicroStrategy Web 9.0.0
    • Method Detail

      • getKeyAttribute

        protected java.lang.String getKeyAttribute()
        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.
        Overrides:
        getKeyAttribute in class AbstractConfigurationElementList
        Since:
        MicroStrategy Web 9.0.0
      • getID

        public int getID()
        Returns the unique identifier of the context.
      • setID

        public void setID​(int id)
        Sets the unique identifier of the context.
        Since:
        MicroStrategy Web 9.0.0
      • getDefaultProject

        public ProjectInfo getDefaultProject()
      • getKey

        public java.lang.Object getKey()
        Description copied from class: AbstractConfigurationElement
        Default implementation for getKey(). It assumes a single attribute can be used to uniquely identify this element among its siblings; the attribute to use is specified by the getKeyAttribute() method.
        Specified by:
        getKey in interface ConfigurationElement
        Overrides:
        getKey in class AbstractConfigurationElement
        Returns:
        If getKeyAttribute() is empty returns null, otherwise it returns the value of the given attribute.
        Since:
        MicroStrategy Web 9.0.0
      • getDescription

        public java.lang.String getDescription()
        Returns a description of the context.
        Since:
        MicroStrategy Web 9.0.0
      • setDescription

        public void setDescription​(java.lang.String value)
        Set the description of the context.
        Since:
        MicroStrategy Web 9.0.0