Xindice API
version 1.2m1

org.apache.xindice.webadmin.util
Class DAVOperations

java.lang.Object
  extended byorg.apache.xindice.webadmin.util.DAVOperations

public class DAVOperations
extends Object

Helper for copy/move operations.

Version:
$Revision: 600169 $, $Date: 2007-12-01 12:25:52 -0500 (Sat, 01 Dec 2007) $
Author:
Jan Metzner

Constructor Summary
DAVOperations()
           
 
Method Summary
static Map copy(Collection col, String dest, boolean overwrite, boolean deep)
          Copies collection to the new destination
static int copy(Collection col, String name, String dest, boolean overwrite)
          Copies a resource to a new location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAVOperations

public DAVOperations()
Method Detail

copy

public static Map copy(Collection col,
                       String dest,
                       boolean overwrite,
                       boolean deep)
                throws DBException
Copies collection to the new destination

Parameters:
col - Collection to be copied
dest - Destination path (includes DB name)
overwrite - true if previously existed collection at dest path can be overwritten
Returns:
map containing status for a path
Throws:
DBException

copy

public static int copy(Collection col,
                       String name,
                       String dest,
                       boolean overwrite)
                throws DBException
Copies a resource to a new location.

Parameters:
col - Source collection
name - Resource name
dest - Path to the new location. It includes db name and new resource name
overwrite - true if previously existed resource at dest path can be overwritten
Returns:
status
Throws:
DBException

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.