Slightly less broken RepoLs. Checkpoint. Also gave Pair a reasonable toString method.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4508 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-12-04 13:43:44 +00:00
parent dcc831b2a3
commit 07b18358ae
6 changed files with 47 additions and 24 deletions

View File

@@ -8,6 +8,8 @@ import java.io.OutputStream;
import java.util.Map;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.Pair;
/**
* A highly simplified remote interface for the repo.
@@ -26,7 +28,7 @@ public interface RepoRemote
* @param dir The node ref of the directory.
* @return A Map of names to node refs.
*/
public Map<String, NodeRef> getListing(NodeRef dir);
public Map<String, Pair<NodeRef, QName>> getListing(NodeRef dir);
/**
* Lookup a node by path relative to a node.

View File

@@ -3,11 +3,11 @@
*/
package org.alfresco.service.cmr.remote;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.Pair;
/**
* Over the wire, and authentication safe flavor of
@@ -27,7 +27,7 @@ public interface RepoRemoteTransport
* @param dir The node ref of the directory.
* @return A Map of names to node refs.
*/
public Map<String, NodeRef> getListing(String ticket, NodeRef dir);
public Map<String, Pair<NodeRef, QName>> getListing(String ticket, NodeRef dir);
/**
* Lookup a node by path relative to a node.