Package org.apache.jackrabbit.vault.vlt

Examples of org.apache.jackrabbit.vault.vlt.FileAction


        setDirsAsFiles(true);
        this.force = force;
    }

    public void run(VltDirectory dir, VltFile file, VaultFile remoteFile) throws VltException {
        FileAction action = file.add(force);
        dir.getContext().printAction(file, action);

        // if file is a directory, put under version control
        if (file.canDescend()) {
            VltDirectory child = file.descend();
View Full Code Here


            throws VltException {
        if (remoteFile == null && file == null) {
            // nothing to do
            return;
        }
        FileAction action;
        if (file == null) {
            // would be an addition
            file = new VltFile(dir, remoteFile.getName(), null);
            action = FileAction.ADDED;
        } else {
View Full Code Here

        setDirsAsFiles(true);
        this.force = force;
    }

    public void run(VltDirectory dir, VltFile file, VaultFile remoteFile) throws VltException {
        FileAction action = file.delete(force);
        dir.getContext().printAction(file, action);
    }
View Full Code Here

            } else {
                file = new VltFile(dir, remoteFile.getName(), null);
            }
        }

        FileAction action = file.update(remoteFile, force);

        // write back entries
        dir.getEntries().update(file);
        dir.sync();
        dir.getContext().printAction(file, action);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.vault.vlt.FileAction

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.