Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1842

SPI: RepositoryService.obtain should allow to pass null workspaceName indicating the default workspace

    XMLWordPrintableJSON

    Details

      Description

      improvement suggested by tobi

      the contract of

      public SessionInfo obtain(Credentials credentials, String workspaceName)
      public SessionInfo obtain(Credentials credentials, String workspaceName)

      should be changed to allow for null workspaceName.

      • @param workspaceName the name of the workspace the <code>SessionInfo</code>
      • should be built for. <code>null</code> indicates that the info should be created for the
      • default workspace.

      consequently we could either deprecate

      RepositoryConfig.getDefaultWorkspaceName()

      or allow it to return null as well or remove it altogether.

        Attachments

        1. JCR-1842.diff
          8 kB
          Angela Schreiber
        2. JCR-1842_sandbox.diff
          6 kB
          Angela Schreiber
        3. JCR-1842_jcr-server.diff
          7 kB
          Angela Schreiber

          Issue Links

            Activity

              People

              • Assignee:
                angela Angela Schreiber
                Reporter:
                angela Angela Schreiber
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: