Package org.tmatesoft.svn.core.internal.io.fs

Examples of org.tmatesoft.svn.core.internal.io.fs.FSRoot


                } else {
                    long revision = myResource.getRevision();
                    props = fsfs.getRevisionProperties(revision);
                }
            } else {
                FSRoot root = myResource.getRoot();
                props = fsfs.getProperties(root.getRevisionNode(myResource.getResourceURI().getPath()));
            }
        } catch (SVNException svne) {
            throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                    "could not fetch a property", null);
        }
View Full Code Here


        }

        DAVException error2 = null;
        if (error == null) {
            String path = resource.getResourceURI().getPath();
            FSRoot root = resource.getRoot();
            FSFS fsfs = resource.getFSFS();
            FSTransactionInfo txn = resource.getTxnInfo();
            Collection lockTokens = resource.getLockTokens();
            String userName = resource.getUserName();
            FSCommitter committer = getCommitter(fsfs, root, txn, lockTokens, userName);
View Full Code Here

        if (mode == DAV_MODE_WRITE_SEEKABLE) {
            throw new DAVException("Resource body writes cannot use ranges [at this time].", HttpServletResponse.SC_NOT_IMPLEMENTED, 0);
        }
       
        String path = resource.getResourceURI().getPath();
        FSRoot root = resource.getRoot();
        FSFS fsfs = resource.getFSFS();
        FSTransactionInfo txn = resource.getTxnInfo();
        FSCommitter committer = getCommitter(fsfs, root, txn, resource.getLockTokens(), resource.getUserName());

        SVNNodeKind kind = DAVServletUtil.checkPath(resource.getRoot(), resource.getResourceURI().getPath());
        if (kind == SVNNodeKind.NONE) {
            try {
                committer.makeFile(path);
            } catch (SVNException svne) {
                throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                        "Could not create file within the repository.", null);
            }
        }
       
        if (resource.isAutoCheckedOut() && myRequest.getContentType() != null) {
            SVNProperties props = null;
            try {
                props = fsfs.getProperties(root.getRevisionNode(path));
            } catch (SVNException svne) {
                throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                        "Error fetching mime-type property.", null);
            }
           
View Full Code Here

                                DAVXMLUtil.SVN_DAV_ERROR_TAG, DAVElement.SVN_DAV_ERROR_NAMESPACE, err.getErrorCode().getCode(), null);
                    }
                   
                    String urlNodeRevID = null;
                    try {
                        FSRoot root = resource.getRoot();
                        FSRevisionNode node = root.getRevisionNode(reposPath);
                        urlNodeRevID = node.getId().getNodeID();
                    } catch (SVNException svne) {
                        SVNErrorMessage err = svne.getErrorMessage();
                        throw new DAVException("Unable to fetch the node revision id of the version resource within the revision.", null,
                                HttpServletResponse.SC_CONFLICT, err, SVNLogType.FSFS, Level.FINE, null,
View Full Code Here

                throw new DAVException("Multi-author commits not supported.", null, HttpServletResponse.SC_NOT_IMPLEMENTED, null,
                        SVNLogType.NETWORK, Level.FINE, null, null, null, 0, null);
            }
        }
       
        FSRoot root = null;
        try {
            root = fsfs.createTransactionRoot(txnInfo);
            resource.setRoot(root);
        } catch (SVNException svne) {
            throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
View Full Code Here

                throw DAVException.convertError(e.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                        "Could not determine the proper revision to access", null);
            }
        }
       
        FSRoot root = resource.getRoot();
        FSFS fsfs = resource.getFSFS();
        if (root == null) {
            try {
                root = fsfs.createRevisionRoot(resource.getRevision());
            } catch (SVNException svne) {
View Full Code Here

                throw DAVException.convertError(e.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                        "Could not fetch 'youngest' revision to enable accessing the latest baseline resource.", null);
            }
        }
       
        FSRoot root = resource.getRoot();
        FSFS fsfs = resource.getFSFS();
        if (root == null) {
            try {
                root = fsfs.createRevisionRoot(resource.getRevision());
            } catch (SVNException svne) {
View Full Code Here

TOP

Related Classes of org.tmatesoft.svn.core.internal.io.fs.FSRoot

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.