jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1842) SPI: RepositoryService.obtain should allow to pass null workspaceName indicating the default workspace
Date Fri, 31 Oct 2008 11:17:44 GMT

     [ https://issues.apache.org/jira/browse/JCR-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

angela updated JCR-1842:
------------------------

    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.






  was:
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.







> SPI: RepositoryService.obtain should allow to pass null workspaceName indicating the
default workspace
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-1842
>                 URL: https://issues.apache.org/jira/browse/JCR-1842
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr2spi, jackrabbit-spi, jackrabbit-spi2jcr, sandbox
>            Reporter: angela
>            Assignee: angela
>            Priority: Minor
>             Fix For: 1.6.0
>
>         Attachments: JCR-1842.diff
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message