Merged DEV/WCM_SERVICES2 to HEAD

12236: Implementation of Sandbox Revert REST API
  12305: WCM Services - "asset service" initial checkpoint (more tests to be added)
  12334: placeholder for WCM Asset implementation
  12338: Check in to get server working ...
  12341: WCM Services - "asset service" checkpoint (locking fixes, bulk import, more tests added)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12544 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-12-23 14:48:34 +00:00
parent c4e9d6f97b
commit eb906a0d52
23 changed files with 2709 additions and 334 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2007 Alfresco Software Limited.
* Copyright (C) 2005-2008 Alfresco Software Limited.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -33,6 +33,7 @@ import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
import org.alfresco.util.ParameterCheck;
import org.alfresco.wcm.asset.AssetInfo;
import org.alfresco.wcm.sandbox.SandboxService;
import org.alfresco.wcm.util.WCMUtil;
import org.mozilla.javascript.Context;
@@ -154,14 +155,14 @@ public final class AVM extends BaseScopableProcessorExtension
SandboxService sbService = this.services.getSandboxService();
// get modified items - not including deleted
List<AVMNodeDescriptor> nodes = sbService.listChangedWebApp(storeId, webapp, false);
List<AssetInfo> assets = sbService.listChangedWebApp(storeId, webapp, false);
List<AVMNode> items = new ArrayList<AVMNode>(nodes.size());
List<AVMNode> items = new ArrayList<AVMNode>(assets.size());
for (AVMNodeDescriptor node : nodes)
for (AssetInfo asset : assets)
{
// convert each diff/node record into an AVM Node wrapper
items.add(new AVMNode(node.getPath(), -1, this.services, getScope()));
items.add(new AVMNode(asset.getAvmPath(), -1, this.services, getScope()));
}
return items;