From ef5ac5991f934ebb284f8c5bc2deaa4964efee7b Mon Sep 17 00:00:00 2001 From: Britt Park Date: Wed, 20 Sep 2006 22:01:37 +0000 Subject: [PATCH] Here's a skeletal workflow for the Gartner demo. Doesn't do anything besides printing a log message and showing up appropriately in task lists. The task screens aren't quite delectable but they show up. Fixed a misplaced store level property and added a new one ".website.name" to user sandbox stores so that the corresponding staging sandbox can be determined efficiently from a user sandbox. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3870 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/web-client-config-workflow.xml | 24 +++++++++++++++++++ .../alfresco/web/bean/wcm/AVMConstants.java | 2 +- .../web/bean/wcm/CreateWebsiteWizard.java | 8 ++++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/config/alfresco/web-client-config-workflow.xml b/config/alfresco/web-client-config-workflow.xml index 43538372a4..e0c9fe19aa 100644 --- a/config/alfresco/web-client-config-workflow.xml +++ b/config/alfresco/web-client-config-workflow.xml @@ -72,6 +72,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/java/org/alfresco/web/bean/wcm/AVMConstants.java b/source/java/org/alfresco/web/bean/wcm/AVMConstants.java index b497ee0101..c1de34427f 100644 --- a/source/java/org/alfresco/web/bean/wcm/AVMConstants.java +++ b/source/java/org/alfresco/web/bean/wcm/AVMConstants.java @@ -69,6 +69,6 @@ public final class AVMConstants public final static String PROP_SANDBOX_AUTHOR_MAIN = ".sandbox.author.main"; public final static String PROP_SANDBOX_AUTHOR_PREVIEW = ".sandbox.author.preview"; public final static String PROP_DNS = ".dns."; - + public final static String PROP_WEBSITE_NAME = ".website.name"; public final static String SPACE_ICON_WEBSITE = "space-icon-website"; } diff --git a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java index 7061e2a7c0..5e1b307f50 100644 --- a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java +++ b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java @@ -274,7 +274,7 @@ public class CreateWebsiteWizard extends BaseWizardBean //this.fileFolderService.create(AVMNodeConverter.ToNodeRef(-1, path), AVMConstants.DIR_APPBASE, ContentModel.TYPE_AVM_PLAIN_FOLDER); // tag the store with the store type - this.avmService.setStoreProperty(stagingStore, + this.avmService.setStoreProperty(previewStore, QName.createQName(null, AVMConstants.PROP_SANDBOX_STAGING_PREVIEW), new PropertyValue(DataTypeDefinition.TEXT, null)); @@ -324,6 +324,12 @@ public class CreateWebsiteWizard extends BaseWizardBean this.avmService.setStoreProperty(userStore, QName.createQName(null, AVMConstants.PROP_SANDBOX_AUTHOR_MAIN), new PropertyValue(DataTypeDefinition.TEXT, null)); + + // tag the store with the base name of the website so that corresponding + // staging areas can be found. + this.avmService.setStoreProperty(userStore, + QName.createQName(null, AVMConstants.PROP_WEBSITE_NAME), + new PropertyValue(DataTypeDefinition.TEXT, name)); // tag the store with the DNS name property tagStoreDNSPath(userStore);