Class FolderMapping

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

    public class FolderMapping
    extends AbstractConfigurationElement
    This class represents a Folder Map. This is the mapping between the folder in the EnumDSSXMLFolderNames and it's corresponding page of the pageConfig. For example com.microstrategy.webapi.EnumDSSXMLFolderNames.DssXmlFolderNamePublicReports maps to "shared" page. This folder mapping indicates the default page that the application uses to display the contents of the metadata project folder specified by the named-page attribute.
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Constructor Detail

      • FolderMapping

        public FolderMapping()
        Empty constructor
      • FolderMapping

        public FolderMapping​(org.w3c.dom.Node root)
        Creates an FolderMapping with the information in the xml node.
        Parameters:
        root - An XML Node with the information for this event map.
      • FolderMapping

        public FolderMapping​(java.lang.String namedFolder,
                             java.lang.String target)
        Constructor for an FolderMapping with the given the arguments.
        Parameters:
        namedFolder - A fully qualified enumeration value of the folder
        target - The name of the target page
    • 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.
        Specified by:
        getKeyAttribute in class AbstractConfigurationElement
        Since:
        MicroStrategy Web 9.0.0
      • getFolderId

        public int getFolderId()
        Returns the corresponding sysFolderId of the named-folder, that is the enumeration value of associated named-folder.
      • getNamedFolder

        public java.lang.String getNamedFolder()
        Returns the value of the named-folder. The value is the fully-qualified name of the EnumDSSXMLFolderNames interface (for example, "com.microstrategy.webapi.EnumDSSXMLFolderNames.DssXmlFolderNamePublicReports").
      • setNamedFolder

        public void setNamedFolder​(java.lang.String value)
        Set the value for the named folder. Indicates the system folder to associate with the page identified by the target-page attribute. The value is the fully-qualified name of the EnumDSSXMLFolderNames interface (for example, "com.microstrategy.webapi.EnumDSSXMLFolderNames.DssXmlFolderNamePublicReports").
        Since:
        MicroStrategy Web 9.0.0
      • getTargetPage

        public java.lang.String getTargetPage()
        The target-page attribute indicates the name of the default page to open (for example, "shared" or "my") when the application browses to the folder specified by the named-page attribute.
      • setTargetPage

        public void setTargetPage​(java.lang.String value)
        Set The target-page attribute indicates the name of the default page to open (for example, "shared" or "my") when the application browses to the folder specified by the named-page attribute.
        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