Start integrating GCR and JCR (not yet working)
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / gcr / fs / FsContentSession.java
index 68cea4f93a4b2231aa258c897cc35993270f83a2..75ec1917219fe31d909795aeb64a45ff2a3266bc 100644 (file)
@@ -6,10 +6,10 @@ import java.nio.file.Path;
 import java.nio.file.Paths;
 
 import org.argeo.api.gcr.Content;
-import org.argeo.api.gcr.ContentSession;
-import org.argeo.api.gcr.Contents;
+import org.argeo.api.gcr.ContentSystemProvider;
+import org.argeo.api.gcr.ContentUtils;
 
-public class FsContentSession implements ContentSession {
+public class FsContentSession implements ContentSystemProvider {
        private final Path rootPath;
 
        public FsContentSession(Path rootPath) {
@@ -26,7 +26,7 @@ public class FsContentSession implements ContentSession {
                Path path = Paths.get("/home/mbaudier/tmp");
                System.out.println(FileSystems.getDefault().supportedFileAttributeViews());
                FsContentSession contentSession = new FsContentSession(path);
-               Contents.traverse(contentSession.get(), (c, d) -> Contents.print(c, System.out, d, true));
+               ContentUtils.traverse(contentSession.get(), (c, d) -> ContentUtils.print(c, System.out, d, true));
 
        }
 }