1 package org
.argeo
.jcr
.fs
;
3 import java
.io
.IOException
;
4 import java
.nio
.file
.FileStore
;
5 import java
.nio
.file
.FileSystem
;
6 import java
.nio
.file
.Path
;
7 import java
.nio
.file
.PathMatcher
;
8 import java
.nio
.file
.WatchService
;
9 import java
.nio
.file
.attribute
.UserPrincipalLookupService
;
10 import java
.nio
.file
.spi
.FileSystemProvider
;
13 import javax
.jcr
.Session
;
15 import org
.argeo
.jcr
.JcrUtils
;
17 public class JcrFileSystem
extends FileSystem
{
18 private final JcrFileSystemProvider provider
;
19 private final Session session
;
21 public JcrFileSystem(JcrFileSystemProvider provider
, Session session
) {
23 this.provider
= provider
;
24 this.session
= session
;
28 public FileSystemProvider
provider() {
33 public void close() throws IOException
{
34 JcrUtils
.logoutQuietly(session
);
38 public boolean isOpen() {
39 return session
.isLive();
43 public boolean isReadOnly() {
48 public String
getSeparator() {
53 public Iterable
<Path
> getRootDirectories() {
58 public Iterable
<FileStore
> getFileStores() {
59 // TODO Auto-generated method stub
64 public Set
<String
> supportedFileAttributeViews() {
65 // TODO Auto-generated method stub
70 public Path
getPath(String first
, String
... more
) {
71 // TODO Auto-generated method stub
76 public PathMatcher
getPathMatcher(String syntaxAndPattern
) {
77 // TODO Auto-generated method stub
82 public UserPrincipalLookupService
getUserPrincipalLookupService() {
83 // TODO Auto-generated method stub
88 public WatchService
newWatchService() throws IOException
{
89 // TODO Auto-generated method stub
93 public Session
getSession() {