]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - cms/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/model/RepoElem.java
Adapt to changes in Commons and SLC.
[gpl/argeo-slc.git] / cms / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / model / RepoElem.java
index 4e404a8426d92ea7d1e2277a56add907775c2b7e..8ae8e8b8cf77dc5991e3fe3245f1509f9d430974 100644 (file)
@@ -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);