/** * {@inheritDoc} */ public void deleteFolder(String folderPath) throws FileSystemException { fsBase.deleteFolder(buildBasePath(folderPath)); }
/** * Protected constructor: Constructs a new instance of this class. * * @param fs repository file system * @throws RepositoryException */ public NamespaceRegistryImpl(FileSystem fs) throws RepositoryException { this.nsRegStore = new BasedFileSystem(fs, "/namespaces"); load(); }
/** * {@inheritDoc} */ public boolean hasChildren(String path) throws FileSystemException { return fsBase.hasChildren(buildBasePath(path)); }
/** * Protected constructor: Constructs a new instance of this class. * * @param fs repository file system * @throws RepositoryException */ public NamespaceRegistryImpl(FileSystem fs) throws RepositoryException { this.nsRegStore = new BasedFileSystem(fs, "/namespaces"); load(); }
/** * {@inheritDoc} */ public String[] listFiles(String folderPath) throws FileSystemException { return fsBase.listFiles(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public void init(PMContext context) throws Exception { if (initialized) { throw new IllegalStateException("already initialized"); } itemStateFS = new BasedFileSystem(context.getFileSystem(), "/data"); /** * store BLOB data in local file system in a sub directory * of the workspace home directory */ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
/** * {@inheritDoc} */ public boolean exists(String path) throws FileSystemException { return fsBase.exists(buildBasePath(path)); }
/** * {@inheritDoc} */ public void init(PMContext context) throws Exception { if (initialized) { throw new IllegalStateException("already initialized"); } FileSystem wspFS = context.getFileSystem(); itemStateFS = new BasedFileSystem(wspFS, "/data"); /** * store BLOB data in local file system in a sub directory * of the workspace home directory */ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
/** * {@inheritDoc} */ public String[] list(String folderPath) throws FileSystemException { return fsBase.list(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public void init(PMContext context) throws Exception { if (initialized) { throw new IllegalStateException("already initialized"); } itemStateFS = new BasedFileSystem(context.getFileSystem(), "/data"); /** * store BLOB data in local file system in a sub directory * of the workspace home directory */ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
/** * {@inheritDoc} */ public String[] listFiles(String folderPath) throws FileSystemException { return fsBase.listFiles(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public void init(PMContext context) throws Exception { if (initialized) { throw new IllegalStateException("already initialized"); } FileSystem wspFS = context.getFileSystem(); itemStateFS = new BasedFileSystem(wspFS, "/data"); /** * store BLOB data in local file system in a sub directory * of the workspace home directory */ LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); this.blobFS = blobFS; blobStore = new FileSystemBLOBStore(blobFS); initialized = true; }
/** * {@inheritDoc} */ public String[] listFolders(String folderPath) throws FileSystemException { return fsBase.listFolders(buildBasePath(folderPath)); } }
/** * {@inheritDoc} */ public void init(PMContext context) throws Exception { if (initialized) { throw new IllegalStateException("already initialized"); } super.init(context); this.name = context.getHomeDir().getName(); // create item fs itemFs = new BasedFileSystem(context.getFileSystem(), "items"); // create correct blob store if (useLocalFsBlobStore()) { LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); blobStore = new BundleFsPersistenceManager.FSBlobStore(blobFS); } else { blobStore = new BundleFsPersistenceManager.FSBlobStore(itemFs); } // load namespaces binding = new BundleBinding(errorHandling, blobStore, getNsIndex(), getNameIndex(), context.getDataStore()); binding.setMinBlobSize(minBlobSize); initialized = true; }
/** * {@inheritDoc} */ public boolean isFolder(String path) throws FileSystemException { return fsBase.isFolder(buildBasePath(path)); }
/** * {@inheritDoc} */ public void init(PMContext context) throws Exception { if (initialized) { throw new IllegalStateException("already initialized"); } super.init(context); this.name = context.getHomeDir().getName(); // create item fs itemFs = new BasedFileSystem(context.getFileSystem(), "items"); // create correct blob store if (useLocalFsBlobStore()) { LocalFileSystem blobFS = new LocalFileSystem(); blobFS.setRoot(new File(context.getHomeDir(), "blobs")); blobFS.init(); blobStore = new BundleFsPersistenceManager.FSBlobStore(blobFS); } else { blobStore = new BundleFsPersistenceManager.FSBlobStore(itemFs); } // load namespaces binding = new BundleBinding(errorHandling, blobStore, getNsIndex(), getNameIndex(), context.getDataStore()); binding.setMinBlobSize(minBlobSize); initialized = true; }
/** * {@inheritDoc} */ public void deleteFile(String filePath) throws FileSystemException { fsBase.deleteFile(buildBasePath(filePath)); }
/** * {@inheritDoc} */ public void deleteFolder(String folderPath) throws FileSystemException { fsBase.deleteFolder(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public OutputStream getOutputStream(String filePath) throws FileSystemException { return fsBase.getOutputStream(buildBasePath(filePath)); }
/** * {@inheritDoc} */ public void createFolder(String folderPath) throws FileSystemException { fsBase.createFolder(buildBasePath(folderPath)); }