From: Wolfgang M. M. <wol...@us...> - 2004-06-21 15:28:21
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/backup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16641/src/org/exist/backup Modified Files: Restore.java Log Message: Added copyResource method to DBBroker. Index: Restore.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/backup/Restore.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Restore.java 3 Feb 2004 11:08:24 -0000 1.10 --- Restore.java 21 Jun 2004 15:27:37 -0000 1.11 *************** *** 15,18 **** --- 15,19 ---- import org.exist.security.User; + import org.exist.xmldb.CollectionImpl; import org.exist.xmldb.UserManagementService; import org.xml.sax.Attributes; *************** *** 39,43 **** private String pass; private XMLReader reader; ! private Collection current; private Stack stack = new Stack(); private RestoreDialog dialog = null; --- 40,44 ---- private String pass; private XMLReader reader; ! private CollectionImpl current; private Stack stack = new Stack(); private RestoreDialog dialog = null; *************** *** 211,215 **** } ! private final Collection mkcol(String collPath) throws XMLDBException { if (collPath.startsWith("/db")) collPath = collPath.substring("/db".length()); --- 212,216 ---- } ! private final CollectionImpl mkcol(String collPath) throws XMLDBException { if (collPath.startsWith("/db")) collPath = collPath.substring("/db".length()); *************** *** 232,236 **** current = c; } ! return current; } } \ No newline at end of file --- 233,237 ---- current = c; } ! return (CollectionImpl)current; } } \ No newline at end of file |