Refactor deploy properties and move legacy CMS exception.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / CmsContentRepository.java
index 3e01aee8b235ff9d1d0a94d30174d1afa6d6e6f4..6285710e8a0eff395acf8ab73a3877f66ae05c73 100644 (file)
@@ -45,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);
@@ -65,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() {