Working facsimiles of ls and half of cp for Repo.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4510 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-12-04 19:17:34 +00:00
parent 66c95d5dce
commit a95b3bbed0
7 changed files with 210 additions and 52 deletions

View File

@@ -8,7 +8,6 @@ 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;
/**
@@ -28,7 +27,7 @@ public interface RepoRemote
* @param dir The node ref of the directory.
* @return A Map of names to node refs.
*/
public Map<String, Pair<NodeRef, QName>> getListing(NodeRef dir);
public Map<String, Pair<NodeRef, Boolean>> getListing(NodeRef dir);
/**
* Lookup a node by path relative to a node.
@@ -36,7 +35,7 @@ public interface RepoRemote
* @param path The relative path.
* @return The node ref or null.
*/
public NodeRef lookup(NodeRef base, String path);
public Pair<NodeRef, Boolean> lookup(NodeRef base, String path);
/**
* Create a file relative to a base node.

View File

@@ -6,7 +6,6 @@ package org.alfresco.service.cmr.remote;
import java.util.Map;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.Pair;
/**
@@ -27,7 +26,7 @@ public interface RepoRemoteTransport
* @param dir The node ref of the directory.
* @return A Map of names to node refs.
*/
public Map<String, Pair<NodeRef, QName>> getListing(String ticket, NodeRef dir);
public Map<String, Pair<NodeRef, Boolean>> getListing(String ticket, NodeRef dir);
/**
* Lookup a node by path relative to a node.
@@ -35,7 +34,7 @@ public interface RepoRemoteTransport
* @param path The relative path.
* @return The node ref or null.
*/
public NodeRef lookup(String ticket, NodeRef base, String path);
public Pair<NodeRef, Boolean> lookup(String ticket, NodeRef base, String path);
/**
* Create a file relative to a base node.