X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Facr%2FCmsContentRepository.java;h=6285710e8a0eff395acf8ab73a3877f66ae05c73;hb=5dd5ad8acfa6f78f98b8d8f082f0c1647d02ff2a;hp=46222ce1ac0d2248b58f67ed8bdb3e13b8a6e68a;hpb=da9d144b6b241e1526a3bd255dff905a7969a5bc;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/acr/CmsContentRepository.java b/org.argeo.cms/src/org/argeo/cms/acr/CmsContentRepository.java index 46222ce1a..6285710e8 100644 --- a/org.argeo.cms/src/org/argeo/cms/acr/CmsContentRepository.java +++ b/org.argeo.cms/src/org/argeo/cms/acr/CmsContentRepository.java @@ -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 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() {