You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2005/03/01 14:37:07 UTC
svn commit: r155776 [2/2] - in incubator/jackrabbit/trunk/contrib/jcr-rmi:
./ src/java/org/apache/jackrabbit/rmi/client/
src/java/org/apache/jackrabbit/rmi/iterator/
src/java/org/apache/jackrabbit/rmi/remote/
src/java/org/apache/jackrabbit/rmi/server/
src/java/org/apache/jackrabbit/rmi/xml/
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayNodeTypeIterator.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayNodeTypeIterator.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayNodeTypeIterator.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayNodeTypeIterator.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -24,15 +24,15 @@
* {@link javax.jcr.NodeTypeIterator NodeTypeIterator} interface.
* This class is used by the JCR-RMI client adapters to convert
* node type arrays to iterators.
- *
+ *
* @author Jukka Zitting
*/
public class ArrayNodeTypeIterator extends ArrayIterator implements
NodeTypeIterator {
-
+
/**
* Creates an iterator for the given array of node types.
- *
+ *
* @param types the node types to iterate
*/
public ArrayNodeTypeIterator(NodeType[] types) {
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayPropertyIterator.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayPropertyIterator.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayPropertyIterator.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayPropertyIterator.java Tue Mar 1 05:36:49 2005
@@ -24,21 +24,21 @@
* {@link javax.jcr.PropertyIterator PropertyIterator} interface.
* This class is used by the JCR-RMI client adapters to convert
* property arrays to iterators.
- *
+ *
* @author Jukka Zitting
*/
public class ArrayPropertyIterator extends ArrayIterator
implements PropertyIterator {
-
+
/**
* Creates an iterator for the given array of properties.
- *
+ *
* @param properties the properties to iterate
*/
public ArrayPropertyIterator(Property[] properties) {
super(properties);
}
-
+
/** {@inheritDoc} */
public Property nextProperty() {
return (Property) next();
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayRowIterator.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayRowIterator.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayRowIterator.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/ArrayRowIterator.java Tue Mar 1 05:36:49 2005
@@ -24,20 +24,20 @@
* {@link javax.jcr.query.RowIterator RowIterator} interface.
* This class is used by the JCR-RMI client adapters to convert
* node arrays to iterators.
- *
+ *
* @author Philipp Koch
*/
public class ArrayRowIterator extends ArrayIterator implements RowIterator {
-
+
/**
* Creates an iterator for the given array of rows.
- *
+ *
* @param rows the rows to iterate
*/
public ArrayRowIterator(Row[] rows) {
super(rows);
}
-
+
/** {@inheritDoc} */
public Row nextRow() {
return (Row) next();
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteItemDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteItemDef.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteItemDef.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteItemDef.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -79,4 +79,4 @@
*/
public boolean isProtected() throws RemoteException;
-}
\ No newline at end of file
+}
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteLock.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteLock.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteLock.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteLock.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNamespaceRegistry.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNamespaceRegistry.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNamespaceRegistry.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNamespaceRegistry.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeDef.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeDef.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeDef.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -20,7 +20,7 @@
/**
* Remote version of the JCR {@link javax.jcr.nodetype.NodeDef NodeDef}
- * interface. Used by the
+ * interface. Used by the
* {@link org.apache.jackrabbit.rmi.server.ServerNodeDef ServerNodeDef} and
* {@link org.apache.jackrabbit.rmi.client.ClientNodeDef ClientNodeDef}
* adapters to provide transparent RMI access to remote node definitions.
@@ -29,7 +29,7 @@
* to a corresponding NodeDef method. The remote object will simply forward
* the method call to the underlying NodeDef instance. Return values
* and possible exceptions are copied over the network. Complex
- * {@link javax.jcr.nodetype.NodeType NodeType} return values
+ * {@link javax.jcr.nodetype.NodeType NodeType} return values
* are returned as remote references to the
* {@link org.apache.jackrabbit.rmi.remote.RemoteNodeType RemoteNodeType}
* interface. RMI errors are signalled with RemoteExceptions.
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,7 +23,7 @@
/**
* Remote version of the JCR {@link javax.jcr.nodetype.NodeType NodeType}
- * interface. Used by the
+ * interface. Used by the
* {@link org.apache.jackrabbit.rmi.server.ServerNodeType ServerNodeType} and
* {@link org.apache.jackrabbit.rmi.client.ClientNodeType ClientNodeType}
* adapters to provide transparent RMI access to remote node types.
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeTypeManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeTypeManager.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeTypeManager.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteNodeTypeManager.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -25,7 +25,7 @@
/**
* Remote version of the JCR
* {@link javax.jcr.nodetype.NodeTypeManager NodeTypeManager} interface.
- * Used by the
+ * Used by the
* {@link org.apache.jackrabbit.rmi.server.ServerNodeTypeManager ServerNodeTypeManager}
* and
* {@link org.apache.jackrabbit.rmi.client.ClientNodeTypeManager ClientNodeTypeManager}
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemotePropertyDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemotePropertyDef.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemotePropertyDef.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemotePropertyDef.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -22,7 +22,7 @@
/**
* Remote version of the JCR {@link javax.jcr.nodetype.PropertyDef PropertyDef}
- * interface. Used by the
+ * interface. Used by the
* {@link org.apache.jackrabbit.rmi.server.ServerPropertyDef ServerPropertyDef}
* and
* {@link org.apache.jackrabbit.rmi.client.ClientPropertyDef ClientPropertyDef}
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteQueryResult.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteQueryResult.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteQueryResult.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteQueryResult.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteRow.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteRow.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteRow.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/RemoteRow.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/SerialValue.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/SerialValue.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/SerialValue.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/SerialValue.java Tue Mar 1 05:36:49 2005
@@ -53,7 +53,7 @@
* The SerialValue decorator adds no other functionality to the Value
* interface. Normal method calls are simply forwarded to the decorated
* Value object.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.Value
* @see java.io.Serializable
@@ -62,22 +62,22 @@
/** Static serial version UID. */
static final long serialVersionUID = 8070492457339121953L;
-
+
/** The decorated value. */
private Value value;
/**
* Creates a SerialValue decorator for the given Value object.
- *
+ *
* @param value the value to be decorated
*/
public SerialValue(Value value) {
this.value = value;
}
-
+
/**
* Utility method for decorating an array of Value objects.
- *
+ *
* @param values the Value objects to be decorated
* @return array of SerialValue decorators
*/
@@ -85,20 +85,20 @@
if (values == null) {
return new Value[0];
}
-
+
Value[] serials = new Value[values.length];
for (int i = 0; i < values.length; i++) {
serials[i] = new SerialValue(values[i]);
}
return serials;
}
-
+
/**
* Serializes the underlying Value object. Instead of using
* the normal serialization mechanism, the essential state
* of the Value object is extracted and written to the serialization
* stream as a type-value pair.
- *
+ *
* @param out the serialization stream
* @throws IOException on IO errors
*/
@@ -122,7 +122,7 @@
break;
case PropertyType.DATE:
out.writeObject(value.getDate());
- break;
+ break;
case PropertyType.DOUBLE:
out.writeDouble(value.getDouble());
break;
@@ -147,7 +147,7 @@
* Deserializes the underlying Value object. A new Value object
* is created based on the type and state data read fro the
* serialization stream.
- *
+ *
* @param in the serialization stream
* @throws IOException on IO errors
*/
@@ -209,7 +209,7 @@
IllegalStateException, RepositoryException {
return value.getDate();
}
-
+
/* (non-Javadoc)
* @see javax.jcr.Value#getDouble()
*/
@@ -217,7 +217,7 @@
IllegalStateException, RepositoryException {
return value.getDouble();
}
-
+
/* (non-Javadoc)
* @see javax.jcr.Value#getLong()
*/
@@ -225,7 +225,7 @@
RepositoryException {
return value.getLong();
}
-
+
/* (non-Javadoc)
* @see javax.jcr.Value#getStream()
*/
@@ -233,7 +233,7 @@
IllegalStateException, RepositoryException {
return value.getStream();
}
-
+
/* (non-Javadoc)
* @see javax.jcr.Value#getString()
*/
@@ -241,12 +241,12 @@
IllegalStateException, RepositoryException {
return value.getString();
}
-
+
/* (non-Javadoc)
* @see javax.jcr.Value#getType()
*/
public int getType() {
return value.getType();
}
-
+
}
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/RemoteAdapterFactory.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/RemoteAdapterFactory.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/RemoteAdapterFactory.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/RemoteAdapterFactory.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -58,7 +58,7 @@
* base class provides a number of utility methods designed to work with
* a remote adapter factory. Adapter implementations may want to inherit
* that functionality by subclassing from ServerObject.
- *
+ *
* @author Jukka Zitting
* @author Philipp Koch
* @see org.apache.jackrabbit.rmi.client.LocalAdapterFactory
@@ -66,58 +66,57 @@
* @see org.apache.jackrabbit.rmi.server.ServerObject
*/
public interface RemoteAdapterFactory {
-
+
/**
* Factory method for creating a remote adapter for a local repository.
- *
+ *
* @param repository local repository
* @return remote repository adapter
* @throws RemoteException on RMI errors
*/
- public RemoteRepository getRemoteRepository(Repository repository)
- throws RemoteException;
+ RemoteRepository getRemoteRepository(Repository repository)
+ throws RemoteException;
/**
* Factory method for creating a remote adapter for a local session.
- *
+ *
* @param session local session
* @return remote session adapter
* @throws RemoteException on RMI errors
*/
- public RemoteSession getRemoteSession(Session session)
- throws RemoteException;
+ RemoteSession getRemoteSession(Session session) throws RemoteException;
/**
* Factory method for creating a remote adapter for a local workspace.
- *
+ *
* @param workspace local workspace
* @return remote workspace adapter
* @throws RemoteException on RMI errors
*/
- public RemoteWorkspace getRemoteWorkspace(Workspace workspace)
- throws RemoteException;
+ RemoteWorkspace getRemoteWorkspace(Workspace workspace)
+ throws RemoteException;
/**
* Factory method for creating a remote adapter for a local namespace
* registry.
- *
+ *
* @param registry local namespace registry
* @return remote namespace registry adapter
* @throws RemoteException on RMI errors
*/
- public RemoteNamespaceRegistry getRemoteNamespaceRegistry(
- NamespaceRegistry registry) throws RemoteException;
+ RemoteNamespaceRegistry getRemoteNamespaceRegistry(
+ NamespaceRegistry registry) throws RemoteException;
/**
* Factory method for creating a remote adapter for a local node type
* manager.
- *
+ *
* @param manager local node type manager
* @return remote node type manager adapter
* @throws RemoteException on RMI errors
*/
- public RemoteNodeTypeManager getRemoteNodeTypeManager(
- NodeTypeManager manager) throws RemoteException;
+ RemoteNodeTypeManager getRemoteNodeTypeManager(NodeTypeManager manager)
+ throws RemoteException;
/**
* Factory method for creating a remote adapter for a local item.
@@ -127,72 +126,69 @@
* {@link #getRemoteProperty(Property) getRemoteProperty} method
* instead, as the adapter returned by this method will only cover
* the basic {@link RemoteItem RemoteItem} interface.
- *
+ *
* @param item local item
* @return remote item adapter
* @throws RemoteException on RMI errors
*/
- public RemoteItem getRemoteItem(Item item) throws RemoteException;
+ RemoteItem getRemoteItem(Item item) throws RemoteException;
/**
* Factory method for creating a remote adapter for a local property.
- *
+ *
* @param property local property
* @return remote property adapter
* @throws RemoteException on RMI errors
*/
- public RemoteProperty getRemoteProperty(Property property)
- throws RemoteException;
+ RemoteProperty getRemoteProperty(Property property) throws RemoteException;
/**
* Factory method for creating a remote adapter for a local node.
- *
+ *
* @param node local node
* @return remote node adapter
* @throws RemoteException on RMI errors
*/
- public RemoteNode getRemoteNode(Node node) throws RemoteException;
+ RemoteNode getRemoteNode(Node node) throws RemoteException;
/**
* Factory method for creating a remote adapter for a local node type.
- *
+ *
* @param type local node type
* @return remote node type adapter
* @throws RemoteException on RMI errors
*/
- public RemoteNodeType getRemoteNodeType(NodeType type)
- throws RemoteException;
-
+ RemoteNodeType getRemoteNodeType(NodeType type) throws RemoteException;
+
/**
* Factory method for creating a remote adapter for a local node
* definition.
- *
+ *
* @param def local node definition
* @return remote node definition adapter
* @throws RemoteException on RMI errors
*/
- public RemoteNodeDef getRemoteNodeDef(NodeDef def)
- throws RemoteException;
+ RemoteNodeDef getRemoteNodeDef(NodeDef def) throws RemoteException;
/**
* Factory method for creating a remote adapter for a local property
* definition.
- *
+ *
* @param def local property definition
* @return remote property definition adapter
* @throws RemoteException on RMI errors
*/
- public RemotePropertyDef getRemotePropertyDef(PropertyDef def)
- throws RemoteException;
+ RemotePropertyDef getRemotePropertyDef(PropertyDef def)
+ throws RemoteException;
/**
* Factory method for creating a remote adapter for a local lock.
- *
+ *
* @param lock local lock
* @return remote lock adapter
* @throws RemoteException on RMI errors
*/
- public RemoteLock getRemoteLock(Lock lock) throws RemoteException;
+ RemoteLock getRemoteLock(Lock lock) throws RemoteException;
/**
* Factory method for creating a remote adapter for a local query manager.
@@ -201,7 +197,7 @@
* @return remote query manager adapter
* @throws RemoteException on RMI errors
*/
- public RemoteQueryManager getRemoteQueryManager(QueryManager manager)
- throws RemoteException;
+ RemoteQueryManager getRemoteQueryManager(QueryManager manager)
+ throws RemoteException;
-}
\ No newline at end of file
+}
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerAdapterFactory.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -53,7 +53,7 @@
* package as the default adapter implementations. Subclasses can
* easily override or extend the default adapters by implementing the
* corresponding factory methods.
- *
+ *
* @author Jukka Zitting
* @author Philipp Koch
*/
@@ -61,59 +61,59 @@
/**
* Creates and returns a {@link ServerRepository ServerRepository} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteRepository getRemoteRepository(Repository repository)
throws RemoteException {
return new ServerRepository(repository, this);
}
-
+
/**
* Creates and returns a {@link ServerSession ServerSession} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteSession getRemoteSession(Session session)
throws RemoteException {
return new ServerSession(session, this);
}
-
+
/**
* Creates and returns a {@link ServerWorkspace ServerWorkspace} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteWorkspace getRemoteWorkspace(Workspace workspace)
throws RemoteException {
return new ServerWorkspace(workspace, this);
}
-
+
/**
* Creates and returns a
* {@link ServerNamespaceRegistry ServerNamespaceRegistry} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteNamespaceRegistry getRemoteNamespaceRegistry(
NamespaceRegistry registry) throws RemoteException {
return new ServerNamespaceRegistry(registry, this);
}
-
+
/**
* Creates and returns a
* {@link ServerNodeTypeManager ServerNodeTypeManager} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteNodeTypeManager getRemoteNodeTypeManager(
NodeTypeManager manager) throws RemoteException {
return new ServerNodeTypeManager(manager, this);
}
-
+
/**
* Creates and returns a {@link ServerItem ServerItem} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteItem getRemoteItem(Item item) throws RemoteException {
@@ -122,7 +122,7 @@
/**
* Creates and returns a {@link ServerProperty ServerProperty} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteProperty getRemoteProperty(Property property)
@@ -132,7 +132,7 @@
/**
* Creates and returns a {@link ServerNode ServerNode} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteNode getRemoteNode(Node node) throws RemoteException {
@@ -141,7 +141,7 @@
/**
* Creates and returns a {@link ServerNodeType ServerNodeType} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteNodeType getRemoteNodeType(NodeType type)
@@ -151,28 +151,28 @@
/**
* Creates and returns a {@link ServerNodeDef ServerNodeDef} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteNodeDef getRemoteNodeDef(NodeDef def)
throws RemoteException {
return new ServerNodeDef(def, this);
}
-
+
/**
* Creates and returns a {@link ServerPropertyDef ServerPropertyDef}
* instance.
- *
+ *
* {@inheritDoc}
*/
public RemotePropertyDef getRemotePropertyDef(PropertyDef def)
throws RemoteException {
return new ServerPropertyDef(def, this);
}
-
+
/**
* Creates and returns a {@link ServerLock ServerLock} instance.
- *
+ *
* {@inheritDoc}
*/
public RemoteLock getRemoteLock(Lock lock) throws RemoteException {
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItem.java Tue Mar 1 05:36:49 2005
@@ -34,11 +34,11 @@
* Remote adapter for the JCR {@link javax.jcr.Item Item} interface.
* This class makes a local item available as an RMI service using
* the {@link org.apache.jackrabbit.rmi.remote.RemoteItem RemoteItem}
- * interface. Used mainly as the base class for the
+ * interface. Used mainly as the base class for the
* {@link org.apache.jackrabbit.rmi.server.ServerProperty ServerProperty}
- * and {@link org.apache.jackrabbit.rmi.server.ServerNode ServerNode}
+ * and {@link org.apache.jackrabbit.rmi.server.ServerNode ServerNode}
* adapters.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.Item
* @see org.apache.jackrabbit.rmi.remote.RemoteItem
@@ -47,10 +47,10 @@
/** The adapted local item. */
protected Item item;
-
+
/**
* Creates a remote adapter for the given local item.
- *
+ *
* @param item local item to be adapted
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
@@ -60,7 +60,7 @@
super(factory);
this.item = item;
}
-
+
/** {@inheritDoc} */
public String getPath() throws RepositoryException, RemoteException {
try {
@@ -99,7 +99,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public int getDepth() throws RepositoryException, RemoteException {
try {
@@ -108,7 +108,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteNode getParent() throws ItemNotFoundException,
AccessDeniedException, RepositoryException, RemoteException {
@@ -123,12 +123,12 @@
public boolean isModified() throws RemoteException {
return item.isModified();
}
-
+
/** {@inheritDoc} */
public boolean isNew() throws RemoteException {
return item.isNew();
}
-
+
/** {@inheritDoc} */
public void refresh(boolean keepChanges) throws InvalidItemStateException,
RepositoryException, RemoteException {
@@ -138,7 +138,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void remove() throws RepositoryException, RemoteException {
try {
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerItemDef.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -33,7 +33,7 @@
* and
* {@link org.apache.jackrabbit.rmi.server.ServerNodeDef ServerNodeDef}
* adapters.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.nodetype.ItemDef
* @see org.apache.jackrabbit.rmi.remote.RemoteItemDef
@@ -41,11 +41,11 @@
public class ServerItemDef extends ServerObject implements RemoteItemDef {
/** The adapted local item definition. */
- protected ItemDef def;
-
+ private ItemDef def;
+
/**
* Creates a remote adapter for the given local item definition.
- *
+ *
* @param def local item definition
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerLock.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerLock.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerLock.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerLock.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -30,19 +30,19 @@
* This class makes a local lock available as an RMI service using
* the {@link org.apache.jackrabbit.rmi.remote.RemoteLock RemoteLock}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.lock.Lock
* @see org.apache.jackrabbit.rmi.remote.RemoteLock
*/
public class ServerLock extends UnicastRemoteObject implements RemoteLock {
-
+
/** The adapted local lock. */
private Lock lock;
-
+
/**
* Creates a remote adapter for the given local lock.
- *
+ *
* @param lock local lock
* @throws RemoteException on RMI errors
*/
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNamespaceRegistry.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNamespaceRegistry.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNamespaceRegistry.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNamespaceRegistry.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -31,20 +31,20 @@
* using the
* {@link org.apache.jackrabbit.rmi.remote.RemoteNamespaceRegistry RemoteNamespaceRegistry}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.NamespaceRegistry
* @see org.apache.jackrabbit.rmi.remote.RemoteNamespaceRegistry
*/
public class ServerNamespaceRegistry extends ServerObject implements
RemoteNamespaceRegistry {
-
+
/** The adapted local namespace registry. */
- protected NamespaceRegistry registry;
-
+ private NamespaceRegistry registry;
+
/**
* Creates a remote adapter for the given local namespace registry.
- *
+ *
* @param registry local namespace registry
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNode.java Tue Mar 1 05:36:49 2005
@@ -47,7 +47,7 @@
* This class makes a local node available as an RMI service using
* the {@link org.apache.jackrabbit.rmi.remote.RemoteNode RemoteNode}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.Node
* @see org.apache.jackrabbit.rmi.remote.RemoteNode
@@ -55,11 +55,11 @@
public class ServerNode extends ServerItem implements RemoteNode {
/** The adapted local node. */
- protected Node node;
-
+ private Node node;
+
/**
* Creates a remote adapter for the given local node.
- *
+ *
* @param node local node
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
@@ -69,7 +69,7 @@
super(node, factory);
this.node = node;
}
-
+
/** {@inheritDoc} */
public RemoteNode addNode(String path) throws ItemExistsException,
PathNotFoundException, ConstraintViolationException,
@@ -80,7 +80,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteNode addNode(String path, String type) throws
ItemExistsException, PathNotFoundException,
@@ -92,7 +92,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteProperty getProperty(String path) throws PathNotFoundException,
RepositoryException, RemoteException {
@@ -111,8 +111,8 @@
} catch (RepositoryException ex) {
throw getRepositoryException(ex);
}
- }
-
+ }
+
/** {@inheritDoc} */
public RemoteItem getPrimaryItem() throws ItemNotFoundException,
RepositoryException, RemoteException {
@@ -122,7 +122,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteProperty[] getProperties(String pattern)
throws RepositoryException, RemoteException {
@@ -132,7 +132,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteProperty[] getReferences() throws RepositoryException,
RemoteException {
@@ -142,7 +142,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public String getUUID() throws UnsupportedRepositoryOperationException,
RepositoryException, RemoteException {
@@ -152,7 +152,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public boolean hasNodes() throws RepositoryException, RemoteException {
try {
@@ -161,7 +161,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public boolean hasProperties() throws RepositoryException, RemoteException {
try {
@@ -170,7 +170,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public boolean hasProperty(String path) throws RepositoryException,
RemoteException {
@@ -180,7 +180,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteNodeType[] getMixinNodeTypes() throws RepositoryException,
RemoteException {
@@ -190,7 +190,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteNodeType getPrimaryNodeType() throws RepositoryException,
RemoteException {
@@ -210,7 +210,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteNode[] getNodes() throws RepositoryException, RemoteException {
try {
@@ -239,7 +239,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public boolean hasNode(String path) throws RepositoryException,
RemoteException {
@@ -249,7 +249,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteProperty setProperty(String name, Value value)
throws ValueFormatException, RepositoryException, RemoteException {
@@ -259,7 +259,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void addMixin(String name) throws NoSuchNodeTypeException,
ConstraintViolationException, RepositoryException, RemoteException {
@@ -279,7 +279,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void removeMixin(String name) throws NoSuchNodeTypeException,
ConstraintViolationException, RepositoryException, RemoteException {
@@ -301,7 +301,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteProperty setProperty(String name, Value[] values)
throws ValueFormatException, RepositoryException, RemoteException {
@@ -321,7 +321,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void checkout() throws UnsupportedRepositoryOperationException,
RepositoryException, RemoteException {
@@ -331,7 +331,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public String getCorrespondingNodePath(String workspace)
throws ItemNotFoundException, NoSuchWorkspaceException,
@@ -342,7 +342,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public int getIndex() throws RepositoryException, RemoteException {
try {
@@ -351,7 +351,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void merge(String workspace, boolean bestEffort)
throws UnsupportedRepositoryOperationException,
@@ -363,7 +363,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void restore(String version, boolean removeExisting)
throws VersionException, ItemExistsException,
@@ -375,7 +375,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void restoreByLabel(String label, boolean removeExisting)
throws VersionException, ItemExistsException,
@@ -387,7 +387,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void update(String workspace) throws NoSuchWorkspaceException,
AccessDeniedException, RepositoryException, RemoteException {
@@ -397,7 +397,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public boolean holdsLock() throws RepositoryException, RemoteException {
try {
@@ -448,7 +448,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteLock getLock() throws UnsupportedRepositoryOperationException,
LockException, AccessDeniedException, RepositoryException,
@@ -459,7 +459,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteLock lock(boolean isDeep, boolean isSessionScoped)
throws UnsupportedRepositoryOperationException, LockException,
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeDef.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -29,7 +29,7 @@
* RMI service using the
* {@link org.apache.jackrabbit.rmi.remote.RemoteNodeDef RemoteNodeDef}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.nodetype.NodeDef
* @see org.apache.jackrabbit.rmi.remote.RemoteNodeDef
@@ -37,11 +37,11 @@
public class ServerNodeDef extends ServerItemDef implements RemoteNodeDef {
/** The adapted node definition. */
- protected NodeDef def;
-
+ private NodeDef def;
+
/**
* Creates a remote adapter for the given local node definition.
- *
+ *
* @param def local node definition
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -32,7 +32,7 @@
* using the
* {@link org.apache.jackrabbit.rmi.remote.RemoteNodeType RemoteNodeType}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.nodetype.NodeType
* @see org.apache.jackrabbit.rmi.remote.RemoteNodeType
@@ -40,11 +40,11 @@
public class ServerNodeType extends ServerObject implements RemoteNodeType {
/** The adapted local node type. */
- protected NodeType type;
-
+ private NodeType type;
+
/**
* Creates a remote adapter for the given local node type.
- *
+ *
* @param type local node type
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerNodeTypeManager.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -32,7 +32,7 @@
* RMI service using the
* {@link org.apache.jackrabbit.rmi.remote.RemoteNodeTypeManager RemoteNodeTypeManager}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.nodetype.NodeTypeManager
* @see org.apache.jackrabbit.rmi.remote.RemoteNodeTypeManager
@@ -41,11 +41,11 @@
implements RemoteNodeTypeManager {
/** The adapted local node type manager. */
- protected NodeTypeManager manager;
-
+ private NodeTypeManager manager;
+
/**
* Creates a remote adapter for the given local node type manager.
- *
+ *
* @param manager local node type manager
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
@@ -56,7 +56,7 @@
super(factory);
this.manager = manager;
}
-
+
/** {@inheritDoc} */
public RemoteNodeType getNodeType(String name) throws
NoSuchNodeTypeException, RepositoryException, RemoteException {
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerObject.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -59,25 +59,25 @@
* Base class for remote adapters. The purpose of this class is to
* centralize the handling of the RemoteAdapterFactory instance used
* to instantiate new server adapters.
- *
+ *
* @author Jukka Zitting
*/
public class ServerObject extends UnicastRemoteObject {
-
+
/** Factory for creating server adapters. */
protected RemoteAdapterFactory factory;
/**
* Creates a basic server adapter that uses the given factory
* to create new adapters.
- *
+ *
* @param factory remote adapter factory
*/
protected ServerObject(RemoteAdapterFactory factory)
throws RemoteException {
this.factory = factory;
}
-
+
/**
* Returns a cleaned version of the given exception. In some cases
* the underlying repository implementation may throw exceptions
@@ -88,7 +88,7 @@
* the message string from the original exception, and uses the public
* JCR exception class that most specifically matches the original
* exception.
- *
+ *
* @param ex the original exception
* @return clean exception
*/
@@ -141,7 +141,7 @@
* method introspects the type of the local item and returns the
* corresponding node, property, or item remote reference using the
* remote adapter factory.
- *
+ *
* @param item local node, property, or item
* @return remote node, property, or item reference
* @throws RemoteException on RMI errors
@@ -155,14 +155,14 @@
return factory.getRemoteItem(item);
}
}
-
+
/**
* Utility method for creating an array of remote references for
* local properties. The remote references are created using the
* remote adapter factory.
* <p>
* A <code>null</code> input is treated as an empty iterator.
- *
+ *
* @param iterator local property iterator
* @return remote property array
* @throws RemoteException on RMI errors
@@ -172,21 +172,21 @@
if (iterator == null) {
return new RemoteProperty[0]; // for safety
}
-
+
RemoteProperty[] remotes = new RemoteProperty[(int) iterator.getSize()];
for (int i = 0; iterator.hasNext(); i++) {
remotes[i] = factory.getRemoteProperty(iterator.nextProperty());
}
return remotes;
}
-
+
/**
* Utility method for creating an array of remote references for
* local nodes. The remote references are created using the
* remote adapter factory.
* <p>
* A <code>null</code> input is treated as an empty iterator.
- *
+ *
* @param iterator local node iterator
* @return remote node array
* @throws RemoteException on RMI errors
@@ -196,7 +196,7 @@
if (iterator == null) {
return new RemoteNode[0]; // for safety
}
-
+
RemoteNode[] remotes = new RemoteNode[(int) iterator.getSize()];
for (int i = 0; iterator != null && iterator.hasNext(); i++) {
remotes[i] = factory.getRemoteNode(iterator.nextNode());
@@ -210,7 +210,7 @@
* remote adapter factory.
* <p>
* A <code>null</code> input is treated as an empty array.
- *
+ *
* @param types local node type array
* @return remote node type array
* @throws RemoteException on RMI errors
@@ -220,21 +220,21 @@
if (types == null) {
return new RemoteNodeType[0]; // for safety
}
-
+
RemoteNodeType[] remotes = new RemoteNodeType[types.length];
for (int i = 0; i < types.length; i++) {
remotes[i] = factory.getRemoteNodeType(types[i]);
}
return remotes;
}
-
+
/**
* Utility method for creating an array of remote references for
* local node types. The remote references are created using the
* remote adapter factory.
* <p>
* A <code>null</code> input is treated as an empty iterator.
- *
+ *
* @param iterator local node type iterator
* @return remote node type array
* @throws RemoteException on RMI errors
@@ -244,7 +244,7 @@
if (iterator == null) {
return new RemoteNodeType[0]; // for safety
}
-
+
RemoteNodeType[] remotes = new RemoteNodeType[(int) iterator.getSize()];
for (int i = 0; iterator.hasNext(); i++) {
remotes[i] = factory.getRemoteNodeType(iterator.nextNodeType());
@@ -258,7 +258,7 @@
* remote adapter factory.
* <p>
* A <code>null</code> input is treated as an empty array.
- *
+ *
* @param defs local node definition array
* @return remote node definition array
* @throws RemoteException on RMI errors
@@ -268,21 +268,21 @@
if (defs == null) {
return new RemoteNodeDef[0]; // for safety
}
-
+
RemoteNodeDef[] remotes = new RemoteNodeDef[defs.length];
for (int i = 0; i < defs.length; i++) {
remotes[i] = factory.getRemoteNodeDef(defs[i]);
}
return remotes;
}
-
+
/**
* Utility method for creating an array of remote references for
* local property definitions. The remote references are created using the
* remote adapter factory.
* <p>
* A <code>null</code> input is treated as an empty array.
- *
+ *
* @param defs local property definition array
* @return remote property definition array
* @throws RemoteException on RMI errors
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerProperty.java Tue Mar 1 05:36:49 2005
@@ -33,7 +33,7 @@
* using the
* {@link org.apache.jackrabbit.rmi.remote.RemoteProperty RemoteProperty}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.Property
* @see org.apache.jackrabbit.rmi.remote.RemoteProperty
@@ -41,11 +41,11 @@
public class ServerProperty extends ServerItem implements RemoteProperty {
/** The adapted local property. */
- protected Property property;
-
+ private Property property;
+
/**
* Creates a remote adapter for the given local property.
- *
+ *
* @param property local property
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
@@ -65,7 +65,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public Value[] getValues() throws ValueFormatException,
RepositoryException, RemoteException {
@@ -75,7 +75,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void setValue(Value value) throws ValueFormatException,
RepositoryException, RemoteException {
@@ -85,7 +85,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void setValue(Value[] values) throws ValueFormatException,
RepositoryException, RemoteException {
@@ -95,7 +95,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public long getLength() throws ValueFormatException, RepositoryException,
RemoteException {
@@ -105,7 +105,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public long[] getLengths() throws ValueFormatException,
RepositoryException, RemoteException {
@@ -115,7 +115,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemotePropertyDef getDefinition() throws RepositoryException,
RemoteException {
@@ -134,5 +134,5 @@
throw getRepositoryException(ex);
}
}
-
+
}
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerPropertyDef.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerPropertyDef.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerPropertyDef.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerPropertyDef.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -30,7 +30,7 @@
* using the
* {@link org.apache.jackrabbit.rmi.remote.RemotePropertyDef RemotePropertyDef}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.nodetype.PropertyDef
* @see org.apache.jackrabbit.rmi.remote.RemotePropertyDef
@@ -39,11 +39,11 @@
implements RemotePropertyDef {
/** The adapted local property definition. */
- protected PropertyDef def;
-
+ private PropertyDef def;
+
/**
* Creates a remote adapter for the given local property definition.
- *
+ *
* @param def local property definition
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQuery.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -44,7 +44,7 @@
public class ServerQuery extends ServerObject implements RemoteQuery {
/** The adapted local query manager. */
- protected Query query;
+ private Query query;
/**
* Creates a remote adapter for the given local <code>Query</code>.
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryManager.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -42,7 +42,7 @@
implements RemoteQueryManager {
/** The adapted local query manager. */
- protected QueryManager manager;
+ private QueryManager manager;
/**
* Creates a remote adapter for the given local query manager.
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerQueryResult.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -40,7 +40,7 @@
public class ServerQueryResult extends ServerObject implements RemoteQueryResult {
/** The adapted local query result. */
- protected QueryResult result;
+ private QueryResult result;
/**
* Creates a remote adapter for the given local <code>QueryResult</code>.
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRepository.java Tue Mar 1 05:36:49 2005
@@ -34,19 +34,19 @@
* using the
* {@link org.apache.jackrabbit.rmi.remote.RemoteRepository RemoteRepository}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.Repository
* @see org.apache.jackrabbit.rmi.remote.RemoteRepository
*/
public class ServerRepository extends ServerObject implements RemoteRepository {
-
+
/** The adapted local repository. */
- protected Repository repository;
-
+ private Repository repository;
+
/**
* Creates a remote adapter for the given local repository.
- *
+ *
* @param repository local repository
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
@@ -56,17 +56,17 @@
super(factory);
this.repository = repository;
}
-
+
/** {@inheritDoc} */
public String getDescriptor(String name) throws RemoteException {
return repository.getDescriptor(name);
}
-
+
/** {@inheritDoc} */
public String[] getDescriptorKeys() throws RemoteException {
return repository.getDescriptorKeys();
}
-
+
/** {@inheritDoc} */
public RemoteSession login() throws LoginException,
NoSuchWorkspaceException, RepositoryException, RemoteException {
@@ -77,7 +77,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteSession login(String workspace) throws LoginException,
NoSuchWorkspaceException, RepositoryException, RemoteException {
@@ -99,7 +99,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteSession login(Credentials credentials, String workspace)
throws LoginException, NoSuchWorkspaceException,
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRow.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRow.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRow.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerRow.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -38,7 +38,7 @@
public class ServerRow extends ServerObject implements RemoteRow {
/** The adapted local row. */
- protected Row row;
+ private Row row;
/**
* Creates a remote adapter for the given local <code>Row</code>.
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerSession.java Tue Mar 1 05:36:49 2005
@@ -46,7 +46,7 @@
* This class makes a local session available as an RMI service using the
* {@link org.apache.jackrabbit.rmi.remote.RemoteSession RemoteSession}
* interface.
- *
+ *
* @author Jukka Zitting
* @see javax.jcr.Session
* @see org.apache.jackrabbit.rmi.remote.RemoteSession
@@ -54,11 +54,11 @@
public class ServerSession extends ServerObject implements RemoteSession {
/** The adapted local session. */
- protected Session session;
-
+ private Session session;
+
/**
* Creates a remote adapter for the given local session.
- *
+ *
* @param session local session
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
@@ -68,7 +68,7 @@
super(factory);
this.session = session;
}
-
+
/** {@inheritDoc} */
public String getUserId() throws RemoteException {
return session.getUserId();
@@ -78,7 +78,7 @@
public Object getAttribute(String name) throws RemoteException {
return session.getAttribute(name);
}
-
+
/** {@inheritDoc} */
public String[] getAttributeNames() throws RemoteException {
return session.getAttributeNames();
@@ -104,7 +104,7 @@
throws AccessControlException, RemoteException {
session.checkPermission(path, actions);
}
-
+
/** {@inheritDoc} */
public String getNamespacePrefix(String uri) throws NamespaceException,
RepositoryException, RemoteException {
@@ -114,7 +114,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public String[] getNamespacePrefixes() throws RepositoryException,
RemoteException {
@@ -124,7 +124,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public String getNamespaceURI(String prefix) throws NamespaceException,
RepositoryException, RemoteException {
@@ -149,7 +149,7 @@
public boolean itemExists(String path) throws RemoteException {
return session.itemExists(path);
}
-
+
/** {@inheritDoc} */
public RemoteNode getNodeByUUID(String uuid) throws ItemNotFoundException,
RepositoryException, RemoteException {
@@ -179,7 +179,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public boolean hasPendingChanges() throws RepositoryException,
RemoteException {
@@ -189,7 +189,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void move(String from, String to) throws ItemExistsException,
PathNotFoundException, ConstraintViolationException,
@@ -200,7 +200,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void save() throws AccessDeniedException, LockException,
ConstraintViolationException, InvalidItemStateException,
@@ -211,7 +211,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void refresh(boolean keepChanges) throws RepositoryException,
RemoteException {
@@ -221,7 +221,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public void logout() throws RemoteException {
session.logout();
@@ -243,7 +243,7 @@
public void addLockToken(String token) throws RemoteException {
session.addLockToken(token);
}
-
+
/** {@inheritDoc} */
public String[] getLockTokens() throws RemoteException {
return session.getLockTokens();
@@ -253,7 +253,7 @@
public void removeLockToken(String token) throws RemoteException {
session.removeLockToken(token);
}
-
+
/** {@inheritDoc} */
public byte[] exportDocView(String path, boolean binaryAsLink,
boolean noRecurse) throws InvalidSerializedDataException,
@@ -267,7 +267,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public byte[] exportSysView(String path, boolean binaryAsLink,
boolean noRecurse) throws PathNotFoundException, IOException,
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/ServerWorkspace.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -39,24 +39,21 @@
import org.apache.jackrabbit.rmi.remote.RemoteQueryManager;
/**
- * Remote adapter for the JCR {@link javax.jcr.Workspace Workspace} interface.
+ * Remote adapter for the JCR {@link Workspace Workspace} interface.
* This class makes a local workspace available as an RMI service using the
- * {@link org.apache.jackrabbit.rmi.remote.RemoteWorkspace RemoteWorkspace}
- * interface.
- *
- * @author Jukka Zitting
- * @author Philipp Koch
- * @see javax.jcr.Workspace
- * @see org.apache.jackrabbit.rmi.remote.RemoteWorkspace
+ * {@link RemoteWorkspace RemoteWorkspace} interface.
+ *
+ * @see Workspace
+ * @see RemoteWorkspace
*/
public class ServerWorkspace extends ServerObject implements RemoteWorkspace {
/** The adapted local workspace. */
- protected Workspace workspace;
-
+ private Workspace workspace;
+
/**
* Creates a remote adapter for the given local workspace.
- *
+ *
* @param workspace local workspace
* @param factory remote adapter factory
* @throws RemoteException on RMI errors
@@ -66,7 +63,7 @@
super(factory);
this.workspace = workspace;
}
-
+
/** {@inheritDoc} */
public String getName() throws RemoteException {
return workspace.getName();
@@ -120,7 +117,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteNodeTypeManager getNodeTypeManager()
throws RepositoryException, RemoteException {
@@ -131,7 +128,7 @@
throw getRepositoryException(ex);
}
}
-
+
/** {@inheritDoc} */
public RemoteNamespaceRegistry getNamespaceRegistry()
throws RepositoryException, RemoteException {
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/ImportContentHandler.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/ImportContentHandler.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/ImportContentHandler.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/ImportContentHandler.java Tue Mar 1 05:36:49 2005
@@ -32,17 +32,17 @@
* method. Subclasses can provide different import mechanisms simply by
* implementing the abstract {@link #importXML(byte[]) importXML(byte[])}
* method.
- *
+ *
* @author Jukka Zitting
*/
public abstract class ImportContentHandler implements ContentHandler {
/** Internal buffer for the XML byte stream. */
private ByteArrayOutputStream buffer;
-
+
/** The internal XML serializer. */
private ContentHandler handler;
-
+
/**
* Creates a SAX content handler for importing XML data.
*/
@@ -50,7 +50,7 @@
this.buffer = new ByteArrayOutputStream();
this.handler = new XMLSerializer(buffer, new OutputFormat());
}
-
+
/**
* Imports the given XML data. This method is called by the
* {@link #endDocument() endDocument()} method after the received
@@ -58,7 +58,7 @@
* <p>
* Subclasses must implement this method to provide the actual
* import mechanism.
- *
+ *
* @param xml the XML data to import
* @throws Exception on import errors
*/
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/SessionImportContentHandler.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/SessionImportContentHandler.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/SessionImportContentHandler.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/SessionImportContentHandler.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -28,21 +28,21 @@
* method in terms of the
* {@link Session#importXML(String, java.io.InputStream) Session.importXML(String, InputStream)}
* method.
- *
+ *
* @author Jukka Zitting
*/
public class SessionImportContentHandler extends ImportContentHandler {
/** The repository session. */
private Session session;
-
+
/** The import content path. */
private String path;
-
+
/**
* Creates a SAX content handler for importing XML data to the given
* session and path.
- *
+ *
* @param session repository session
* @param path import content path
*/
@@ -50,12 +50,12 @@
this.session = session;
this.path = path;
}
-
+
/**
* Imports the serialized XML stream using the standard
* {@link Session#importXML(String, java.io.InputStream) Session.importXML(String, InputStream)}
* method.
- *
+ *
* {@inheritDoc}
*/
protected void importXML(byte[] xml) throws Exception {
Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/WorkspaceImportContentHandler.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/WorkspaceImportContentHandler.java?view=diff&r1=155775&r2=155776
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/WorkspaceImportContentHandler.java (original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/WorkspaceImportContentHandler.java Tue Mar 1 05:36:49 2005
@@ -6,7 +6,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -28,24 +28,24 @@
* method in terms of the
* {@link Workspace#importXML(String, java.io.InputStream, int) Workspace.importXML(String, InputStream, int)}
* method.
- *
+ *
* @author Jukka Zitting
*/
public class WorkspaceImportContentHandler extends ImportContentHandler {
/** The repository workspace. */
private Workspace workspace;
-
+
/** The import content path. */
private String path;
/** The UUID behaviour. */
private int uuidBehaviour;
-
+
/**
* Creates a SAX content handler for importing XML data to the given
* workspace and path using the given UUID behaviour.
- *
+ *
* @param workspace repository workspace
* @param path import content path
* @param uuidBehaviour UUID behaviour
@@ -55,12 +55,12 @@
this.path = path;
this.uuidBehaviour = uuidBehaviour;
}
-
+
/**
* Imports the serialized XML stream using the standard
* {@link Workspace#importXML(String, java.io.InputStream, int) Workspace.importXML(String, InputStream, int)}
* method.
- *
+ *
* {@inheritDoc}
*/
protected void importXML(byte[] xml) throws Exception {