mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user