Package org.jdesktop.wonderland.modules.webdav.common

Examples of org.jdesktop.wonderland.modules.webdav.common.FileContentCollection


    private FileContentCollection rootCollection;

    public FileWebContentRepository(File root, final URL baseURL) {
        this.root = root;

        rootCollection = new FileContentCollection(root, null) {
            // don't include this path
            @Override
            public String getPath() {
                return "";
            }
View Full Code Here


    }

    public FileContentCollection getUserRoot(String userId, boolean create)
            throws ContentRepositoryException
    {
        FileContentCollection users = (FileContentCollection)
                rootCollection.getChild("users");
        FileContentCollection user = (FileContentCollection)
                users.getChild(userId);
        if (user == null && create) {
            user = (FileContentCollection)
                    users.createChild(userId, ContentNode.Type.COLLECTION);
        }
View Full Code Here

        // this plugin. Since all the code is isolated to this classloader,
        // even static changes like registering the local repository will
        // ony be in effect for this server.
        String dirName = "localRepo/" + loginInfo.getUsername();
        final File userDir = ClientContext.getUserDirectory(dirName);
        localRepo = new FileContentCollection(userDir, null) {
            @Override
            protected URL getBaseURL() {
                try {
//                    System.err.println("BASE URL "+userDir.toURI().toURL().toExternalForm());
                    return userDir.toURI().toURL();
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.webdav.common.FileContentCollection

Copyright © 2018 www.massapicom. 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.