mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. WCM UI
- Fix to ui issue with generated components IDs when viewing multiple websites (JSF hell!) - Added Preview Website action to the website browse page git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3921 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -225,13 +225,6 @@ 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:
|
||||
@@ -268,11 +261,32 @@ public class AVMBrowseBean implements IContextListener
|
||||
return summary.toString();
|
||||
}
|
||||
|
||||
public String getPreviewUrl()
|
||||
/**
|
||||
* @return the current staging store name
|
||||
*/
|
||||
public String getStagingStore()
|
||||
{
|
||||
Node websiteNode = this.navigator.getCurrentNode();
|
||||
String storeRoot = (String)websiteNode.getProperties().get(ContentModel.PROP_AVMSTORE);
|
||||
return AVMConstants.buildAVMStagingStoreName(storeRoot);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Preview URL for the current Staging store
|
||||
*/
|
||||
public String getStagingPreviewUrl()
|
||||
{
|
||||
return AVMConstants.buildAVMStoreUrl(getStagingStore());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Preview URL for the current User Sandbox store
|
||||
*/
|
||||
public String getSandboxPreviewUrl()
|
||||
{
|
||||
return AVMConstants.buildAVMStoreUrl(getSandbox());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param foldersRichList The foldersRichList to set.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user