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;
private UUID uuid;
+ private UuidFactory uuidFactory = new MacAddressUuidFactory();
+
// the single session
private CmsContentSession contentSession;
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
@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) {