From: Wolfgang M. M. <wol...@us...> - 2004-04-15 09:24:25
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmldb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1193/src/org/exist/xmldb Modified Files: LocalCollection.java CollectionImpl.java RemoteCollection.java Log Message: Added method to test if the collection is remote or local. Index: LocalCollection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/LocalCollection.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** LocalCollection.java 16 Feb 2004 13:02:16 -0000 1.28 --- LocalCollection.java 15 Apr 2004 09:24:16 -0000 1.29 *************** *** 516,518 **** --- 516,525 ---- observers.add(o); } + + /* (non-Javadoc) + * @see org.exist.xmldb.CollectionImpl#isRemoteCollection() + */ + public boolean isRemoteCollection() throws XMLDBException { + return false; + } } Index: RemoteCollection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/RemoteCollection.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** RemoteCollection.java 14 Apr 2004 12:17:22 -0000 1.11 --- RemoteCollection.java 15 Apr 2004 09:24:16 -0000 1.12 *************** *** 503,505 **** --- 503,512 ---- return permissions; } + + /* (non-Javadoc) + * @see org.exist.xmldb.CollectionImpl#isRemoteCollection() + */ + public boolean isRemoteCollection() throws XMLDBException { + return true; + } } Index: CollectionImpl.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmldb/CollectionImpl.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** CollectionImpl.java 16 Feb 2004 13:02:16 -0000 1.11 --- CollectionImpl.java 15 Apr 2004 09:24:16 -0000 1.12 *************** *** 16,19 **** --- 16,21 ---- public interface CollectionImpl extends Collection { + public boolean isRemoteCollection() throws XMLDBException; + /** * Returns the time of creation of the collection. |