X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=cms%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fmodel%2FRepoElem.java;h=8ae8e8b8cf77dc5991e3fe3245f1509f9d430974;hb=4730c12cdc3d8f276bb75fa92386b81d42c6bc86;hp=4e404a8426d92ea7d1e2277a56add907775c2b7e;hpb=29f680881d3e467c28b389e8107295b2a45465ec;p=gpl%2Fargeo-slc.git diff --git a/cms/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/model/RepoElem.java b/cms/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/model/RepoElem.java index 4e404a842..8ae8e8b8c 100644 --- a/cms/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/model/RepoElem.java +++ b/cms/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/model/RepoElem.java @@ -9,6 +9,7 @@ import javax.jcr.RepositoryException; import javax.jcr.RepositoryFactory; import javax.jcr.Session; +import org.argeo.api.NodeConstants; import org.argeo.api.NodeUtils; import org.argeo.api.security.Keyring; import org.argeo.cms.ArgeoNames; @@ -92,7 +93,7 @@ public class RepoElem extends DistParentElem { try { // FIXME make it more generic - String defaultWorkspace = "main"; + String defaultWorkspace = NodeConstants.SYS_WORKSPACE; defaultSession = repository.login(credentials, defaultWorkspace); refreshChildren(); } catch (RepositoryException e) { @@ -173,7 +174,7 @@ public class RepoElem extends DistParentElem { protected Session repositoryLogin(String workspaceName) { try { if (workspaceName == null) - workspaceName = "main";// FIXME make it more generic + workspaceName = NodeConstants.SYS_WORKSPACE;// FIXME make it more generic return repository.login(credentials, workspaceName); } catch (RepositoryException e) { throw new SlcException("Cannot login repository " + label + " with credential " + credentials, e);