mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
15596: Merged V3.1 to V3.2 14017: Fix ETHREEOH-1880 - remove (double-)reverse of WCM staging snapshot order 14112: Fix ETHREEOH-1758 - apply contributed patch 14447: Merged V2.2 to V3.1 14276: ETWOTWO-1224 / WCM-948 - browsing staging area during (commit of) large submit can cause AVMNotFoundException: Path /www/avm_webapps not found. 14452: Add WCM services-based unit test for ETWOTWO-1224 / WCM-948 14589: ETHREEOH-1646 - User Sandboxes aren't visible for Content Publisher 15604: Merged V3.1 to V3.2 14734: Merged V2.2 to V3.1 14718: ETWOTWO-1244 - unable to revert some snapshots ("Does not exist: xxx") 14852: Merged V2.2 to V3.1 14720: ETWOTWO-1183 - "Show All Sandboxes" checkbox should only be visible for "Content Publisher" or "Content Manager" 15032: Fix ETHREEOH-2240 - delete WCM web project (does not clean-up workflow sandboxes and also appears in archive store) 15037: Fix ETHREEOH-2240 - follow-on for Alfresco Explorer's Manage (Review) Task Dialog 15056: Fix ETHREEOH-2297 - WCM layered folder - problem deleting file 15072: Minor - fix remote AVM test 15605: Merged V3.1 to V3.2 15082: Merged V2.2 to V3.1 15081: AVM - add tests only 15083: Fix ETHREEOH-2296 - user conflict when updating an AVM layered file 15118: Merged V2.2 to V3.1 15115: Fix ETWOTWO-1265 - WCM locking not working as expected (+ add WCM services test) 15137: Fix ETHREEOH-2309 and ETHREEOH-227 - including refactor (& clean-up) of WCM-related actions 15156: Fix ETHREEOH-2078 & ETHREEOH-2040 - WCM - deploy to localhost causes "Must have at least one store" errors 15175: Fix ETHREEOH-2309 and ETHREEOH-227 - further clean-up of WCM submit/undo actions (for consistency) 15190: Minor: message updates for WCM submit/undo actions git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,6 +33,7 @@ import java.util.regex.Pattern;
|
||||
import org.alfresco.config.JNDIConstants;
|
||||
import org.alfresco.mbeans.VirtServerRegistry;
|
||||
import org.alfresco.model.WCMAppModel;
|
||||
import org.alfresco.repo.avm.actions.AVMDeployWebsiteAction;
|
||||
import org.alfresco.repo.domain.PropertyValue;
|
||||
import org.alfresco.service.cmr.avm.AVMBadArgumentException;
|
||||
import org.alfresco.service.cmr.avm.AVMNotFoundException;
|
||||
@@ -122,6 +123,29 @@ public class WCMUtil
|
||||
{
|
||||
return ((storeName != null) && (storeName.endsWith(WCMUtil.STORE_SEPARATOR + WCMUtil.STORE_PREVIEW)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* http://wiki.alfresco.com/wiki/WCM_Deployment_Features#Debugging_.26_Testing
|
||||
*
|
||||
* Examples of locally deployed store names for web project "MyWebProj" are:
|
||||
*
|
||||
* MyWebProjlive
|
||||
* MyWebProj--adminlive
|
||||
*
|
||||
* Note: if web project "MyWebProjlive" is pre-created then should be possible to browse staging:
|
||||
*
|
||||
* http://wiki.alfresco.com/wiki/WCM_Deployment_Features#Deployed_Runtime
|
||||
*
|
||||
* @param storeName
|
||||
* @return
|
||||
*/
|
||||
protected static boolean isLocalhostDeployedStore(String wpStoreId, String storeName)
|
||||
{
|
||||
return ((storeName.startsWith(wpStoreId)) &&
|
||||
(storeName.endsWith(AVMDeployWebsiteAction.LIVE_SUFFIX)) &&
|
||||
(! wpStoreId.endsWith(AVMDeployWebsiteAction.LIVE_SUFFIX)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether the store name describes a workflow store.
|
||||
|
Reference in New Issue
Block a user