Class ProjectInfo

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

    public class ProjectInfo
    extends AbstractConfigurationElementList
    Groups a set of shortcuts to system folders on a project basis. It is found inside a context and can be used to determine which folder links, or shortcuts, should appear on browsers in which MicroStrategy projects. Notice that shortcuts under the default project appear in all projects.
    Since:
    MicroStrategy Web 8.0.0
    • Field Detail

      • NODE_PROJECT

        public static final java.lang.String NODE_PROJECT
        Constant for the 'project' node used in the objBrowserFolderLinks.xml
        See Also:
        Constant Field Values
      • ATT_NAME

        public static final java.lang.String ATT_NAME
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProjectInfo

        public ProjectInfo()
        Default no-arg 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
      • 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
      • setKey

        public void setKey​(org.w3c.dom.Element element)
        Description copied from class: AbstractConfigurationElement
        Default implementation for setKey(). It assumes a single attribute can be used to uniquely identify this element among its siblings and adds this attribute to the given element; the attribute to use is specified by the getKeyAttribute() method.
        Overrides:
        setKey in class AbstractConfigurationElement
        Since:
        MicroStrategy Web 9.0.0
      • getID

        public java.lang.String getID()
        Returns the id of the project (from the metadata) that is associated with the group of folder links, or shortcuts. If it's the default project it returns null.
      • setID

        public void setID​(java.lang.String value)
        Sets the id of the project (from the metadata) that is associated with the group of folder links, or shortcuts. If value is null, it sets this as the default project
        Since:
        MicroStrategy Web 9.0.0
      • getRootFolder

        public FolderLink getRootFolder()
        Return the root folder for a particular project
        Returns:
        FolderLink
      • isDefault

        public boolean isDefault()
        Returns whether this is the default project. Notice that when true, the shortcuts defined inside this ProjectInfo element appear in all projects.
      • setIsDefault

        public void setIsDefault​(boolean isDefault)
        Indicates whether this is the default project. When true, the shortcuts defined inside this ProjetInfo element appear in all projects.
        Since:
        MicroStrategy Web 9.0.0
      • getName

        public java.lang.String getName()
        Returns the name of the project (from the metadata) that is associated with the group of folder links, or shortcuts. Notice however that this is not used by the application, folder-links for a specific project are always identified based on the project-id.
        Returns:
        the name attribute
        Since:
        MicroStrategy Web 9.0.0
      • setName

        public void setName​(java.lang.String value)
        Sets the name of the project (from the metadata) that is associated with the group of folder links, or shortcuts. Notice however that this is not used by the application, folder-links for a specific project are always identified based on the project-id.
        Parameters:
        value - the value of name attribute
        Since:
        MicroStrategy Web 9.0.0