Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-836

Allow the option to not list contents of the root folder in the workbench

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • OpenCMIS 0.11.0
    • OpenCMIS 0.12.0
    • opencmis-workbench
    • None

    Description

      The workbench lists the contents of the root folder on start up. This causes a huge delay or crash when opening the workbench if the root folder contains a large number of items.

      I propose an option to NOT list the contents of the root folder if a particular system property is passed in. This is the simplest fix, although I imagine something could be done with paging, etc but the code that does this is not using queries.

      Other options are:

      • offer a limit (with a system property or re-use cmis.workbench.folder.maxItemsPerPage)
      • don't list at start-up, and add a 'fetch' button on the toolbar

      from loadFolder() in ClientModel.java:

      if (this.listRootContents()) {
      ItemIterable<CmisObject> iter = ((Folder) folderObject).getChildren(clientSession
      .getFolderOperationContext());
      for (CmisObject child : iter)

      { children.add(child); }

      }

      private boolean listRootContents() {
      final String dontListRootContents = System.getProperty("cmis.workbench.dontListRootContents");
      if (dontListRootContents != null)

      { return !Boolean.parseBoolean(dontListRootContents); }

      return true; // default behaviour
      }

      Attachments

        Activity

          People

            fmui Florian Müller
            timwebster9 Tim Webster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified