Class ObjBrowserFolderLinks

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

    public class ObjBrowserFolderLinks
    extends AbstractConfigurationElementList
    Lists a series of folder link definitions. Each folder-link element represents a shortcut to a system folder. These shortcuts are rendered in several folder browsers within the application, such as the Report All Object Browser and the browsers associated with the Save As Dialog and the Object Manipulation Dialog.
    Since:
    MicroStrategy Web 8.0.0
    • Field Detail

      • NODE_CONTEXT_LIST

        public static final java.lang.String NODE_CONTEXT_LIST
        Constant for the name of the 'context-list' node in the objBrowserFolderLinks.xml
        See Also:
        Constant Field Values
    • Constructor Detail

      • ObjBrowserFolderLinks

        public ObjBrowserFolderLinks()
        Class constructor. Initializes a new -empty- instance of the ErrorInfoList class.
      • ObjBrowserFolderLinks

        public ObjBrowserFolderLinks​(org.w3c.dom.Node root)
        Class constructor. Initializes a ObjBrowserFolderLinksList instance based on the information included in the XML Node
        Parameters:
        root - Node instance representing the shortcut list information.
      • ObjBrowserFolderLinks

        public ObjBrowserFolderLinks​(org.w3c.dom.Document doc)
        Class constructor. Initializes a ObjBrowserFolderLinksList instance based on the information included in the DOM Document
        Parameters:
        doc - Document instance representing the shortcut list information.
    • Method Detail

      • getFolderLinks

        public SimpleList getFolderLinks​(int contextID,
                                         java.lang.String projectID)
        Method that returns a list of FolderLinks for a particular context and project.
        Parameters:
        contextID - int
        projectID - String
        Returns:
        SimpleList
      • getFolderLinks

        public SimpleList getFolderLinks​(AppContext appContext,
                                         int contextID,
                                         java.lang.String projectID)
        Deprecated.
        Use the method that takes a WebComponent instead of AppContext for correct feature resolution.
        Method that returns a list of FolderLinks for a particular context and project.
        Parameters:
        appContext - AppContext
        contextID - int
        projectID - String
        Returns:
        SimpleList
        Since:
        MicroStrategy Web 8.0.1
      • getFolderLinks

        public SimpleList getFolderLinks​(WebComponent component,
                                         int contextID,
                                         java.lang.String projectID)
        Method that returns a list of FolderLinks for a particular context and project.
        Parameters:
        component - The component to use for feature checks.
        contextID - int
        projectID - String
        Returns:
        SimpleList
        Since:
        MicroStrategy Web 9.0.0
      • getFolderObjects

        public java.util.ArrayList getFolderObjects​(int contextId,
                                                    java.lang.String projectId,
                                                    AppContext appContext,
                                                    WebComponent bean)
        Returns a list containing the object browser folder links available for the current context.
        Returns:
        SimpleList
        Since:
        MicroStrategy Web 9.0.0
      • getRootFolder

        public FolderLink getRootFolder​(int contextID,
                                        java.lang.String projectID)
        Method to get the root folder as a FolderLink given the object browser context (EnumObjectBrowserContexts) and a project ID
        Parameters:
        contextID -
        projectID -
        Returns:
        the root folder as a FolderLink
      • getFlattenedCustomFolderList

        public static java.util.List getFlattenedCustomFolderList​(java.lang.String rootFolderId,
                                                                  int contextId,
                                                                  AppContext appContext,
                                                                  java.lang.String projectID,
                                                                  WebComponent wc,
                                                                  StringWrapper selectedPath)
      • getFlattenedContextFolderList

        public static java.util.List getFlattenedContextFolderList​(WebFolder startFolder,
                                                                   int contextId,
                                                                   AppContext appContext,
                                                                   java.lang.String projectID,
                                                                   WebComponent wc,
                                                                   StringWrapper selectedPath)
        Method to get a list of tree node representing ancestor folders given the object browser context (EnumObjectBrowserContexts), a project ID, and the {WebFolder starting folder. will be retrieved from what's being given.
        Parameters:
        startFolder - WebFolder the folder the browsing will start off
        contextID - int id of the browser context
        appContext - the AppContext object
        projectID - String the id of the project
        wc - WebComponent
        selectedPath - StringWrapper stores a flatten out folder path from root folder up
        Returns:
        list of {MutableTreeNode} representing ancestor folder structure
      • getFlattenedContextFolderList

        public static java.util.List getFlattenedContextFolderList​(int contextId,
                                                                   AppContext appContext,
                                                                   java.lang.String projectID,
                                                                   WebComponent wc,
                                                                   StringWrapper selectedPath)
        Method to get a list of tree node representing ancestor folders given the object browser context (EnumObjectBrowserContexts), a project ID, and the {WebFolder starting folder is retrieved from XML configuration. will be retrieved from what's being given.
        Parameters:
        contextID - int id of the browser context
        appContext - the AppContext object
        projectID - String the id of the project
        wc - WebComponent
        selectedPath - StringWrapper stores a flatten out folder path from root folder up
        Returns:
        list of {MutableTreeNode} representing ancestor folder structure
        Since:
        MicroStrategy Web 9.0.0