Examples of VFSStore


Examples of com.adito.vfs.VFSStore

        NetworkPlace np = NetworkPlaceDatabaseFactory.getInstance().getNetworkPlace(resourceId);
        NetworkPlaceItem npi;
        if (np != null) {
            DAVProcessor processor = DAVServlet.getDAVProcessor(request);
            SessionInfo sessionInfo = LogonControllerFactory.getInstance().getSessionInfo(request);
            VFSStore store = processor.getRepository().getStore(np.getScheme());
            if (store == null) {
                log.warn("Store that handles '" + np.getScheme() + "' cannot be found.");
            } else {
                npi = new NetworkPlaceItem(np, store.getMountPath(np.getResourceName()), PolicyDatabaseFactory.getInstance()
                                .getPoliciesAttachedToResource(np, sessionInfo.getUser().getRealm()), np
                                .sessionPasswordRequired(sessionInfo));
                return new WrappedFavoriteItem(npi, type);
            }
        }
View Full Code Here

Examples of com.adito.vfs.VFSStore

                  if(provider == null)
                    throw new Exception("No provider for network place URI " + np.getPath());
                }
                if (np.getType() != NetworkPlace.TYPE_HIDDEN) {
                  // Create a store so we can get the mount path
                  VFSStore store = repository.getStore(provider.getScheme());
                    NetworkPlaceItem npi = new NetworkPlaceItem(np, store.getMountPath(np.getResourceName()), PolicyDatabaseFactory.getInstance()
                                    .getPoliciesAttachedToResource(np, session.getUser().getRealm()), np
                                    .sessionPasswordRequired(session));
                    networkPlaceItems.add(npi);
                }
            } catch (Exception e) {
View Full Code Here

Examples of com.adito.vfs.VFSStore

                  }
                }

                if(provider != null) {
                // Create a store so we can get the mount path
                VFSStore store = processor.getRepository().getStore(provider.getScheme());
                if(store == null) {
                  log.warn("No store for " + provider.getScheme());
                }
                else {
                    NetworkPlaceItem npi = new NetworkPlaceItem(np, store.getMountPath(np.getResourceName()), PolicyDatabaseFactory.getInstance()
                                    .getPoliciesAttachedToResource(np, session.getUser().getRealm()), np
                                    .sessionPasswordRequired(session));
                    npi.setFavoriteType(getFavoriteType(np.getResourceId()));
                    getModel().addItem(npi);
                }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSStore

            p = System.getProperties();

        String fsname = p.getProperty("memfs.name", "");
        if("".equals(fsname)) throw new RuntimeException("memfs.name property not specified - it is used to specify a required VFS name");

        VFSStore store = new MemVFSStore(meta, fsname);

        return store;
    }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSStore

            p = System.getProperties();

        String fsroot = p.getProperty("diskfs.root", "");
        if("".equals(fsroot)) throw new RuntimeException("diskfs.root property not specified - it is required.");

        VFSStore store = new DiskVFSStore(meta, fsroot);

        return store;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.