Package org.apache.jackrabbit.vault.vlt

Examples of org.apache.jackrabbit.vault.vlt.VltDirectory.control()


            if (dir.isControlled()) {
                if (!force) {
                    throw dir.getContext().error(dir.getPath(), "already under vault control.");
                }
            } else {
                dir.control(vaultFile.getPath(), vaultFile.getAggregate().getPath());
            }
            ctx.setMountpoint(vaultFile.getAggregate().getManager().getMountpoint());
            // re-open parent dir to avoid problems with zip-meta-dirs
            dir = new VltDirectory(ctx, localDir);
            Update up = new Update(localDir, null, false);
View Full Code Here


        // if file is a directory, put under version control
        if (file.canDescend()) {
            VltDirectory child = file.descend();
            if (!child.isControlled()) {
                // this is a bit a hack
                child.control(dir.getEntries().getPath() + "/" + file.getName(), null);
            }
        }
    }
}
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.