mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. WCM UI
- Preview Staging area action added - Preview User Sandbox action added - Generates the virtualisation server URLs to an AVM sandboxes for the - possible to preview the entire website with transparent overlays for each user. - Fix to generation of mangled DNS name for a user store to remove the "main" part (implicit) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -225,6 +225,13 @@ public class AVMBrowseBean implements IContextListener
|
||||
{
|
||||
this.actionService = actionService;
|
||||
}
|
||||
|
||||
public String getStagingStore()
|
||||
{
|
||||
Node websiteNode = this.navigator.getCurrentNode();
|
||||
String storeRoot = (String)websiteNode.getProperties().get(ContentModel.PROP_AVMSTORE);
|
||||
return AVMConstants.buildAVMStagingStoreName(storeRoot);
|
||||
}
|
||||
|
||||
/**
|
||||
* Summary text for the staging store:
|
||||
@@ -242,7 +249,7 @@ public class AVMBrowseBean implements IContextListener
|
||||
ResourceBundle msg = Application.getBundle(fc);
|
||||
Node websiteNode = this.navigator.getCurrentNode();
|
||||
String storeRoot = (String)websiteNode.getProperties().get(ContentModel.PROP_AVMSTORE);
|
||||
String stagingStore = AVMConstants.buildAVMStagingStoreName(storeRoot);
|
||||
String stagingStore = getStagingStore();
|
||||
AVMStoreDescriptor store = this.avmService.getAVMStore(stagingStore);
|
||||
if (store != null)
|
||||
{
|
||||
@@ -261,6 +268,11 @@ public class AVMBrowseBean implements IContextListener
|
||||
return summary.toString();
|
||||
}
|
||||
|
||||
public String getPreviewUrl()
|
||||
{
|
||||
return AVMConstants.buildAVMStoreUrl(getStagingStore());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param foldersRichList The foldersRichList to set.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user