VaultFsTransaction.java 1.55 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  javax.jcr.RepositoryException
 */
package com.day.jcr.vault.fs.api;

import com.day.jcr.vault.fs.api.VaultFile;
import com.day.jcr.vault.fs.api.VaultFileOutput;
import com.day.jcr.vault.fs.api.VaultInputSource;
import java.io.IOException;
import java.util.Collection;
import javax.jcr.RepositoryException;

public interface VaultFsTransaction {
    public boolean isVerbose();

    public void setVerbose(boolean var1);

    public void delete(VaultFile var1) throws IOException;

    public void modify(VaultFile var1, VaultInputSource var2) throws IOException;

    public VaultFileOutput add(String var1, VaultInputSource var2) throws IOException, RepositoryException;

    public void mkdir(String var1) throws IOException, RepositoryException;

    public Collection<Info> commit() throws RepositoryException, IOException;

    public static class Info {
        private final Type type;
        private String path;

        public Info(Type type, String path) {
            this.type = type;
            this.path = path;
        }

        public String getPath() {
            return this.path;
        }

        public Type getType() {
            return this.type;
        }
    }

    /*
     * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
     */
    public static enum Type {
        ADDED,
        ADDED_X,
        DELETED,
        MODIFIED,
        MOVED,
        MKDIR,
        ERROR;
        

        private Type() {
        }
    }

}