]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/acr/CmsContentRepository.java
Allow any element in DocBook info
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / CmsContentRepository.java
index 46222ce1ac0d2248b58f67ed8bdb3e13b8a6e68a..6285710e8a0eff395acf8ab73a3877f66ae05c73 100644 (file)
@@ -22,6 +22,7 @@ import org.argeo.cms.internal.runtime.CmsContextImpl;
  */
 public class CmsContentRepository extends AbstractContentRepository {
        public final static String RUN_BASE = "/run";
+       public final static String DIRECTORY_BASE = "/directory";
 
        private Map<CmsSession, CmsContentSession> userSessions = Collections.synchronizedMap(new HashMap<>());
 
@@ -44,7 +45,7 @@ public class CmsContentRepository extends AbstractContentRepository {
                CmsContentSession contentSession = userSessions.get(cmsSession);
                if (contentSession == null) {
                        final CmsContentSession newContentSession = new CmsContentSession(this, cmsSession.getUuid(),
-                                       cmsSession.getSubject(), locale);
+                                       cmsSession.getSubject(), locale, uuidFactory);
                        cmsSession.addOnCloseCallback((c) -> {
                                newContentSession.close();
                                userSessions.remove(cmsSession);
@@ -64,8 +65,8 @@ public class CmsContentRepository extends AbstractContentRepository {
                        throw new RuntimeException("Could not login as data admin", e1);
                } finally {
                }
-               return new CmsContentSession(this, getCmsState().getUuid(), loginContext.getSubject(),
-                               Locale.getDefault());
+               return new CmsContentSession(this, getCmsState().getUuid(), loginContext.getSubject(), Locale.getDefault(),
+                               uuidFactory);
        }
 
        protected CmsState getCmsState() {