]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/WorkspaceElem.java
Work on index policies.
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / model / WorkspaceElem.java
index a163974072607d43659a534c250c200e7479c6d2..c3088ebb22e8932382bd50f0b5b82a0c9e8cc367 100644 (file)
@@ -44,6 +44,11 @@ public class WorkspaceElem extends DistParentElem {
                currSession = repoElem.repositoryLogin(getName());
        }
 
+       /** Utility to create a new Session with correct credential in this context */
+       public Session getNewSession() {
+               return repoElem.repositoryLogin(getName());
+       }
+
        public boolean hasChildren() {
                try {
                        if (isConnected())
@@ -108,7 +113,7 @@ public class WorkspaceElem extends DistParentElem {
                                                .getQueryManager()
                                                .createQuery(
                                                                "select * from ["
-                                                                               + SlcTypes.SLC_RELEVANT_CATEGORY + "]",
+                                                                               + SlcTypes.SLC_CATEGORY + "]",
                                                                Query.JCR_SQL2);
                                distributions = groupQuery.execute().getNodes();
                                while (distributions.hasNext()) {