WCM: consolidate getWebProject & deleteSandbox (also precursor for SAIL-359)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19378 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-03-18 17:33:21 +00:00
parent b9ae66b146
commit 49856600ae
11 changed files with 459 additions and 439 deletions

View File

@@ -438,7 +438,7 @@ public class WCMUtil extends AVMUtil
public static String lookupStoreDNS(AVMService avmService, String store)
{
ParameterCheck.mandatoryString("store", store);
final Map<QName, PropertyValue> props =
avmService.queryStorePropertyKey(store, QName.createQName(null, SandboxConstants.PROP_DNS + '%'));
@@ -470,6 +470,19 @@ public class WCMUtil extends AVMUtil
return wpNodeRef;
}
/**
* Returns web project store id for an AVM store name (or null for vanilla AVM store)
*/
public static String getWebProject(AVMService avmService, String avmStoreName)
{
String wpStoreId = WCMUtil.getWebProjectStoreId(avmStoreName);
if (WCMUtil.getWebProjectNodeFromWebProjectStore(avmService, wpStoreId) != null)
{
return wpStoreId;
}
return null;
}
/**
* Converts the provided path to an absolute path within the avm.
*