Simplify and document new content provider implementation
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / runtime / DeployedContentRepository.java
index bb1f6112a927616caec811bb98d61321fc7319ea..c467bcef41d21d64d55220910bb95adaa4f0b5ab 100644 (file)
@@ -24,7 +24,7 @@ public class DeployedContentRepository extends CmsContentRepository {
                try {
                        super.start();
                        // FIXME does not work on Windows
-                       //Path rootXml = KernelUtils.getOsgiInstancePath(ROOT_XML);
+                       // Path rootXml = KernelUtils.getOsgiInstancePath(ROOT_XML);
                        initRootContentProvider(null);
 
 //             Path srvPath = KernelUtils.getOsgiInstancePath(CmsConstants.SRV_WORKSPACE);
@@ -40,8 +40,8 @@ public class DeployedContentRepository extends CmsContentRepository {
                        }
 
                        // users
-                       DirectoryContentProvider directoryContentProvider = new DirectoryContentProvider(
-                                       CmsContentRepository.DIRECTORY_BASE, userManager);
+                       DirectoryContentProvider directoryContentProvider = new DirectoryContentProvider(userManager,
+                                       CmsContentRepository.DIRECTORY_BASE);
                        addProvider(directoryContentProvider);
 
                        // remote