X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Facr%2FSingleUserContentRepository.java;h=5e7c191e269c5f3fef0ff401db2af253fee6149c;hb=5dd5ad8acfa6f78f98b8d8f082f0c1647d02ff2a;hp=cac407495a70be147447e9c27986ccecf448cbe4;hpb=da9d144b6b241e1526a3bd255dff905a7969a5bc;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/acr/SingleUserContentRepository.java b/org.argeo.cms/src/org/argeo/cms/acr/SingleUserContentRepository.java index cac407495..5e7c191e2 100644 --- a/org.argeo.cms/src/org/argeo/cms/acr/SingleUserContentRepository.java +++ b/org.argeo.cms/src/org/argeo/cms/acr/SingleUserContentRepository.java @@ -11,6 +11,8 @@ import javax.security.auth.x500.X500Principal; import org.argeo.api.acr.ContentSession; import org.argeo.api.acr.spi.ProvidedRepository; +import org.argeo.api.uuid.MacAddressUuidFactory; +import org.argeo.api.uuid.UuidFactory; import org.argeo.cms.acr.fs.FsContentProvider; import org.argeo.util.naming.LdapAttrs; @@ -24,6 +26,8 @@ public class SingleUserContentRepository extends AbstractContentRepository { private UUID uuid; + private UuidFactory uuidFactory = new MacAddressUuidFactory(); + // the single session private CmsContentSession contentSession; @@ -51,7 +55,7 @@ public class SingleUserContentRepository extends AbstractContentRepository { initRootContentProvider(null); if (contentSession != null) throw new IllegalStateException("Repository is already started, stop it first."); - contentSession = new CmsContentSession(this, uuid, subject, locale); + contentSession = new CmsContentSession(this, uuid, subject, locale, uuidFactory); } @Override @@ -76,7 +80,7 @@ public class SingleUserContentRepository extends AbstractContentRepository { @Override protected CmsContentSession newSystemSession() { - return new CmsContentSession(this, uuid, subject, Locale.getDefault()); + return new CmsContentSession(this, uuid, subject, Locale.getDefault(), uuidFactory); } public static void main(String... args) {