Exported some Repo functionality via RMI. First (still broken) Repo

based CLT.  Some cleanup and modification to other CLTs.  WIP.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4500 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-12-04 00:41:06 +00:00
parent b8595831c8
commit 2845364a18
16 changed files with 1523 additions and 43 deletions

View File

@@ -7,6 +7,7 @@ import java.util.List;
import java.util.Map;
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
import org.alfresco.util.Pair;
/**
* Get a listing of a node.
@@ -24,9 +25,9 @@ public class AVMLs extends CltBase
@Override
protected void run(Map<String, List<String>> flags, List<String> args)
{
String[] pathVersion = args.get(0).split("@");
AVMNodeDescriptor desc = fAVMRemote.lookup(Integer.parseInt(pathVersion[1]),
pathVersion[0]);
Pair<String, Integer> pathVersion = splitPathVersion(args.get(0));
AVMNodeDescriptor desc = fAVMRemote.lookup(pathVersion.getSecond(),
pathVersion.getFirst());
if (flags.containsKey("-R"))
{
recursiveList(desc, 0);